hi
i’m trying change status of zoneminder with my veralite, but is it possible with lua?
ubuntu server 10.04 only zoneminder (php,ssh,…) is run (no samba, curl, …): 192.168.1.120
192.168.1.120/zm/index.php?view=watch&mid1 for webcam
192.168.1.120/zm/index.php?view=watch&mid2 for foscam
i’ve tried :
1)with identification on zoneminder
luup.inet.wget("http://192.168.1.120/zm/index.php?view=watch&mid1&newFunction=Modect&newEnabled=1&user=xxxxxx&pass=xxxxxx") : no change
2)without identification on zoneminder
luup.inet.wget("http://192.168.1.120/zm/index.php?view=watch&mid1&newFunction=Modect&newEnabled=1") : no change
3)
[code]local http = require(“socket.http”)
– 5 Second timeout
http.TIMEOUT = 5
– The return parameters are in a different order from luup.inet.wget(…)
result, status = http.request(“http://login:motdepasse@192.168.1.120/zm/index.php?view=watch&mid1&newFunction=Modect&newEnabled=1”)[/code]
no change
- with ssh?
os.execute("ssh user@192.168.1.120 & sudo zmpkg.pl surveillance")
no change
so is it possible or not at all?
thank for your attention