Posts made by Dragon
-
RE: Help with Lua
If i put http://192.168.1.115/control?cmd=Nextion,page2.t2.txt="12"
in my webexplorer it works -
Help with Lua
Hi!
I have a 433mhz temp sensor in domoticz there i want to send value to a Nextion display with espeasy. Here is my Lua scriptlocal devicename = 'Ute'
commandArray = {}if devicechanged[devicename] then
commandArray['OpenURL']= 'http://192.168.1.115/control?cmd=Nextion,page2,t2.txt='..otherdevices_svalues[devicename]..""
end
return commandArrayIn domoticz log is everything fine but it dont shows up in Nextion.
Any ideas?
-
5v cable
Have a panel with a Nextion 3.2" screen and a Wemos D1. I need about 5m cable to feed this with 5v. Would it work with an network cable or phone cable or would this be too thin?
-
RE: Repeater
@mfalkvidd thanks i missed that. So i only need to write this in the code #define MY_REPEATER_FEATURE
-
Repeater
How do i do a repeater node? I cant found it in the code anymore?
-
Copy sensor
Is it any way to copy the sketch from a sensor? I have lost it on my computer
-
RE: Lua script
@Affe I can not lua i read on lua pages on internet and experiment
-
RE: Lua script
@flopp When i put in print(counter) it shows with decimals in the logg but the counter doesnt
-
RE: Lua script
@flopp In DZ the counter is incremental but i tried general to.
-
RE: Lua script
I can try explain more how i made it. Sorry for my bad English, on my pellet boiler i have a switch that sends on to domoticz every turn with is 15 gram pellet. In domoticz is the switch called Pellets. Then i made a viruell counter in domoticz with name Counter. I want the lua script to + 0.015 to every turn the boiler do to Count how mutch pellet it use. It works now but shows without decimals like 2kg, 3kg and so. I can have so but it would be fun to se more exact weight.
-
Lua script
I have made a simple lua script to count pellet and show this on a virtuell counter in Domoticz. The problem is that the counter dont shows decimals. Can anyone tell me if it is some more i have to write in the script. Here it is
counter = otherdevices_svalues['Counter']
counter = tonumber(counter)commandArray = {}
if
devicechanged['Pellets'] == 'On'
then
counter = counter + 0.015
commandArray['UpdateDevice'] = 82 .. '|0|' .. tostring(counter)
endreturn commandArray