Commit Graph
3 Commits
Author SHA1 Message Date
windkh 60645f04f1 Added weather station sensor example which is a merge between the two examples
http://www.mysensors.org/build/humidity and http://www.mysensors.org/build/pressure
In addition to that the current weather situation is transmitted.
Right now the temperature values of both sensors are transmitted to the gateway. This is a bit redundant, but maybe useful when
mounting one the sensor (e.g. BMP) inside the building and the other one (DHT) outside of the building.
2015-11-22 14:08:42 +01:00
windkh d72e20047b Bugfix: new reference value is the average after 120min instead of average after 150min.
Reduced footprint.

I agree to the CLA.

Signed-off-by: windkh <karl-heinz.wind@web.de>
2015-07-16 21:48:08 +02:00
windkh 5d7fe779e0 Refactored forecast algorithm
- reduced footprint by storing only the last few samples instead of all 180
- fixed wrong calculation: 65/1023 factor replaced with a conversion factor hPa to kPa
- fixed error when 180 minutes were reached: sketch started at 5 min instead of 6 triggering a wrong average calculation

Cleaned up code
- removed unused variable
- fixed unit Pa to hPa in serial print
- introduced constants and enum for better readability

Signed-off-by: windkh <karl-heinz.wind@web.de>

I agree to the CLA!
2015-07-08 22:37:38 +02:00