Skip to content

Commit aa14898

Browse files
committed
Temporary fix for reboot failing
1 parent fb94884 commit aa14898

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

WeatherStationCoreLink/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def reboot():
2525
rebooturl = str(os.environ.get('BALENA_SUPERVISOR_ADDRESS')) + '/v1/reboot?apikey=' + str(os.environ.get('BALENA_SUPERVISOR_API_KEY'))
2626
try:
2727
os.system('curl -X POST --header "Content-Type:application/json" "' + rebooturl + '"')
28-
time.sleep(43200)
28+
time.sleep(600)
29+
reboot() #Clerly it's not restarted by now so we'll try again
2930
except:
3031
time.sleep(600) #Just in case that api call fails as it sometimes does
3132
reboot()

0 commit comments

Comments
 (0)