Code Monkey home page Code Monkey logo

tauron_statistics's Introduction

Tauron statistics review

This repository contains a python scripts that can check your energy usage statistics (based on unofficial API from eLicznik service) and show them in a form of a simple ASCII table.

Disclaimer: Use at Your Own Risk. ⚠️

Features

  • Gathering and aggregating data from eLicznik
  • Calculating balance, "positive-days" and estimated cost
  • Maintaining a cache file (cache.csv) to avoid unnecessary API calls (data from this file can be easily loaded to a spreadsheet)
  • Generating an ASCII table with monthly data
  • Calculating a simple estimation for the current month
  • Exporting data to csv or json format

How to use?

Requirements

  • python 3.11+
  • packages from requirements.txt

Installation

Clone repository:

git clone https://github.com/Bozydarek/tauron_statistics.git
cd tauron_statistics
python3 -m pip -r requirements.txt

Create configuration file:

cp config.example.yml config.yml

... and edit with your favorite editor 😉

Configuration file

To use this script you need to create a configuration (config.yml) based on the example (config.example.yml).

Required values:

  • meter_id
  • username
  • password
  • installation_date ("YYYY-MM-DD" format)

Optional values:

  • price
  • fixed_cost
  • extra_headers

Usage examples

python3 tauron_statistics.py --help
python3 tauron_statistics.py
python3 tauron_statistics.py -y
python3 tauron_statistics.py -y 2022 --off
python3 tauron_statistics.py -y --no-cache
python3 tauron_statistics.py --offline --format csv

tauron_statistics's People

Contributors

bozydarek avatar

Watchers

 avatar

tauron_statistics's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.