Page 1 of 1

text to lcd2004 (espeasy)

Posted: 28 Oct 2017, 19:07
by adval40
I will send text from domoticz to a lcd2004 on an espeasy board

commandArray = {}

commandArray['OpenURL'] = '192.168.0.144/control?cmd=lcd,3,1,ditiseentest'
print ('test ')
return commandArray


it works but in the logfile i see

2017-10-28 19:03:30.280 Error: Error opening url: 192.168.0.144/control?cmd=lcd,3,1,ditiseentest
2017-10-28 19:03:31.237 Error: Error opening url: 192.168.0.144/control?cmd=lcd,3,1,ditiseentest
2017-10-28 19:03:31.311 Error: Error opening url: 192.168.0.144/control?cmd=lcd,3,1,ditiseentest
2017-10-28 19:03:31.382 Error: Error opening url: 192.168.0.144/control?cmd=lcd,3,1,ditiseentest
2017-10-28 19:03:31.694 Error: Error opening url: 192.168.0.144/control?cmd=lcd,3,1,ditiseentest
2017-10-28 19:03:31.925 Error: Error opening url: 192.168.0.144/control?cmd=lcd,3,1,ditiseentest

whats wrong in my lua script
thanks in advance
Ad

Re: text to lcd2004 (espeasy)

Posted: 30 Oct 2017, 08:54
by toffel969
Add
http://
to your URLs

Re: text to lcd2004 (espeasy)

Posted: 30 Oct 2017, 11:32
by adval40
you mean this ?


commandArray['OpenURL'] = "http://192.168.0.144/control?cmd=lcd,3,1,ditiseentest"
print ('test ')
return commandArray

this gives the same error ...

Re: text to lcd2004 (espeasy)

Posted: 20 Nov 2017, 18:31
by adval40
Hello ,

I have tried a lot

this is a lua script
I want to send data tot a lcd2004 display
It works but an error in the log file
2017-11-20 18:30:06.213 Error: Error opening url: http://192.168.0.144/control?cmd=lcd,3,1,test
2017-11-20 18:30:17.230 Error: Error opening url: http://192.168.0.144/control?cmd=lcd,3,1,test
2017-11-20 18:30:26.203 Error: Error opening url: http://192.168.0.144/control?cmd=lcd,3,1,test
who can give me the solution ?

Ad

Re: text to lcd2004 (espeasy)

Posted: 20 Nov 2017, 19:30
by TD-er
Remove "control" between / and ?
Like this http://192.168.0.144/?cmd=lcd,3,1,test

Re: text to lcd2004 (espeasy)

Posted: 20 Nov 2017, 20:41
by adval40
no then you came into de espeasy

Re: text to lcd2004 (espeasy)

Posted: 20 Nov 2017, 22:32
by grovkillen
TD-er wrote: 20 Nov 2017, 19:30 Remove "control" between / and ?
Like this http://192.168.0.144/?cmd=lcd,3,1,test
The URL is fine.

Code: Select all

http://192.168.0.144/control?cmd=lcd,3,1,test
But back to the OP, where do you see this error? On the ESP or the Lua executor?

Re: text to lcd2004 (espeasy)

Posted: 20 Nov 2017, 23:10
by adval40
the error is on the log from domoticz
commandArray['OpenURL'] = '192.168.0.144/control?cmd=lcd,3,1,ditiseentest'
print ('test ')
return commandArray
the display is connected to a esp12 with espeasy

Ad

Re: text to lcd2004 (espeasy)

Posted: 21 Nov 2017, 05:52
by grovkillen
So is this Domoticz related then or what? The URL does update the display but Domoticz is throwing an error? Is any other commands that is sent from Domoticz to ESP Easy working but giving error in the Domoticz log?

Re: text to lcd2004 (espeasy)

Posted: 22 Nov 2017, 14:06
by henkdejonge
Hi regarding this issue i'm facing the same errors. It doesn't make any difference if I make a lua script via the time script method I'll get the same error message.
There is also a strange issue if I try to display something on line 4 it's displayed on line 2. ;-) I'm using a 4 x 20 lines display.
The display is connected to a esp12e with the latest ESPeasy v2.0.0-dev12. Domoticz is running on the latest stable version 3.8153.

2017-11-22 14:01:00.262 LUA: Pinging Henk
2017-11-22 14:01:00.379 LUA: Henk thuis
2017-11-22 14:01:00.382 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_ping_henk.lua
2017-11-22 14:01:00.409 LUA: Pinging Ursula
2017-11-22 14:01:00.443 (Ping) Light/Switch (Henk)
2017-11-22 14:01:01.457 LUA: Ursula niet thuis
2017-11-22 14:01:01.460 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_ping_urs.lua
2017-11-22 14:01:01.477 LUA: test
2017-11-22 14:01:01.477 EventSystem: Fetching url...
2017-11-22 14:01:01.477 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_time_display.lua
2017-11-22 14:01:01.525 (Ping) Light/Switch (Ursula)
2017-11-22 14:01:01.754 Error: Error opening url: 10.0.0.61/control?cmd=lcd,1,1,Domoticz_Sportweg

Henk.