enedisgatewaypy-1.3
توضیحات
Fetch Linky data from enedisgateway.tech
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | enedisgatewaypy-1.3 |
| نام | enedisgatewaypy |
| نسخه کتابخانه | 1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | cyr-ius |
| ایمیل نویسنده | cyr-ius@ipocus.net |
| آدرس صفحه اصلی | https://github.com/cyr-ius/enedisgatewaypy/tree/master/enedisgatewaypy |
| آدرس اینترنتی | https://pypi.org/project/enedisgatewaypy/ |
| مجوز | GPL-3 |
# enedisgatewaypy
FEtch date Enedis Linky from enedisgateway.tch
Check your config, enable or disable heater, change preset mode.
Install
-------
Use the PIP package manager
```bash
$ pip install enedisgatewaypy
```
Or manually download and install the last version from github
```bash
$ git clone https://github.com/cyr-ius/enedisgatewaypy.git
$ python setup.py install
```
Get started
-----------
```python
# Import the enedisgatewaypy package.
from enedisgatewaypy 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](https://github.com/cyr-ius/heatzypy/blob/master/example.py) for a more complete overview.
Notes on HTTPS
--------------
Not implemented
نحوه نصب
نصب پکیج whl enedisgatewaypy-1.3:
pip install enedisgatewaypy-1.3.whl
نصب پکیج tar.gz enedisgatewaypy-1.3:
pip install enedisgatewaypy-1.3.tar.gz