These commands have worked great in my scenes until I upgraded to the latest firmware. Now they are not working anymore. If I run the HTTP command from my browser they work great.
Delete the command and retype them in (don’t copy anything from the Vera UI then try to re paste it back). Encoding was changed in one of the firmware updates that corrupts something in the LUA code. I can’t tell what it was, but fresh typing it in, fixed it. Using copy paste to try to fix it seems to maintain the corruption even If you go through notepad (maybe it is the wrong return character or something not visible), but fresh typing it in or copying it from something that wasn’t in Vera works fine to fix it.
What I did was create a text file and placed it on my NAS with any LUA code I need to reenter into Vera. This way I can coy from the text file and paste it to Vera.
I had the same problem triggering Blue Iris actions. Retyping did not solve the problem, but taking the user and pw out of the url and passing it as a parameter for basic authentication worked for me. If retyping doesn’t work for you, try the following: luup.inet.wget(‘http://192.168.86.33:30/set_alarm.cgi?motion_armed=0’, 5, ‘
Thanks for the suggestions. I tried them both. And neither of them worked.
The weird thing is if I run the LUUP code in the “Apps->Develop Apps->Test Luup code (Lua)” area it works great. So I know the code is written correctly and my Vera runs it correctly. It just seems that when I run it as part of a Scene that it doesn’t get run.
Is there a way to see any error codes that are output from running a Scene? How do I see the log for my Vera?
Also, there’s a constant error message at the top of my Vera page that says “ERROR : Error in lua for scenes and events”. Would that error message be stopping all Scene Lua code from running?
I have many scenes, sometime i got that error in lua for scene in events,
If i disable all the scenes is that error is going to show up again?
Then try to re-enable one scene every couples of day… till i found the defective script
i m looking for a way to find if it s a corrupt scene script or a defective device.
[quote=“sjf2626, post:1, topic:196278”]I have a Vera3 running firmware 1.7.919. I have several scenes that use luup.inet.wget to send HTTP commands to my Foscam cameras. For example: luup.inet.wget(‘[url=http://192.168.86.33:30/set_alarm.cgi?motion_armed=0&user=]http://192.168.86.33:30/set_alarm.cgi?motion_armed=0&user=[/url]
These commands have worked great in my scenes until I upgraded to the latest firmware. Now they are not working anymore. If I run the HTTP command from my browser they work great.
Any ideas?[/quote]
My LUUP code was working for years and with the last firmware update, it stopped working. The URL works within a browser, it is the wget that no longer works:
Strange, I have a scene that’s using wget to bring up my camera image on the HTPC. Its still working fine and I have not enabled that security setting. I did see that setting previously and wondered if to enable it or not, but as my scene was still working I left it turned off.
Best Home Automation shopping experience. Shop at Ezlo!