WeMos/Lolin D1 + BME280 - Environmental Data Fetcher - Python-Script for RaspberryPi/Linux - HTML-Graph

WeMos/Lolin D1 + BME280 - Environmental Data Fetcher - Python-Script for RaspberryPi/Linux - HTML-Graph

thingiverse

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 able to do this more elegant please feel free to remix and share it with us. Update 2018-11-21 Edited and tested the script for use with python 3

Download Model from thingiverse

With this file you will be able to print WeMos/Lolin D1 + BME280 - Environmental Data Fetcher - Python-Script for RaspberryPi/Linux - HTML-Graph with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on WeMos/Lolin D1 + BME280 - Environmental Data Fetcher - Python-Script for RaspberryPi/Linux - HTML-Graph.