I would like the ability to reboot my Foscam Camera’s occasionally. I see that this can be done through http requests by doing the following:
'http://ipaddress/reboot.cgi?user=admin&pwd=password'
Could this be issued as Luup code to accomplish the reboot through a scene?
I have tried modifying the code I currently have to move the camera to a preset but that didn’t seem to work.
local IP_address = '192.168.xxx.xxx'
local username = 'admin'
local password = 'password'
local timeout = 5
luup.inet.wget( 'http://'..IP_address..'/reboot.cgi?' , timeout, username, password )
Thanks for your help.