change status with http or other (syntax)?

Forum for questions and support relating to the 1.24.x releases only.
Locked
ketchoupi
Posts: 11
Joined: Sat Jun 02, 2012 4:54 pm

change status with http or other (syntax)?

Post by ketchoupi »

hi

sorry for my english, it isnt very good

zoneminder 1.24.2(with identification : user1 passworduser1) is on my ubuntu server 10.04 (192.168.1.120 with ROOT passwd : PASSWORD)

it's ok for my 2 camera : foscam (adresserver/zm/index.php?view=watch&mid1[*]) and webcam ([*]adressserver/zm/index.php?view=watch&mid0)

i want to change zoneminder's status with a domotic box (veralite)
i ve created 2 status

status 1 : monitor
status 2 : modect

Code: Select all

sudo EDITOR=/usr/bin/nano visudo

and do :

Code: Select all

ROOT ALL= NOPASSWD: /usr/bin/zmpkg.pl
on my server with sudo zmpkg.pl monitor and zmpkg.pl modect, it's ok.

now with ssh and http request, i don't find anything


i have make many tries but it isnt good. i don't find good syntax

one of example :
ssh -l ROOT -pw PASSWORD 192.168.1.120 sudo zmpkg.pl monitor
luup.inet.wget("htttp://192.168.1.120/nph-zms?mode=jpeg&modect=[1]&user=[user1]&pass=[passworduser1]")

so if i find good syntax, it will be a great satisfaction.

but is it possible?

thank for your attention
Locked