Could use a bid help to get started
-
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 compilingMaybe 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/5but he also seems to use old version, i see again mysensor.h instead of mysensors.h
hope for an answer....
-
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 compilingMaybe 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/5but he also seems to use old version, i see again mysensor.h instead of mysensors.h
hope for an answer....
@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
-
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 ?
-
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 -
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 -
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 -
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 -
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
@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
-
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. -
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.
-
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.