mstenta / atmospi

Atmospheric monitoring app for logging and graphing temperatures and humidities over time using a Raspberry Pi and DS18B20, DHT11, DHT22, and AM2302 sensor(s).
31 stars 9 forks source link

Variable precision #17

Closed mstenta closed 9 years ago

mstenta commented 9 years ago

Add a setting for the precision to use when recording sensor readings. Currently, the readings are a lot more precise than they need to be, and that essentially just means unnecessary storage space in the database.

Perhaps we can default the precision to 2, but allow it to be changed in settings.py.

ultima-originem commented 9 years ago

I'm not sure what a precision of 2 is but one decimal after the period would seem like a useful default.

mstenta commented 9 years ago

By "2" I mean 2 decimal points... so 50.15 degrees, for example. One is probably sufficient for most uses, so I figured I'd just take it one step further. :-)

mstenta commented 9 years ago

This is done!

Release notes: https://github.com/mstenta/atmospi/releases/tag/v0.2.2