Hi,
I am thinking of writing a small widget for my Samsung Smart TV to shutdown/restart the router on request.
Giving the fact that the widget can only make some simple http requests I was wondering if there is a url on the rotuer's web server that will take some parameters and perform some actions.
Something like a basic webservice.
For instance my D-Link NAS can be switched off like so:
set UNAME=admin
set PASSWD=yourpassword
set IP=172.17.0.6
wget --tries=1 --timeout=5 "http://%IP%/goform/formLogin?f_login_type=0&f_LOGIN_NAME=%UNAME%&f_LOGIN_PASSWD=%PASSWD%"
IF %ERRORLEVEL%==0
(
wget --tries=1 --timeout=5 "http://%IP%/goform/sysShutDown?shootdown"
)
ELSE
(
echo Unable to shutdown NAS_002
)
NAS forum link: http://forums.dlink.com/index.php?topic=8362.0
Cand this be done on RT-n66U running Merlin's firmware?
Thank you.
I am thinking of writing a small widget for my Samsung Smart TV to shutdown/restart the router on request.
Giving the fact that the widget can only make some simple http requests I was wondering if there is a url on the rotuer's web server that will take some parameters and perform some actions.
Something like a basic webservice.
For instance my D-Link NAS can be switched off like so:
set UNAME=admin
set PASSWD=yourpassword
set IP=172.17.0.6
wget --tries=1 --timeout=5 "http://%IP%/goform/formLogin?f_login_type=0&f_LOGIN_NAME=%UNAME%&f_LOGIN_PASSWD=%PASSWD%"
IF %ERRORLEVEL%==0
(
wget --tries=1 --timeout=5 "http://%IP%/goform/sysShutDown?shootdown"
)
ELSE
(
echo Unable to shutdown NAS_002
)
NAS forum link: http://forums.dlink.com/index.php?topic=8362.0
Cand this be done on RT-n66U running Merlin's firmware?
Thank you.