Simple Jupyter notebook that gets the data from a CSV file, prepared the data approproately and draw the plots.
Lima or Docker
- Rename
config.ini.example
intoconfig.ini
and fill in all the fields there. - run
make build
For that you need to run Jupyter Notebook:
- run
make run
- open in the browser
http://127.0.0.1:8888/notebooks/Consumption.ipynb
Before use the parser from this repo, one must collect the proper data first. This can be done like explained here:
- TBD
In case you want to get the data from Google Spreadsheets, use this guide.
❗️ Before start, make sure you remove the following lines
del df['Дата']
del df['Пометка']
from consumption_parser.py
and Consumption.ipynb
.
There are 2 main files in this repository:
Consumption.ipynb
- gets the data for 3 main type of resources at home (water, gas, electricity) and draws the plots.consumption_parser.py
- notebook with all the graphs and usage examples.
See Consumption.ipynb
. Otherwise:
import consumption_parser
gas = consumption_parser.parseConsumption("Gas")
print(gas)
See LICENSE.