We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb94884 commit aa14898Copy full SHA for aa14898
WeatherStationCoreLink/main.py
@@ -25,7 +25,8 @@ def reboot():
25
rebooturl = str(os.environ.get('BALENA_SUPERVISOR_ADDRESS')) + '/v1/reboot?apikey=' + str(os.environ.get('BALENA_SUPERVISOR_API_KEY'))
26
try:
27
os.system('curl -X POST --header "Content-Type:application/json" "' + rebooturl + '"')
28
- time.sleep(43200)
+ time.sleep(600)
29
+ reboot() #Clerly it's not restarted by now so we'll try again
30
except:
31
time.sleep(600) #Just in case that api call fails as it sometimes does
32
reboot()
0 commit comments