Navigation

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

    Topics created by gigaguy

    • gigaguy

      ST connectivty via WebIOPi/REST?
      Controllers • • gigaguy  

      2
      0
      Votes
      2
      Posts
      1304
      Views

      gigaguy

      This looks promising to at least get everything taking in the same place. https://github.com/stjohnjohnson/smartthings-mqtt-bridge/blob/master/README.md
    • gigaguy

      Queued send commands?
      General Discussion • • gigaguy  

      2
      0
      Votes
      2
      Posts
      998
      Views

      hek

      gw.wait is ok. It keeps node awake and process incoming messages. If you sleep the node it becomes more complicated. You could send something to the controller when waking up (and keep the node awake for a short time to receive new commands). And the controller buffers outgoing commands until it receives this "woke-up-message". If you enable ack on outgoing commands from the controller (and the node is sleeping) you won't get and ack message back... which indicates the node is down or is sleeping.
    • gigaguy

      MQ2 Sensor w/AirQuality Sketch
      Hardware • • gigaguy  

      15
      0
      Votes
      15
      Posts
      11242
      Views

      Moshe Livne

      @Viper_Scull Domoticz supports V_VARs, just not as a viewable or modifiable value on the controller. It will store and return the V_VARs values for the sketch, nothing more.
    • gigaguy

      Energy monitor from existing CT's
      My Project • • gigaguy  

      12
      0
      Votes
      12
      Posts
      6095
      Views

      gigaguy

      @ewgor, like I said, I couldnt get mine built. Not sure what i did wrong. I got values, but they were the same whether current was going through or not. So i kind of gave up on it for a while. I too need some help getting it built.
    • gigaguy

      gw.sleep issues
      Troubleshooting • • gigaguy  

      9
      0
      Votes
      9
      Posts
      4338
      Views

      gigaguy

      @barduino Yeah the Temp bounces around since I removed the sleep, it is far less variable with the sleep. I am going to try with the gw.wait, i think this is the one that still processes while it waits. If not, I will try millis.
    • gigaguy

      set Metric on gw?
      General Discussion • • gigaguy  

      7
      0
      Votes
      7
      Posts
      3337
      Views

      gigaguy

      @Tango2 I had been doing this a different way until I noticed the GW should be able to do it. BTW, It is only working on one node, not sure why :(. Anyway, my alternate solution allows be to send "settings: to the nodes. For example, change the loop time or measurement unit. This is not the complete code, just the relevant parts (hopefully). void setup() { gw.begin(incomingMessage, nodeID); } void loop() { gw.process(); } void incomingMessage(const MyMessage &message) { if (message.type == 97) { Serial.print("Recvd Time"); Serial.println(time); timeReceived=true; } if (message.type == 98) { int reqsleep = atoi( message.data ); SLEEP_TIME = reqsleep*1000; Serial.print( "Changing sleep to: " ); Serial.println( String(reqsleep) ); } if (message.type == 99) { int requnit = atoi( message.data ); Serial.print( "Changing units to: " ); if(requnit == M){ metric = true; Serial.println( "metric" ); } else { metric = false; Serial.println( "imprerial" ); } } } Using this code, I can send things from openhab, or any serial command I suppose. My openhab rules Send Units: sendCommand(Arduino, "101;99;1;0;99;M\n") Send Time: var Number time1 time1 = now().getMillis() / 1000 sendCommand(Arduino, "101;97;1;0;97;" + time1 + "\n")