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