I want the power reading in my raspberry sent to a ESP8266 with a display2004 to display my powerconsumption.
Is this possible ?
Sending powerreading to ESP
Moderator: leecollings
-
- Posts: 12
- Joined: Tuesday 18 April 2017 21:55
- Target OS: -
- Domoticz version:
- Contact:
-
- Posts: 44
- Joined: Monday 23 December 2013 23:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Newest
- Location: Netherlands Helmond
- Contact:
Re: Sending powerreading to ESP
I think this is possible , look at this:
https://www.letscontrolit.com/wiki/index.php/LCDDisplay
https://www.letscontrolit.com/wiki/index.php/LCDDisplay
-
- Posts: 12
- Joined: Tuesday 18 April 2017 21:55
- Target OS: -
- Domoticz version:
- Contact:
Re: Sending powerreading to ESP
Thanks i have read that. But now how to do?
-
- Posts: 12
- Joined: Tuesday 18 April 2017 21:55
- Target OS: -
- Domoticz version:
- Contact:
Re: Sending powerreading to ESP
I have now:
Code: Select all
[--
commandArray = {}
DomDevice = 'Power';
IP = '192.168.0.53';
-- if devicechanged[DomDevice] then
DomValue = otherdevices_svalues[DomDevice];
print(DomValue)
-- print(string.sub(DomValue, string.find(DomValue, ;)))
-- end
runcommand = "curl http://" .. IP .. "/control?cmd=LCD,1,1," ..DomValue.. " ";
os.execute(runcommand);
return commandArray
/code]
This is working.
Who is online
Users browsing this forum: No registered users and 1 guest