Page 1 of 1

error Log after show text Oled display

Posted: Friday 23 June 2017 1:10
by adval40
I have make a lua script

commandArray = {}

if (devicechanged['Trap Groen'] == 'On') then
commandArray['SendNotification']='Trapverlichting#Trap verlichtig Groen aan '
commandArray['OpenURL']='http://192.168.0.146/control?cmd=oled,3 ... n%20aan%20'
end
if (devicechanged['Trap Groen'] == 'Off') then
commandArray['SendNotification']='Trapverlichting#Trap verlichtig Groen uit '
commandArray['OpenURL']='http://192.168.0.146/control?cmd=oled,3 ... n%20uit%20'
end

return commandArray

It works but I have an error on my log

017-06-23 01:00:17.293 Error: Error opening url: http://192.168.0.146/control?cmd=oled,3 ... n%20aan%20
2017-06-23 01:00:17.636 Notification sent (nma) => Success

Ad from Eindhoven

Re: error Log after show text Oled display

Posted: Saturday 24 June 2017 18:53
by SweetPants
What happens if you put the URL in a browser?

Re: error Log after show text Oled display

Posted: Sunday 25 June 2017 0:17
by adval40
When I put the URl into my browser the text goes on display and No error into the log

When into the lua script I see an errot in my log


2017-06-25 00:15:12.905 (GPIO poorten) Lighting 1 (Trap Groen)
2017-06-25 00:15:13.299 Error: Error opening url: http://192.168.0.146/control?cmd=oled,1 ... omoticz%20**
2017-06-25 00:15:13.354 Error: Error opening url: http://192.168.0.146/control?cmd=oled,3 ... roen%20AAN
2017-06-25 00:15:13.375 Error: Error opening url: http://192.168.0.146/control?cmd=oledcmd,on

Re: error Log after show text Oled display

Posted: Sunday 25 June 2017 15:32
by SweetPants
Do you need the extra %20 at the end? Try removing it from the URL in Lua