Fetch Linky data from myelectricaldata.fr
Project description
myelectricaldatapy
Fetch date Enedis Linky from myelectricaldata.fr (enedisgateway.tech)
Check your config, enable or disable heater, change preset mode.
Install
Use the PIP package manager
$ pip install myelectricaldatapy
Or manually download and install the last version from github
$ git clone https://github.com/cyr-ius/myelectricaldatapy.git
$ python setup.py install
Get started
# Import the myelectricaldatapy package.
from myelectricaldatapy import EnedisGatewayClient
async def main():
api = EnedisGatewayClient("pdl", "token")
devices = await api.async_get_devices()
for device in devices:
name = device.get("dev_alias")
data = await api.async_get_device(device["did"])
mode = data.get("attr").get("mode")
logger.info("Heater : {} , mode : {}".format(name, mode))
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Have a look at the example.py for a more complete overview.
Notes on HTTPS
Not implemented
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
myelectricaldatapy-1.1.tar.gz
(16.6 kB
view details)
Built Distribution
File details
Details for the file myelectricaldatapy-1.1.tar.gz
.
File metadata
- Download URL: myelectricaldatapy-1.1.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8321f549a7c4a754804b19c66f817d6f6398f3a3739d73556f9769934ee1c04 |
|
MD5 | 0d933fb7f6bd60c6a504186a538de17d |
|
BLAKE2b-256 | 37afc65b03b3b7c4787bb41bb1b915621f88fe24bc1a4fd4e512b4731be205c4 |
File details
Details for the file myelectricaldatapy-1.1-py3-none-any.whl
.
File metadata
- Download URL: myelectricaldatapy-1.1-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9533d9ab0e6c6bd05f787dd98e68639d5432868ead567fe2222e9e8cbb0ac4 |
|
MD5 | e6f2709bf8725a4431a47838974dfbf8 |
|
BLAKE2b-256 | 223f31bbd76a919784668e6e117733b54598843faee73bb46b14281705fd3f73 |