Thingiverse
WeMos/Lolin D1 + BME280 - Environmental Data Fetcher - Python-Script for RaspberryPi/Linux - HTML-Graph
by Balmung83
3
Downloads
1
Likes
0
Makes
A simple script for collecting and storing the data from one or more environmental sensors (WeMos/Lolin D1 Mini with BME280 running my code https://www.thingiverse.com/thing:3152008 ) in csv-files.
Make a cron-job to run this script regularly.
Prerequisites:
- pip install requests
- One or more - depending on how many sensors you're running - csv-files.
- Running the python-script for the first time will create the files on its own
- The first line should be edited to look like this: Time(UTC),Temperature(°C),Humidity(%),Pressure(hPa)
- Put a symbolic link of the CSV-files into the HTML-folder (usually under /var/www/ )
Update 2018-10-22
I've added a HTML-file which shows the collected data in a graph using Dygraph.
Initially i wanted to make a single HTML-file which then would show all graphs on a single page, but i wasn't able to make this work. For now you have to copy and edit the file which then shows a single graph for each CSV-file you want.
If anyone is ab
Make a cron-job to run this script regularly.
Prerequisites:
- pip install requests
- One or more - depending on how many sensors you're running - csv-files.
- Running the python-script for the first time will create the files on its own
- The first line should be edited to look like this: Time(UTC),Temperature(°C),Humidity(%),Pressure(hPa)
- Put a symbolic link of the CSV-files into the HTML-folder (usually under /var/www/ )
Update 2018-10-22
I've added a HTML-file which shows the collected data in a graph using Dygraph.
Initially i wanted to make a single HTML-file which then would show all graphs on a single page, but i wasn't able to make this work. For now you have to copy and edit the file which then shows a single graph for each CSV-file you want.
If anyone is ab
Did you print this model? Sign in and share your make!
Sign in to leave a comment
Sign inNo comments yet – be the first!