Git Product home page Git Product logo

tauron-elicznik-scraper's Introduction

tauron-elicznik-scraper

Simple python3 script that outputs JSON with energy meter data from Tauron eLicznik service

Important: in 2023 Tauron changed its website and the script is currently not working!

  1. Add login info and energy meter ID into script
  2. Run with python3 elicznik.py
  3. Get JSON output with energy meter data from last day

Energy meter ID can be obtained from https://elicznik.tauron-dystrybucja.pl/ website under "Punkt poboru:" field.

Script is currently tested only with G11 tariff.

Optionally you can save JSON as file - just uncomment 2 last lines.

You can change dane[chartDay] to get data from another day (not only the last one).

If JSON should not contain energy produced from solar panels, please comment the "dane[checkOZE]": "on".

Enjoy :)

Example usage with Grafana

tauron-elicznik-scraper's People

Contributors

michalzaniewicz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tauron-elicznik-scraper's Issues

JSON Data presentation

Hello Michal,

First of all many thanks for the great script that allow us to download these Tauron data. It works pretty well! However I am not very familiar with the possibilities of presenting JSON data. I tried to show these data with Grafana via the Node-RED without spectacular success (only this you can see on the screenshot). Could you please help how can I present such data into graphical format similar you did ?

Thanks!

image

Kilka liczników na jednym koncie

Skrypt poprawnie działa gdy do konta tauronu przypisany jest tylko 1 licznik - domyślnie brany jest pierwszy zarejestrowany. W przypadku posiadania kilku należy po zalogowaniu wysłać request z przypisaniem do sesji identyfikatora licznika który nas interesuje:
self.session.post(
"https://elicznik.tauron-dystrybucja.pl/ustaw_punkt",
data={
"site[client]": "XXXXXXXX_YYYYYYYY_ZZZZZZZ"
},
)

"XXXXXXXX_YYYYYYYY_ZZZZZZZ" - identyfikator licznika

Data from whole month

Hi,

it is possible to receive data from whole month?
I try to get this data, but without success.

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.