error Log after show text Oled display

Moderator: leecollings

Post Reply
adval40
Posts: 14
Joined: Sunday 28 May 2017 18:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11528
Location: Eindhoven (The netherlands)
Contact:

error Log after show text Oled display

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

Re: error Log after show text Oled display

Post by SweetPants »

What happens if you put the URL in a browser?
adval40
Posts: 14
Joined: Sunday 28 May 2017 18:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11528
Location: Eindhoven (The netherlands)
Contact:

Re: error Log after show text Oled display

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

Re: error Log after show text Oled display

Post by SweetPants »

Do you need the extra %20 at the end? Try removing it from the URL in Lua
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest