Skip to content

Commit

Permalink
AI Predict Added
Browse files Browse the repository at this point in the history
  • Loading branch information
csermet-ankasoft committed May 16, 2024
1 parent ee6766d commit e929b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raspberry/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
logger.info("Sleeping for 30 seconds.")

predict = functions.Predict()
lcd.writeLCD("PTemp:" + str(round(predict[0][0], 3)) + " PHum:" + str(round(predict[0][2], 3)), "PTemp:" + str(round(predict[0][1], 3)) + " PHum:" + str(round(predict[0][3], 3)))
logger.info("PTemp:" + str(round(predict[0][0], 3)) + " PHum:" + str(round(predict[0][2], 3)) + "PTemp:" + str(round(predict[0][1], 3)) + " PHum:" + str(round(predict[0][3], 3)))
lcd.writeLCD("PTemp:" + str(round(predict[0][0], 3)) + " PHum:" + str(round(predict[0][2], 2)), "PTemp:" + str(round(predict[0][1], 3)) + " PHum:" + str(round(predict[0][3], 2)))
logger.info("PTemp:" + str(round(predict[0][0], 3)) + " PHum:" + str(round(predict[0][2], 2)) + "PTemp:" + str(round(predict[0][1], 3)) + " PHum:" + str(round(predict[0][3], 2)))
time.sleep(10)

logger.info("Writing to DB...")
Expand Down

0 comments on commit e929b4a

Please sign in to comment.