Skip to content

Commit

Permalink
missing round added
Browse files Browse the repository at this point in the history
  • Loading branch information
csermet-ankasoft committed May 18, 2024
1 parent 8d2e794 commit 5cbdc83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion raspberry/function/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def Init():
time.sleep(5)
continue

logger.info("Check Completed.\n")
logger.info("Check Completed.")
time.sleep(2)

def EnvScore(temp, humidity, air_quality):
Expand Down
6 changes: 3 additions & 3 deletions raspberry/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
fan_speed = functions.CalculateFanSpeed(predict_diff_score)
bluetooth.set_fanSpeed(fan_speed)

lcd.writeLCD("PT:" + str(round(raspberry_predict_temp, 1)) + " PH:" + str(round(raspberry_predict_humidity)) + " F:" + str(fan_speed) , "PT:" + str(arduino_predict_temp, 1) + " PH:" + str(round(arduino_predict_humidity)) + " S:" + str(predict_diff_score))
logger.info("PT:" + str(round(raspberry_predict_temp, 1)) + " PH:" + str(round(raspberry_predict_humidity)) + " F:" + str(fan_speed) + " PT:" + str(arduino_predict_temp, 1) + " PH:" + str(round(arduino_predict_humidity)) + " S:" + str(predict_diff_score))
lcd.writeLCD("PT:" + str(round(raspberry_predict_temp, 1)) + " PH:" + str(round(raspberry_predict_humidity)) + " F:" + str(fan_speed) , "PT:" + str(round(arduino_predict_temp, 1)) + " PH:" + str(round(arduino_predict_humidity)) + " S:" + str(predict_diff_score))
logger.info("PT:" + str(round(raspberry_predict_temp, 1)) + " PH:" + str(round(raspberry_predict_humidity)) + " F:" + str(fan_speed) + " PT:" + str(round(arduino_predict_temp, 1)) + " PH:" + str(round(arduino_predict_humidity)) + " S:" + str(predict_diff_score))
time.sleep(10)

logger.info("Writing to DB...")
Expand All @@ -61,4 +61,4 @@
logger.info("Error: " + str(error))
lcd.writeLCD("Error:", str(error))
bluetooth.reset()
time.sleep(25)
time.sleep(10)

0 comments on commit 5cbdc83

Please sign in to comment.