Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Changing log output in main, and added some new logging to Hydrogen
Browse files Browse the repository at this point in the history
  • Loading branch information
billykwooten committed Jul 16, 2017
1 parent b8dd259 commit bf3fae5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions hydrogen/hydrogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def hydrogen():
today = str(datetime.date.today())

if todayhours not in range(14, 19): # Check if it is peak hours for CobbEMC
logging.info("Hydrogen is reporting that it's not peak hours. Current hour is " + str(todayhours))
return 2

if minutes < 288:
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def main():
logging.info("Peak hours WERE found in hydrogen_check_gmail")
result = 1
elif peakhours != 1:
logging.info("Peak hours were NOT found in hydrogen_check_gmail")
logging.info("Peak hours were not found in Hydrogen")
if program == "sleep":
logging.info("Ecobee is reporting sleep program, setting result to 2")
result = 2
Expand Down

0 comments on commit bf3fae5

Please sign in to comment.