text to lcd2004 (espeasy)
Moderators: grovkillen, Stuntteam, TD-er
text to lcd2004 (espeasy)
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
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)
Add
to your URLshttp://
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: text to lcd2004 (espeasy)
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 ...
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)
Hello ,
I have tried a lot
this is a lua script
It works but an error in the log file
Ad
I have tried a lot
this is a lua script
I want to send data tot a lcd2004 displaycommandArray['OpenURL']= 'http://192.168.0.144/control?cmd=lcd,3,1,test'
It works but an error in the log file
who can give me the solution ?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
Ad
Last edited by adval40 on 20 Nov 2017, 20:53, edited 1 time in total.
Re: text to lcd2004 (espeasy)
Remove "control" between / and ?
Like this http://192.168.0.144/?cmd=lcd,3,1,test
Like this http://192.168.0.144/?cmd=lcd,3,1,test
Re: text to lcd2004 (espeasy)
no then you came into de espeasy
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: text to lcd2004 (espeasy)
The URL is fine.TD-er wrote: ↑20 Nov 2017, 19:30 Remove "control" between / and ?
Like this http://192.168.0.144/?cmd=lcd,3,1,test
Code: Select all
http://192.168.0.144/control?cmd=lcd,3,1,test
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: text to lcd2004 (espeasy)
the error is on the log from domoticz
Ad
the display is connected to a esp12 with espeasycommandArray['OpenURL'] = '192.168.0.144/control?cmd=lcd,3,1,ditiseentest'
print ('test ')
return commandArray
Ad
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: text to lcd2004 (espeasy)
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- Normal user
- Posts: 13
- Joined: 22 Nov 2017, 13:47
Re: text to lcd2004 (espeasy)
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.
There is also a strange issue if I try to display something on line 4 it's displayed on line 2.

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.
Who is online
Users browsing this forum: No registered users and 21 guests