Commit Graph

38 Commits

Author SHA1 Message Date
Andreas Zweili
57d835a2e8 add plotly as a depency 2019-10-20 21:20:49 +02:00
Andreas Zweili
f8e53d217e set the settings environment and export coverage to html 2019-10-20 21:20:20 +02:00
Andreas Zweili
0f009fe1c7 extend the run command to include migrations 2019-10-20 21:19:59 +02:00
Andreas Zweili
8e4ac03e14 include the system site packages in the virtualenv
This is especially necessary for the development environment because there are
certain dependencies which one can't get from pypi.
2019-10-20 13:41:21 +02:00
Andreas Zweili
96f2876975 add the sense emulator library to the development environment 2019-10-20 13:38:04 +02:00
Andreas Zweili
5fe755152c remove unused imports 2019-10-20 13:37:57 +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
34aa2f4ba6 sense_hat needs to be a depency 2019-10-16 21:40:26 +02:00
Andreas Zweili
85fd057e62 add a first version of the collector module 2019-10-15 17:25:23 +01:00
Andreas Zweili
b1a0b05b5f activate the virtualenv before running the test 2019-10-14 21:00:53 +01:00
Andreas Zweili
01f02ca4d3 fix the db test 2019-10-14 21:55:00 +02:00
Andreas Zweili
6e6e846686 fix a typo 2019-10-14 21:53:42 +02:00
Andreas Zweili
61ec522fd4 remove the admin module from the collector app 2019-10-14 21:53:28 +02:00
Andreas Zweili
f0d3491511 don't use migrations to run tests 2019-10-14 21:53:19 +02:00
Andreas Zweili
c48f43af32 add the mixer package for development 2019-10-14 21:38:26 +02:00
Andreas Zweili
22a3d53135 readd the admin and auth app
a lot of things are breaking when they are not included.
2019-10-14 21:36:04 +02:00
Andreas Zweili
b328ac4727 restructure tests 2019-10-14 21:35:54 +02:00
Andreas Zweili
a12ca638f1 ignore migration files 2019-10-14 21:35:38 +02:00
Andreas Zweili
ffb088e084 add a pytest.ini file 2019-10-14 17:41:22 +01:00
Andreas Zweili
a9bced323b adapt a lot of things for django 2019-10-14 17:41:07 +01:00
Andreas Zweili
58e4818b1a extend coveragerc for django 2019-10-14 17:39:55 +01:00
Andreas Zweili
a743155b38 remove the admin and auth application
The application should simply record the sensor values and display them in a
pretty graph. There's nothing that would require administration or a login.
2019-10-13 19:37:20 +01:00
Andreas Zweili
1db53e1a42 move to django
I thought it might be a good idea to use Flask and Peewee for this little
project. However the overhead to learn this frameworks is bigger than I
thought. I therefore switch to django which is a framework I already know.
2019-10-13 19:35:48 +01:00
Andreas Zweili
ce3116bfbf improve Makefile 2019-10-13 10:06:46 +01:00
Andreas Zweili
e040437ab2 ommit various files from coverage report 2019-10-13 10:01:36 +01:00
Andreas Zweili
226f8f5545 fix the Makefile 2019-10-13 09:44:52 +01:00
Andreas Zweili
96f47b2baf update the Makefile 2019-10-13 09:40:30 +01:00
Andreas Zweili
bfe6d7e304 move the main script into a module 2019-10-13 09:36:26 +01:00
Andreas Zweili
6b538a6e00 add a setup file 2019-10-13 09:35:34 +01:00
Andreas Zweili
aefcbdfcae add the main script 2019-10-12 19:35:14 +01:00
Andreas Zweili
6eca6c31d6 add a coverage config 2019-10-12 19:35:02 +01:00
Andreas Zweili
04dbaa8e97 add requirement files 2019-10-12 19:34:48 +01:00
Andreas Zweili
f136ee0880 add a Makefile 2019-10-12 19:34:39 +01:00
Andreas Zweili
e5efad4d67 wrap the lines at 80 characters 2019-10-12 19:14:31 +01:00
Andreas Zweili
482a9e26d0 Initial commit 2019-10-12 19:44:45 +02:00