Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This will make the webserver call as a background task, so control will be given back to the service immediately, rather than it waiting for the wget to complete.
echo Calling energenie socket...
wget --quiet --background --output-document="callenergenie.log" "http://192.168.1.99/callenergenie.php?delay=10&switch=2&state=off"
echo Sleeping for 2 seconds
sleep 2
echo Done.
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.