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
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