A simple API for key atome electricity consumption
Project description
KeyAtome PyPi
Get your energy consumption data from Atome, a Linky-compatible device made by Total/Direct-Energie.
Installing
pip install pykeyatome
Use
The __main__.py
is provided to show an example of use.
3 types of function provided by client.py in AtomeClient
class:
- login : to be logged to the server
- get_live : to retrieve live statistics (instant power)
- get_consumption(period) : to retrieve the consumption since a period (day/week/month/year)
Acknowledgments
- Thanks to k20human for the original inspiration with https://github.com/k20human/domoticz-atome
- Thanks to reverse engineering of Atome IOS APP performed by BaQs.
- This project is a fork of https://github.com/BaQs/pyAtome (seems to be unmaintained)
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pykeyatome-1.3.0.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file pykeyatome-1.3.0.tar.gz
.
File metadata
- Download URL: pykeyatome-1.3.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0ef6be4087f8dbc8e2dc86774e445fc71f7ff43a0d1e662714ffdfb2998104 |
|
MD5 | a84766b339e11011a3da0c7dd88d8352 |
|
BLAKE2b-256 | 713bf9e81b33d2184fd21cead1e222624847972ec194d1e816ff07c11cd7c480 |
File details
Details for the file pykeyatome-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: pykeyatome-1.3.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ef4c1b1071326ba578fcc05d9f2869427fd7e5a4a49ae3ac4a7f887b8027d0 |
|
MD5 | f85fdf974f629b7448d611b41eb590e2 |
|
BLAKE2b-256 | 7c497a7efc8bc9a85b5259699fd7d920e548bc87bd73be7dce2ab3839c9d0684 |