Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 1.4 Beta

1.4 Beta

Scheduled Pinned Locked Moved Announcements
1.4betahelp
129 Posts 18 Posters 112.0k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H hek

    @ServiceXp

    The node will be transferring celsius data until it manage to receive settings from controller (this is done in the background) by setup().
    Attach your failing sensor to the computer. Upload sketch with debug enabled. And look at the Serial monitor. Restart a sensor a few times .

    R Offline
    R Offline
    RJ_Make
    Hero Member
    wrote on last edited by
    #119

    @hek

    Thanks, I'll do that when I get home later. Just so I'm clear..

    To enable debugging: I Remove the "//" before the #define DEBUG ** in and ONLY in** the /libraries/MySensors/Config.h file ? Then upload the sketch again to the sensors? (I don't have to upload the gateway sketch also do I?)

    RJ_Make

    H 1 Reply Last reply
    0
    • R RJ_Make

      @hek

      Thanks, I'll do that when I get home later. Just so I'm clear..

      To enable debugging: I Remove the "//" before the #define DEBUG ** in and ONLY in** the /libraries/MySensors/Config.h file ? Then upload the sketch again to the sensors? (I don't have to upload the gateway sketch also do I?)

      H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #120

      @ServiceXp

      Yes correct!

      R 1 Reply Last reply
      0
      • H hek

        @ServiceXp

        Yes correct!

        R Offline
        R Offline
        RJ_Make
        Hero Member
        wrote on last edited by
        #121

        @hek

        I can only find MyConfig.h file, and DEBUG was already without the "//".

        So I noticed something VERY strange. It seems when I have the sensors connected to the computer, they start reading in Fahrenheit, and once I pull the USB cable it reverts back to Celsius with-in 30-60 seconds..

        RJ_Make

        1 Reply Last reply
        0
        • R Offline
          R Offline
          RJ_Make
          Hero Member
          wrote on last edited by
          #122

          Yep, I have no idea how to debug this. The debug window reads in Fahrenheit, (and in Vera), but 30-60 seconds after I disconnect the usb cable from my computer (at which point I can't use the serial com window) it reverts back to Celsius.

          I've deleted one of the sensor nodes and child from Vera, cleared the eEPROM and re-install sketch and re-incuded back into Vera...

          I just don't understand why it works while connected to my computer...

          RJ_Make

          H 1 Reply Last reply
          0
          • R RJ_Make

            Yep, I have no idea how to debug this. The debug window reads in Fahrenheit, (and in Vera), but 30-60 seconds after I disconnect the usb cable from my computer (at which point I can't use the serial com window) it reverts back to Celsius.

            I've deleted one of the sensor nodes and child from Vera, cleared the eEPROM and re-install sketch and re-incuded back into Vera...

            I just don't understand why it works while connected to my computer...

            H Offline
            H Offline
            hek
            Admin
            wrote on last edited by
            #123

            @ServiceXp

            No, this seems strange. The unit settings should get stored in eeprom.

            R 1 Reply Last reply
            0
            • H hek

              @ServiceXp

              No, this seems strange. The unit settings should get stored in eeprom.

              R Offline
              R Offline
              RJ_Make
              Hero Member
              wrote on last edited by
              #124

              @hek

              Do you think I can rule out my sensor hardware as it works with 1.3? Is there any way I can determine if it's being written to eEPROM while connected to the computer and then after it's disconnected (to see if it's getting overwritten)?

              RJ_Make

              H 1 Reply Last reply
              0
              • R RJ_Make

                @hek

                Do you think I can rule out my sensor hardware as it works with 1.3? Is there any way I can determine if it's being written to eEPROM while connected to the computer and then after it's disconnected (to see if it's getting overwritten)?

                H Offline
                H Offline
                hek
                Admin
                wrote on last edited by
                #125

                @ServiceXp

                Do you call process() in loop()?

                But, really.. Don't put too much effort into this. Just hardcode sensor to send fahrenheit until conversion is done by controller plugin.

                R 1 Reply Last reply
                0
                • H hek

                  @ServiceXp

                  Do you call process() in loop()?

                  But, really.. Don't put too much effort into this. Just hardcode sensor to send fahrenheit until conversion is done by controller plugin.

                  R Offline
                  R Offline
                  RJ_Make
                  Hero Member
                  wrote on last edited by RJ_Make
                  #126

                  @hek
                  I'm using the boiler plate sketch provided in the 1.4b1 files. The only modifications I've done is add battery code. (Copy and Paste).

                  How to I hard code sensor to send in Fahrenheit?

                  Sorry you have to hold my hand through this, I'm very new at this.....

                  RJ_Make

                  H 1 Reply Last reply
                  0
                  • R RJ_Make

                    @hek
                    I'm using the boiler plate sketch provided in the 1.4b1 files. The only modifications I've done is add battery code. (Copy and Paste).

                    How to I hard code sensor to send in Fahrenheit?

                    Sorry you have to hold my hand through this, I'm very new at this.....

                    H Offline
                    H Offline
                    hek
                    Admin
                    wrote on last edited by
                    #127

                    @ServiceXp

                    Change

                    float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
                    

                    To

                    float temperature = static_cast<float>(static_cast<int>((sensors.getTempFByIndex(i)) * 10.)) / 10.;
                    

                    But I still wonder what goes wrong...

                    R 1 Reply Last reply
                    0
                    • H hek

                      @ServiceXp

                      Change

                      float temperature = static_cast<float>(static_cast<int>((gw.getConfig().isMetric?sensors.getTempCByIndex(i):sensors.getTempFByIndex(i)) * 10.)) / 10.;
                      

                      To

                      float temperature = static_cast<float>(static_cast<int>((sensors.getTempFByIndex(i)) * 10.)) / 10.;
                      

                      But I still wonder what goes wrong...

                      R Offline
                      R Offline
                      RJ_Make
                      Hero Member
                      wrote on last edited by
                      #128

                      @hek

                      Worked perfectly for the temperature sensor, but it appears the Humidity and Temp. Sketch handles this differently. Not sure what to replace and where.

                      RJ_Make

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        RJ_Make
                        Hero Member
                        wrote on last edited by
                        #129

                        Not very nice but I think this will work..

                          //float temperature = dht.getTemperature();
                         float temperature = dht.getTemperature()*9/5 + 32;
                          
                         if (isnan(temperature)) {
                            Serial.println("Failed reading temperature from DHT");
                         } else if (temperature != lastTemp) {
                         lastTemp = temperature;
                           if (!metric) {
                          temperature = dht.getTemperature()*9/5 + 32;   //dht.toFahrenheit(temperature);
                         }
                        

                        RJ_Make

                        1 Reply Last reply
                        0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        18

                        Online

                        12.0k

                        Users

                        11.2k

                        Topics

                        113.4k

                        Posts


                        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular