Sending powerreading to ESP
Posted: Tuesday 26 December 2017 0:54
I want the power reading in my raspberry sent to a ESP8266 with a display2004 to display my powerconsumption.
Is this possible ?
Is this possible ?
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.