i3detroit / custom-mqtt-programs

Replaced by esphome | A bunch of custom esp8266-based home/hackerspace-automation devices
https://www.i3detroit.org/wiki/Category:IoT
3 stars 2 forks source link

Thermostat only reports rounded temperature #28

Closed mkfink closed 6 years ago

mkfink commented 6 years ago

When reporting the temperature measured by the bmp280 over mqtt, the value is almost always rounded to the nearest whole number but then with two decimals of precision. For example, it only reports 25.00, 25.00, ..., 26.00, ... etc.

image

mtfurlan commented 6 years ago

Oh yeah cause evan only wanted to display whole numbers on the display and then I used that for the reporting.

On 24 January 2018 at 10:27, mkfink notifications@github.com wrote:

When reporting the temperature measured by the bmp280 over mqtt, the value is almost always rounded to the nearest whole number but then with two decimals of precision. For example, it only reports 25.00, 25.00, ..., 26.00, ... etc.

[image: image] https://user-images.githubusercontent.com/11447986/35340307-bf7b3302-00f0-11e8-8c40-e91644c69dbf.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/i3detroit/custom-mqtt-programs/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJyGq0i-zMtB2UogkOhp_IJf873OFtTks5tN0vlgaJpZM4Rrbra .

mkfink commented 6 years ago

It sometimes still reports out decimal fractions from halves to fifths, i.e 25.33, 24.80, etc. That suggests there might be something amiss. Will that cause any overflows?

mtfurlan commented 6 years ago

I'm seeing stuff like .4 and .62. I'm not worrying.