Get Enedis smart meter (linky) data from Enedis webserver
Project description
linkymeter module
linkymeter is a pure python module which can collect power consumption data generated by Enedis smart meter 'linky'.
Pre-requisite: activate load curve recording on Enedis website
Module collects data from Enedis website. You must first enable your enedis account (https://espace-client-particuliers.enedis.fr/group/espace-particuliers/) and the data collection ("Consommation" > "Gérer ma courbe de charge" > "Activer ma courbe de charge")
How to install
Debian packages to install
If you intend to use this module on a debian based linux distribution, and want to use python3 default installation, you need to install following packages.
sudo apt-get install python3 python3-dateutil python3-requests
Then type
python3 setup.py install
Installation in a virtual environment
You can also install it in a dedicated virtual environment.
python3 -m venv
source venv/bin/activate
pip install .
Usage
import linkymeter
import datetime
from dateutil.relativedelta import relativedelta
session = linkymeter.web.session.login(username,password)
today = datetime.date.today()
res_hour = session.get_hourly_consumption((today - relativedelta(days=7)), today)
PS
If this project help you reduce time to develop, you can give me a cup of coffee :)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linkymeter-1.0.0.tar.gz.
File metadata
- Download URL: linkymeter-1.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
212df6f094558ea3bed87090845cd17d64974e8ba09fe78bab303aa00784b775
|
|
| MD5 |
1e81ab4e05c6a28c6f728243b376e249
|
|
| BLAKE2b-256 |
e2522fc249b5bedc2ca0c20be46c24839d42f3a7136bd0239be5521e60972b07
|
File details
Details for the file linkymeter-1.0.0-py3-none-any.whl.
File metadata
- Download URL: linkymeter-1.0.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77bb02359f6e7e7c0f967ad6062d7fcb21f6df97bc8b5543abb193e40a7754b1
|
|
| MD5 |
bac420501a377b5086c4abd2ff5168c8
|
|
| BLAKE2b-256 |
be876e3af5fa1150bb8e9524eadbed008427c15cc79de21ebd2d7d2510abcd59
|