Skip to main content

A simple API for key atome electricity consumption

Project description

KeyAtome PyPi

GitHub release

Get your energy consumption data from Atome, a Linky-compatible device made by Total/Direct-Energie. A account can have several linky. With this library, you can address them one by one

Installing

pip install pykeyatome

Use

The __main__.py is provided to show an example of use.

4 types of function provided by client.py in AtomeClient class:

  • login : to be logged to the server
  • get_user_reference : to know which linky you have addressed
  • get_live : to retrieve live statistics (instant power)
  • get_consumption : to retrieve the consumption (by day over 3 months)

Acknowledgments

Breaking change

V1.2.0 Since this version PyAtomeError exception is no more used. Instead login return False if error , and live/consumption return None

V1.3.0 Login return None if error

V2.0.0 1rst implementation of TotalEnergy V2 protocol : Login, Live, Day are available.

V2.1.0 Clean APIv1 i.e. no more period (day, week, month, year)

V3.0.0 1rst implementation of TotalEnergy V3 protocol (login) REFERENCE_ID is the ID in your TotalEnergy Profile USER_ID is something to retrieve via a dedicated script find_user_id.bash (https://github.com/jugla/pyKeyAtome/tree/master/find_user_id) You have to edit it to set your password.

V3.0.1 add return in case of success in login V3.0.2 check cookie during login

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykeyatome-3.0.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykeyatome-3.0.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pykeyatome-3.0.2.tar.gz.

File metadata

  • Download URL: pykeyatome-3.0.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pykeyatome-3.0.2.tar.gz
Algorithm Hash digest
SHA256 b84539aab7c750fda79d37ec3ad644ba1cd7939b4dfe7dc957485315cd16b73a
MD5 48b612c2572404368cbe9fcea0043f65
BLAKE2b-256 b4defafee2a4d0ef4e8dc999bccbe58da064e2107586fdfbd0289eb4e2e4c962

See more details on using hashes here.

File details

Details for the file pykeyatome-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: pykeyatome-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pykeyatome-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0511982574eb1790cb79e20e2e49c5ab7954cc8ed32614ff1c2345e3e0db5298
MD5 c27d77ffb8cc9c894b8adce23b10a1f1
BLAKE2b-256 2888e40105fdfd27d0188411ac61364366227eaaad4b1ee3f45d44ca9438b27f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page