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. Development
  3. NodeManager
  4. NodeManager: plugin for a rapid development of battery-powered sensors

NodeManager: plugin for a rapid development of battery-powered sensors

Scheduled Pinned Locked Moved NodeManager
223 Posts 23 Posters 72.9k Views 26 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.
  • U Offline
    U Offline
    user2684
    Contest Winner
    wrote on last edited by
    #145

    I've added a rain gauge out-out-the-box sensor for the latest dev release called 1.5-dev5 (https://github.com/mysensors/NodeManager/tree/126812a9d01311640416222be8225fdcca1e7266). This is intended to be the last enhancement for the upcoming v1.5 version but of course I'll wait for some additional days to collect (and fix) any issue all the new sensors might have.

    The implementation of the rain gauge sensor has to be different than the one from the build section for a good number of reasons and limitations. All the details here: https://github.com/mysensors/NodeManager/issues/90.

    1 Reply Last reply
    0
    • mar.conteM Offline
      mar.conteM Offline
      mar.conte
      wrote on last edited by
      #146

      Sorry but the name of the sketch can be different both in the node and in the gateway?

      M.C.

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #147

        Sure, that's for your use to know what software is running on each sensor

        mar.conteM 1 Reply Last reply
        0
        • gohanG gohan

          Sure, that's for your use to know what software is running on each sensor

          mar.conteM Offline
          mar.conteM Offline
          mar.conte
          wrote on last edited by
          #148

          @gohan
          Should the gateway have the right nodemamager sketch?
          Tanks

          M.C.

          U 1 Reply Last reply
          0
          • gohanG Offline
            gohanG Offline
            gohan
            Mod
            wrote on last edited by
            #149

            Why do you need nodemanager on gateway?

            mar.conteM 1 Reply Last reply
            0
            • gohanG gohan

              Why do you need nodemanager on gateway?

              mar.conteM Offline
              mar.conteM Offline
              mar.conte
              wrote on last edited by mar.conte
              #150

              @gohan
              User2694 say:"Setup MySensors

              Since NodeManager has to communicate with the MySensors gateway on your behalf, it has to know how to do it. Place on top of the config.h file all the MySensors typical directives you are used to set on top of your sketch so both your sketch AND NodeManager will be able to share the same configuration. For example:"
              link text

              M.C.

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #151

                He is referring on the node side, on the gateway you can just run the default sketch

                mar.conteM 1 Reply Last reply
                0
                • gohanG gohan

                  He is referring on the node side, on the gateway you can just run the default sketch

                  mar.conteM Offline
                  mar.conteM Offline
                  mar.conte
                  wrote on last edited by
                  #152

                  @gohan
                  Ok Tanks πŸ˜‰

                  M.C.

                  1 Reply Last reply
                  0
                  • mar.conteM mar.conte

                    @gohan
                    Should the gateway have the right nodemamager sketch?
                    Tanks

                    U Offline
                    U Offline
                    user2684
                    Contest Winner
                    wrote on last edited by
                    #153

                    @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                    Should the gateway have the right nodemamager sketch?

                    Just to confirm what already discussed: a node/sensor with NodeManager running does not require a gateway with NodeManager on it. Generally speaking, there are two situations in which you may want use NodeManager on a gateway as well (available starting from v1.5):

                    • It as to run on a Sonoff device which requires to be configured as a gateway
                    • The gateway has sensors attached to it so you may want to use NodeManager's capabilities to configure your sensors in an easy way

                    There is also a third situation: you are just lazy and have NodeManager already open in the arduino IDE so you just configure the gateway's settings in config.h and upload the sketch :P

                    mar.conteM 1 Reply Last reply
                    1
                    • U user2684

                      @mar.conte said in NodeManager: plugin for a rapid development of battery-powered sensors:

                      Should the gateway have the right nodemamager sketch?

                      Just to confirm what already discussed: a node/sensor with NodeManager running does not require a gateway with NodeManager on it. Generally speaking, there are two situations in which you may want use NodeManager on a gateway as well (available starting from v1.5):

                      • It as to run on a Sonoff device which requires to be configured as a gateway
                      • The gateway has sensors attached to it so you may want to use NodeManager's capabilities to configure your sensors in an easy way

                      There is also a third situation: you are just lazy and have NodeManager already open in the arduino IDE so you just configure the gateway's settings in config.h and upload the sketch :P

                      mar.conteM Offline
                      mar.conteM Offline
                      mar.conte
                      wrote on last edited by
                      #154

                      @user2684
                      πŸ‘πŸΎπŸ˜‰

                      M.C.

                      1 Reply Last reply
                      0
                      • U Offline
                        U Offline
                        user2684
                        Contest Winner
                        wrote on last edited by
                        #155

                        Last chance guys to report any issue for those who had tested the dev version of v1.5 :-)
                        The final version will be out in a day or two otherwise.

                        Thanks!

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #156

                          I am waiting for the LCD mod :D

                          U 1 Reply Last reply
                          0
                          • gohanG gohan

                            I am waiting for the LCD mod :D

                            U Offline
                            U Offline
                            user2684
                            Contest Winner
                            wrote on last edited by
                            #157

                            @gohan LCD unfortunately has to wait for the another release (https://github.com/mysensors/NodeManager/issues/95), I would like to find a way to provide the info on the LCD without the need for the user to configure it for every sensor but this would require investigating on the best generic approach and will take some time :-)

                            1 Reply Last reply
                            0
                            • gohanG Offline
                              gohanG Offline
                              gohan
                              Mod
                              wrote on last edited by
                              #158

                              If you could provide a method to retrieve sensor data from main loop(), it is quite easy for everyone to print it to LCD

                              U 1 Reply Last reply
                              0
                              • gohanG gohan

                                If you could provide a method to retrieve sensor data from main loop(), it is quite easy for everyone to print it to LCD

                                U Offline
                                U Offline
                                user2684
                                Contest Winner
                                wrote on last edited by
                                #159

                                @gohan I wonder if something can be done even right now based on what you're saying. In the main sketch, after invoking nodeManager.loop(), you can actually retrieve the instance of each sensor and do something. The last "value", depending on the type of the sensor, is stored in a variable (e.g. _value_int) BUT it is private. I'll add a getValue() function so you can get out this value. Not ideal but I think it can be a workaround I can easily add before releasing 1.5 (https://github.com/mysensors/NodeManager/issues/104)

                                1 Reply Last reply
                                0
                                • gohanG Offline
                                  gohanG Offline
                                  gohan
                                  Mod
                                  wrote on last edited by
                                  #160

                                  The problem is how do I know the name of the instance of the sensors

                                  U 1 Reply Last reply
                                  0
                                  • gohanG gohan

                                    The problem is how do I know the name of the instance of the sensors

                                    U Offline
                                    U Offline
                                    user2684
                                    Contest Winner
                                    wrote on last edited by
                                    #161

                                    @gohan I mean if you declare a global int to store the child id, then you can save it when calling registersensor() (which returns the id of the sensor) in before() so eventually in loop() you can call getSensor() and then retrieve the value or do whatever else. Something like:

                                    NodeManager nodeManager;
                                    int sensor_id;
                                    
                                    void before() {
                                      Serial.begin(MY_BAUD_RATE);  
                                      sensor_id = nodeManager.registerSensor(SENSOR_THERMISTOR,A1);
                                      nodeManager.before();
                                    }
                                    
                                    void loop() {
                                      nodeManager.loop();
                                      float value = ((SensorThermistor*)nodeManager.getSensor(sensor_id))->getValueFloat();
                                    
                                    }
                                    

                                    Just the getValueFloat() is missing. Not ideal but a starting point. Don't you think? Thanks!

                                    1 Reply Last reply
                                    0
                                    • gohanG Offline
                                      gohanG Offline
                                      gohan
                                      Mod
                                      wrote on last edited by
                                      #162

                                      That would work, at least for me :)

                                      U 1 Reply Last reply
                                      0
                                      • gohanG gohan

                                        That would work, at least for me :)

                                        U Offline
                                        U Offline
                                        user2684
                                        Contest Winner
                                        wrote on last edited by
                                        #163

                                        @gohan cool, just added it to the dev code. I'm packing now the final v1.5 and about to post it here in a few minutes. Thanks!

                                        1 Reply Last reply
                                        0
                                        • gohanG Offline
                                          gohanG Offline
                                          gohan
                                          Mod
                                          wrote on last edited by
                                          #164

                                          At least now we can add some more code besides the default created by nodemanager ;)

                                          U 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          15

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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