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. Troubleshooting
  3. Could use a bid help to get started

Could use a bid help to get started

Scheduled Pinned Locked Moved Troubleshooting
24 Posts 3 Posters 5.8k Views 2 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.
  • R Rene046

    Hi,

    What i see also often is that Mysensor.h is used in a lot of sketches
    and cant be found by Arduino's ide.

    WARNING: Spurious .mystools folder in 'MySensors' library
    H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\DHT22-1\DHT22-1.ino:2:22: fatal error: MySensor.h: No such file or directory

    i am afraid i have done something verry wrong that nothing seems to be working here.

    Installed arduino ide many times removed library's many time's but still no sketch with Mysensor works here.

    Please please help

    mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #6

    @Rene046 how did you install the MySensors library? Did you use the instructions at https://www.mysensors.org/about/arduino#installing-the-sensor-libraries ?

    Where did you find the dht11 sketch? MySensor.h (without s before the dot) is from MySensors 1.x so it seems there is a mixup between different versions.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rene046
      wrote on last edited by
      #7

      jes i installed it like in your link.

      Seems my sketch is then from an older version. because it uses Mysensor.h
      I also tried changing it to mysensors.h but then allot of things go wrong while compiling

      Maybe you could point me to a DHT sketch thats up-to-date ? for mysensor version 2.1.1
      i installed.

      Im totally new with mysensor, and now you told me i understand that lots of sketches on internet are old and dont work anymore.
      Where can i find info about changes ?

      i now am trying the sketch of this person
      https://forum.mysensors.org/topic/3774/multiple-dht22-in-one-sensor-for-greenhouse-newbee-question/5

      but he also seems to use old version, i see again mysensor.h instead of mysensors.h

      hope for an answer....

      mfalkviddM 1 Reply Last reply
      0
      • R Rene046

        jes i installed it like in your link.

        Seems my sketch is then from an older version. because it uses Mysensor.h
        I also tried changing it to mysensors.h but then allot of things go wrong while compiling

        Maybe you could point me to a DHT sketch thats up-to-date ? for mysensor version 2.1.1
        i installed.

        Im totally new with mysensor, and now you told me i understand that lots of sketches on internet are old and dont work anymore.
        Where can i find info about changes ?

        i now am trying the sketch of this person
        https://forum.mysensors.org/topic/3774/multiple-dht22-in-one-sensor-for-greenhouse-newbee-question/5

        but he also seems to use old version, i see again mysensor.h instead of mysensors.h

        hope for an answer....

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #8

        @Rene046 many MySensors sketches are included with the MySensors library. You can find them in File->Examples-MySensors in the Arduino IDE

        However, sketches that require external libraries (such as the temperature example which requires a MySensors fork of the DHT library) can not be included within the library. Therefore, they are available at https://github.com/mysensors/MySensorsArduinoExamples/archive/master.zip

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rene046
          wrote on last edited by
          #9

          All those samples seems to work and compile perfect,

          But there is no sample with an DHT sensor temp. and hum included. or do i overlook ?

          mfalkviddM 1 Reply Last reply
          0
          • R Rene046

            All those samples seems to work and compile perfect,

            But there is no sample with an DHT sensor temp. and hum included. or do i overlook ?

            mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #10

            @Rene046 in the MySensorsArduinoExamples zip file is examples/DhtTemperatureAndHumiditySensor and libraries/DHT

            You'll need both those folders.

            1 Reply Last reply
            0
            • R Offline
              R Offline
              Rene046
              wrote on last edited by
              #11

              should i unzip those inside the mysensor map or arduino ?

              mfalkviddM 1 Reply Last reply
              0
              • R Rene046

                should i unzip those inside the mysensor map or arduino ?

                mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by
                #12

                @Rene046 I am not sure, but try putting DhtTemperatureAndHumiditySensor in the Arduino sketch folder (My Documents\Arduino on my computer) and DHT in the libraries folder (My Documents\Arduino\libraries on my computer)

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  Rene046
                  wrote on last edited by
                  #13

                  ok done that, opened the sketch sample for dht.
                  compile and i get :

                  H:\WINDOW~1\Temp\arduino_modified_sketch_660970\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
                  
                  DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
                  
                     metric = getConfig().isMetric;
                  
                                        ^
                  
                  Multiple libraries were found for "DHT.h"
                   Used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT
                   Not used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT-sensor-library-master
                  exit status 1
                  'getConfig' was not declared in this scope
                  
                  
                  mfalkviddM 1 Reply Last reply
                  0
                  • R Rene046

                    ok done that, opened the sketch sample for dht.
                    compile and i get :

                    H:\WINDOW~1\Temp\arduino_modified_sketch_660970\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
                    
                    DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
                    
                       metric = getConfig().isMetric;
                    
                                          ^
                    
                    Multiple libraries were found for "DHT.h"
                     Used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT
                     Not used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT-sensor-library-master
                    exit status 1
                    'getConfig' was not declared in this scope
                    
                    
                    mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by mfalkvidd
                    #14

                    @Rene046 There are two DHT folders. Delete the DHT folder that didn't come from the MySensorsArduinoExamples zip file.

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Rene046
                      wrote on last edited by
                      #15

                      ok now im left with this

                      H:\WINDOW~1\Temp\arduino_modified_sketch_225110\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
                      
                      DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
                      
                         metric = getConfig().isMetric;
                      
                                            ^
                      
                      exit status 1
                      'getConfig' was not declared in this scope
                      
                      
                      mfalkviddM 1 Reply Last reply
                      0
                      • R Rene046

                        ok now im left with this

                        H:\WINDOW~1\Temp\arduino_modified_sketch_225110\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
                        
                        DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
                        
                           metric = getConfig().isMetric;
                        
                                              ^
                        
                        exit status 1
                        'getConfig' was not declared in this scope
                        
                        
                        mfalkviddM Offline
                        mfalkviddM Offline
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #16

                        @Rene046 see https://forum.mysensors.org/topic/5841/getconfig-was-not-declared-in-this-scope-v2-1-1-fixed/2
                        (change getConfig to getControllerConfig)

                        1 Reply Last reply
                        1
                        • R Offline
                          R Offline
                          Rene046
                          wrote on last edited by
                          #17

                          thanks it works... i love you ..lol

                          why do they change basic commands.... this make it hard to use.......

                          Like this command and why make from mysensor.h mysensors.h.

                          i also looked inside domoticz and i got data

                          thank you very very much

                          mfalkviddM 1 Reply Last reply
                          0
                          • R Rene046

                            thanks it works... i love you ..lol

                            why do they change basic commands.... this make it hard to use.......

                            Like this command and why make from mysensor.h mysensors.h.

                            i also looked inside domoticz and i got data

                            thank you very very much

                            mfalkviddM Offline
                            mfalkviddM Offline
                            mfalkvidd
                            Mod
                            wrote on last edited by
                            #18

                            @Rene046 the change from MySensor to MySensors is because the Arduino IDE requires the .h file to have exactly the same name as the library. That was not the case when MySensors was created, but happened some time in 2015 I think. So to comply with Arduino IDE rules, it had to be changed.

                            The reason for changing getConfig is logged at https://github.com/mysensors/MySensors/issues/736 but I am not sure why and the fix (https://github.com/mysensors/MySensors/pull/737 ) does not explain why either, but seems to be due to a mistake in https://github.com/mysensors/MySensors/commit/92cbd2ac8f49fe2f8cb25726e08aac9ecd597b84

                            1 Reply Last reply
                            0
                            • R Offline
                              R Offline
                              Rene046
                              wrote on last edited by
                              #19

                              ok,

                              At least i can now experiment with other sensors for my weather station project.
                              i now all electronics are working, i saved this sketch and commented those changes.
                              Again thank you for getting me started.

                              mfalkviddM 1 Reply Last reply
                              1
                              • R Rene046

                                ok,

                                At least i can now experiment with other sensors for my weather station project.
                                i now all electronics are working, i saved this sketch and commented those changes.
                                Again thank you for getting me started.

                                mfalkviddM Offline
                                mfalkviddM Offline
                                mfalkvidd
                                Mod
                                wrote on last edited by
                                #20

                                @Rene046 you're welcome. Great that you got it working.

                                1 Reply Last reply
                                0
                                • R Offline
                                  R Offline
                                  Rene046
                                  wrote on last edited by
                                  #21

                                  can i ask another question....

                                  Im trying to add a battery sense pin to the sketch. they use gw. commands, are those also changed in the new version ?they are not recognized....

                                  They serail monitor shows me the voltage but how do i send it as and child to domoticz.

                                  mfalkviddM 1 Reply Last reply
                                  0
                                  • R Rene046

                                    can i ask another question....

                                    Im trying to add a battery sense pin to the sketch. they use gw. commands, are those also changed in the new version ?they are not recognized....

                                    They serail monitor shows me the voltage but how do i send it as and child to domoticz.

                                    mfalkviddM Offline
                                    mfalkviddM Offline
                                    mfalkvidd
                                    Mod
                                    wrote on last edited by
                                    #22

                                    @Rene046 most commands were simplified in MySensors 2.0. If the example you found uses gw.send(), remove gw. and just use send().

                                    1 Reply Last reply
                                    0
                                    • R Offline
                                      R Offline
                                      Rene046
                                      wrote on last edited by
                                      #23

                                      Thanks Mikael,

                                      could i find those new commands somewhere

                                      mfalkviddM 1 Reply Last reply
                                      0
                                      • R Rene046

                                        Thanks Mikael,

                                        could i find those new commands somewhere

                                        mfalkviddM Offline
                                        mfalkviddM Offline
                                        mfalkvidd
                                        Mod
                                        wrote on last edited by
                                        #24

                                        @Rene046 yes they are all documented in the api. https://www.mysensors.org/download/sensor_api_20

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


                                        7

                                        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