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 b7e6989 commit 9c07b7bCopy full SHA for 9c07b7b
WeatherStationCoreLink/main.py
@@ -22,7 +22,6 @@ def reboot():
22
#Use Resin.io api to reboot
23
log("Rebooting")
24
rebooturl = str(os.environ.get('BALENA_SUPERVISOR_ADDRESS')) + '/v1/reboot?apikey=' + str(os.environ.get('BALENA_SUPERVISOR_API_KEY'))
25
- log(rebooturl)
26
os.system('curl -X POST --header "Content-Type:application/json" "' + rebooturl + '"')
27
time.sleep(60) #Just in case that api call fails as it sometimes does
28
0 commit comments