I have Domoticz running on a Raspberry.
I use different ESP8266 with espeasy on it sending data to Domoticz
Now i want on a display, at the ESPEasy, some data from Domoticz to display.
In Domoticz i can send 1 data to the ESP8266 with HTTPLink (http://192.168.0.21/control?cmd=lcd,3,12,%v)
I have to send more data to the display is this possible?
does anyone have this setup working.
On ESPEasy i have a LCD2004 working
How to Send data to ESP8266 display
Moderator: leecollings
-
- Posts: 17
- Joined: Wednesday 28 November 2018 12:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Contact:
Re: How to Send data to ESP8266 display
I use now in a lua script
commandArray[#commandArray+1] = {['OpenURL']='http://192.168.0.21/control?cmd=lcd,4,12,test'}
then i get on the display on line 4 pos 12 the word test
How can i display a value b.v. power with idx 90
Thanks Jan
commandArray[#commandArray+1] = {['OpenURL']='http://192.168.0.21/control?cmd=lcd,4,12,test'}
then i get on the display on line 4 pos 12 the word test
How can i display a value b.v. power with idx 90
Thanks Jan
-
- Posts: 17
- Joined: Wednesday 28 November 2018 12:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Contact:
Re: How to Send data to ESP8266 display
Oke this is working.
Code: Select all
-- LCD Aansturen
commandArray = {}
Levering = 'P1 Smart Meter Delivery L1';
Verbruik = 'Power';
if otherdevices_svalues[Verbruik] > '0.0' then
LCDLine3 = otherdevices_svalues[Verbruik];
commandArray[1] = {['OpenURL']="http://192.168.0.21/control?cmd=lcd,3,1,Verbruik :" } ;
commandArray[2] = {['OpenURL']="http://192.168.0.21/control?cmd=lcd,3,12,"..LCDLine3.. " " } ;
print(LCDLine3)
else
LCDLine3 = otherdevices_svalues[Levering];
commandArray[1] = {['OpenURL']="http://192.168.0.21/control?cmd=lcd,3,1,Levering :" } ;
commandArray[2] = {['OpenURL']="http://192.168.0.21/control?cmd=lcd,3,12,"..LCDLine3.. " " } ;
end
return commandArray
-
- Posts: 48
- Joined: Monday 10 December 2018 23:32
- Target OS: Linux
- Domoticz version:
- Location: Poland
- Contact:
Re: How to Send data to ESP8266 display
Easier way is use MQTT import on ESPEasy to get values from domoticz/out topic using Node-red flow:
Code: Select all
[
{
"id": "8eea3e72.a634d",
"type": "tab",
"label": "Flow 6",
"disabled": false,
"info": ""
},
{
"id": "43362c6c.ae8434",
"type": "mqtt in",
"z": "8eea3e72.a634d",
"name": "",
"topic": "domoticz/out",
"qos": "2",
"datatype": "auto",
"broker": "9748a36f.44bdd",
"x": 350,
"y": 260,
"wires": [
[
"c2775a1f.93e698"
]
]
},
{
"id": "c2775a1f.93e698",
"type": "json",
"z": "8eea3e72.a634d",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 510,
"y": 260,
"wires": [
[
"999344f2.06deb8"
]
]
},
{
"id": "999344f2.06deb8",
"type": "switch",
"z": "8eea3e72.a634d",
"name": "",
"property": "payload.idx",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "30",
"vt": "str"
},
{
"t": "eq",
"v": "93",
"vt": "str"
},
{
"t": "eq",
"v": "96",
"vt": "str"
},
{
"t": "eq",
"v": "98",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 4,
"x": 650,
"y": 260,
"wires": [
[
"90eadebf.aa81d"
],
[
"30467635.48e29a"
],
[
"ff317967.d3f8a8"
],
[
"d54b8ee0.0434a"
]
]
},
{
"id": "d54b8ee0.0434a",
"type": "function",
"z": "8eea3e72.a634d",
"name": "Prepare event",
"func": "temp = msg.payload;\nmsg.topic = \"cmnd/espeasy/test4\"\nmsg.payload = parseFloat(temp.svalue1);\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 840,
"y": 320,
"wires": [
[
"7db1ffba.bc5c8"
]
]
},
{
"id": "ff317967.d3f8a8",
"type": "function",
"z": "8eea3e72.a634d",
"name": "Prepare event",
"func": "temp = msg.payload;\nmsg.topic = \"cmnd/espeasy/test3\"\nmsg.payload = parseFloat(temp.svalue1);\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 840,
"y": 280,
"wires": [
[
"7db1ffba.bc5c8"
]
]
},
{
"id": "30467635.48e29a",
"type": "function",
"z": "8eea3e72.a634d",
"name": "Prepare event",
"func": "temp = msg.payload;\nmsg.topic = \"cmnd/espeasy/test2\"\nmsg.payload = parseFloat(temp.svalue1);\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 840,
"y": 240,
"wires": [
[
"7db1ffba.bc5c8"
]
]
},
{
"id": "90eadebf.aa81d",
"type": "function",
"z": "8eea3e72.a634d",
"name": "Prepare event",
"func": "temp = msg.payload;\nmsg.topic = \"cmnd/espeasy/test\"\nmsg.payload = parseFloat(temp.svalue1);\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 840,
"y": 180,
"wires": [
[
"7db1ffba.bc5c8"
]
]
},
{
"id": "7db1ffba.bc5c8",
"type": "mqtt out",
"z": "8eea3e72.a634d",
"name": "",
"topic": "",
"qos": "2",
"retain": "",
"broker": "9748a36f.44bdd",
"x": 1070,
"y": 280,
"wires": []
},
{
"id": "9748a36f.44bdd",
"type": "mqtt-broker",
"z": "",
"broker": "localhost",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
}
]
-
- Posts: 17
- Joined: Wednesday 28 November 2018 12:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.7
- Contact:
Re: How to Send data to ESP8266 display
thanks
This is new for my.
I try to look at it how this is working
This is new for my.
I try to look at it how this is working
-
- Posts: 2
- Joined: Thursday 26 March 2020 7:19
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Amsterdam
- Contact:
Re: How to Send data to ESP8266 display
So i use this:
but then i get error messages, because de LUA script cannot open the URL (thats correct, only sending text).
how to disable this error messages, and let it stop sending emails...
Code: Select all
commandArray[1]={['OpenURL'] = baseurlESPEasy..'oledcmd,clear' }
commandArray[2]={['OpenURL'] = baseurlESPEasy..'oled,1,1,**Domoticz**'..spatie..h..dubbelepunt..m}
commandArray[3]={['OpenURL'] = baseurlESPEasy..'oled,2,1,T_in'..dubbelepunt..spatie..tp..spatie..'*C' }
how to disable this error messages, and let it stop sending emails...
Code: Select all
2022-08-31 11:45:01.569 Error: Error opening url: http://IP/control?cmd=oledcmd,clear
2022-08-31 11:45:01.745 Error: Error opening url: http://IP/control?cmd=oled,1,1,**Domoticz**%2011%3A45
2022-08-31 11:45:01.847 Error: Error opening url: http://IP/control?cmd=oled,2,1,T_in%3A%2023.1%20*C
2022-08-31 11:45:01.985 Error: Error opening url: http://IP/control?cmd=oled,5,1,T_BBQ%3A%20118.00%20*C
2022-08-31 11:45:05.317 Error: Error opening url: http://IP/control?cmd=oled,6,1,T_Vlees%3A%2020.00%20*C
RPi 3B | Domoticz V2020.1 with Z-WAVE and ESP8266 plugins
Who is online
Users browsing this forum: No registered users and 1 guest