Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Dragon
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by Dragon

    • RE: Help with Lua

      @kimot said in Help with Lua:

      '

      Thanks but it didnt help

      posted in Troubleshooting
      Dragon
      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

      posted in Troubleshooting
      Dragon
      Dragon
    • 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 script

      local 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 commandArray

      In domoticz log is everything fine but it dont shows up in Nextion.

      Any ideas?

      posted in Troubleshooting
      Dragon
      Dragon
    • RE: 5v cable

      Thanks!👍

      posted in General Discussion
      Dragon
      Dragon
    • 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?

      posted in General Discussion
      Dragon
      Dragon
    • RE: Repeater

      @mfalkvidd Thanks

      posted in General Discussion
      Dragon
      Dragon
    • RE: Repeater

      @mfalkvidd thanks i missed that. So i only need to write this in the code #define MY_REPEATER_FEATURE

      posted in General Discussion
      Dragon
      Dragon
    • Repeater

      How do i do a repeater node? I cant found it in the code anymore?

      posted in General Discussion
      Dragon
      Dragon
    • RE: Copy sensor

      @mfalkvidd Okey thanks

      posted in General Discussion
      Dragon
      Dragon
    • Copy sensor

      Is it any way to copy the sketch from a sensor? I have lost it on my computer

      posted in General Discussion
      Dragon
      Dragon
    • RE: Lua script

      @Affe I can not lua 😃 i read on lua pages on internet and experiment

      posted in Troubleshooting
      Dragon
      Dragon
    • RE: Lua script

      @flopp When i put in print(counter) it shows with decimals in the logg but the counter doesnt

      posted in Troubleshooting
      Dragon
      Dragon
    • RE: Lua script

      @flopp In DZ the counter is incremental but i tried general to.

      posted in Troubleshooting
      Dragon
      Dragon
    • 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.

      posted in Troubleshooting
      Dragon
      Dragon
    • RE: Lua script

      Thanks but that didnt help.

      posted in Troubleshooting
      Dragon
      Dragon
    • 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)
      end

      return commandArray

      posted in Troubleshooting
      Dragon
      Dragon