Skip to content

Commit

Permalink
Very poor syntax corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Jbithell committed Mar 19, 2018
1 parent 621a467 commit 25a78db
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
def log(message):
print(message)

if os.environ.get('onlineButDormant', False) == "True":
while True:
#onlineButDormant, if set, makes the device do nothing except log the statement below every 12 hours. To get in/out of this mode, set the env paramater and restart the container
log("SleepMode for closure")
time.sleep(43200) #12 Hours
while os.environ.get('onlineButDormant', False) == "True":
#onlineButDormant, if set, makes the device do nothing except log the statement below every 12 hours. To get in/out of this mode, set the env paramater and restart the container
log("SleepMode for closure")
time.sleep(43200) #12 Hours

def reboot():
#Use Resin.io api to reboot
Expand Down

0 comments on commit 25a78db

Please sign in to comment.