Andreas Zweili
8ded8def06
implement command to clean old values from the database
2019-10-24 21:45:48 +02:00
Andreas Zweili
2c5bac292a
replace timezone with datetime
...
Since the plots are not really part of django they aren't returning timezone
objects which django can convert to the correct timezone. Therefore they are
always UTC. However we can disable the timezone support in django. The're might
be a more elegant solution to this but since this is just a small project I'll
leave it at that.
2019-10-21 19:42:03 +02:00
Andreas Zweili
8756f1819e
Merge branch 'master' of git.2li.ch:Nebucatnetzer/environment_sensors
2019-10-21 17:29:15 +02:00
Andreas Zweili
57c9adfa4d
round all the collected results
...
The messurements are way to noisy when they are not rounded
2019-10-21 17:26:34 +02:00
Andreas Zweili
f541511fbe
remove the Time model
2019-10-21 06:57:44 +02:00
Andreas Zweili
52103ad3b7
the time should be time zone aware
2019-10-20 23:09:45 +02:00
Andreas Zweili
30a9c3a77d
add a function to collect and write all values to the DB
2019-10-20 21:23:05 +02:00
Andreas Zweili
bdbe2bd5aa
add a function to collect humidity
2019-10-20 13:37:39 +02:00
Andreas Zweili
ae2b7c1624
add a function to collect the pressure
2019-10-20 13:37:31 +02:00
Andreas Zweili
16050cc176
rewrite the temperature collector
...
after a quick test I don't think I need the complicated way to calculate the
temperature
2019-10-20 13:36:32 +02:00
Andreas Zweili
7411bdd70e
make sure that the imports are correct depending on the system
2019-10-20 13:34:55 +02:00
Andreas Zweili
85fd057e62
add a first version of the collector module
2019-10-15 17:25:23 +01:00