read_data.py
is a simple python script that reads weather data from a json file (see weather_data.json as an example) and plots the average temperature over days for a given city.
Since read_data.py
runs in a isolated docker container you need to install Docker in your system.
Please follow the instructions from the Install Docker Engine official documentation.
git clone [email protected]:p3dr0migue1/cfweather.git
cd cfweather
sudo docker build -t cfweather .
- in the same directory as
read_data.py
create a directory named 'output' andcd
into it sudo docker run --rm -v $PWD:/cfcore/output -u bob cfweather python /cfcore/read_data.py
You should now have all the graphs and html template generated by read_data.py
in the directory output
.