I've got this script, this html command works fine if I run it with curl from the command line, put it into a browser, whatever, but when my script runs, it doesn't work. It changes the stop light to red and then changes the profile to something, here is an example, any ideas?
commandArray = {}
if (devicechanged['Security Switch'] == 'Armed') then
commandArray['OpenURL']='http://10.0.0.124/admin?signal=1&user=username&pw=password'
commandArray['OpenURL']='http://10.0.0.124/admin?profile=2&lock=2&user=username&pw=password'
the second command that changes the profile works like a champ, it doesn't-make-sense.
commandArray = {}
if (devicechanged['Security Switch'] == 'Armed') then
commandArray['OpenURL']='http://10.0.0.124/admin?signal=1&user=username&pw=password'
commandArray['OpenURL']='http://10.0.0.124/admin?profile=2&lock=2&user=username&pw=password'
the second command that changes the profile works like a champ, it doesn't-make-sense.