text to lcd2004 (espeasy)

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
adval40
Normal user
Posts: 26
Joined: 04 Apr 2017, 23:14

text to lcd2004 (espeasy)

#1 Post by adval40 » 28 Oct 2017, 19:07

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

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: text to lcd2004 (espeasy)

#2 Post by toffel969 » 30 Oct 2017, 08:54

Add
http://
to your URLs
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

adval40
Normal user
Posts: 26
Joined: 04 Apr 2017, 23:14

Re: text to lcd2004 (espeasy)

#3 Post by adval40 » 30 Oct 2017, 11:32

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 ...

adval40
Normal user
Posts: 26
Joined: 04 Apr 2017, 23:14

Re: text to lcd2004 (espeasy)

#4 Post by adval40 » 20 Nov 2017, 18:31

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
Last edited by adval40 on 20 Nov 2017, 20:53, edited 1 time in total.

TD-er
Core team member
Posts: 8739
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: text to lcd2004 (espeasy)

#5 Post by TD-er » 20 Nov 2017, 19:30

Remove "control" between / and ?
Like this http://192.168.0.144/?cmd=lcd,3,1,test

adval40
Normal user
Posts: 26
Joined: 04 Apr 2017, 23:14

Re: text to lcd2004 (espeasy)

#6 Post by adval40 » 20 Nov 2017, 20:41

no then you came into de espeasy

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: text to lcd2004 (espeasy)

#7 Post by grovkillen » 20 Nov 2017, 22:32

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?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

adval40
Normal user
Posts: 26
Joined: 04 Apr 2017, 23:14

Re: text to lcd2004 (espeasy)

#8 Post by adval40 » 20 Nov 2017, 23:10

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: text to lcd2004 (espeasy)

#9 Post by grovkillen » 21 Nov 2017, 05:52

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?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

henkdejonge
Normal user
Posts: 13
Joined: 22 Nov 2017, 13:47

Re: text to lcd2004 (espeasy)

#10 Post by henkdejonge » 22 Nov 2017, 14:06

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 106 guests