mlesniew / elicznik Goto Github PK
View Code? Open in Web Editor NEWTauron eLicznik Python module
License: MIT License
Tauron eLicznik Python module
License: MIT License
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 przypisujący do sesji identyfikator 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
Cześć, dzięki za skrypt ale proszę o pomoc - coś nie mogę go uruchomić.
Czy on jest kompatybilny z nową wersją strony Taurona?
Niestety Tauron zmienił API i program przestał działać. Z tego, co widzę, zlikwidowali end-point /index/.
Strona odwołuje się do csv inaczej (inne argumenty w formularzu i chyba inny URL).
Czy pierwotna wersja korzystała z linku do danych csv na stronie?
Nie działa mi składnia:
elicznik --format=csv [email protected] secretpassword 2024-03-27 > Wynik4.txt
Traceback (most recent call last):
File "/usr/local/bin/elicznik", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/elicznik/main.py", line 68, in main
for timestamp, consumed, produced in result:
ValueError: too many values to unpack (expected 3)
Co robię źle ?
Cześć,
da się pobać dane sumaryczne dla konkretnego dnia? Tzn. bez rozbicia na poszczególne godziny? Wiadomo, że mogę sobie posumować zawartość kolumny, ale po co skoro można to zaciągnąć zsumowane z Tauronu.
Jurek
Chyba Tauron coś znowu pozmieniał, bo u mnie przestało działać (30/07 ostatni odczyt) a dane na portalu są. Niestety nie mam czasu przez kilka dni się tym zająć. Może ktoś (@mlesniew ?) zdoła na to spojrzeć/zweryfikować czy mam rację/naprawić.
Witam,
Czy jest opcja "wyplucia" wyniku do pliku ?
Pozdrawiam
Hello,
I installed the elicznik and getting an error after launching the command below:
elicznik [email protected] mypasssword 2022-04-23
[1] 21298
-bash: 2022-04-23: command not found
but when launch the command "elicznik -h " it works fine, also api works fine. I am using special characters in password like: . ? &
bash: elicznik -h
usage: elicznik [-h] [--format {raw,table,csv}]
username password [start date] [end date]
positional arguments:
username tauron-dystrybucja.pl user name
password tauron-dystrybucja.pl password
start date Start date of date range to be retrieved, in ISO8601
format. If the end date is omitted, it's the only date
for which measurements are retrieved.
end date End date of date range to be retrieved, inclusive, in
ISO8601 format. Can be omitted to only retrieve a
single day's measurements.
optional arguments:
-h, --help show this help message and exit
--format {raw,table,csv}
Specify the output format
Cześć,
Przy próbie zapisania pliku jako csv (opcja format=csv) skrypt wyrzuca błąd:
Traceback (most recent call last):
File "/usr/local/bin/elicznik", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/dist-packages/elicznik/main.py", line 68, in main
for timestamp, consumed, produced in result:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 3)
Korzystam z python 3.11.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.