Skip to content

Asdepique777/jeedom_linky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script to export Linky consumption in JSON format !

What is this?

This is a script based on Linkindle, created by Outadoc (https://github.com/outadoc/linkindle), allowing to get consumption from Enedis' website (https://espace-client-connexion.erdf.fr/auth/UI/Login?realm=particuliers), through API. This generates JSON files ready to be plotted with Highcharts for example.

Output

The script will generate 4 JSON files for :

  • Half-hour power (kW)
  • Daily consumption (kWh)
  • Monthly consumption (kWh)
  • Yearly consumption (kWh)

Requirements

This script requires the use of Python 3 with the following dependencies:

  • dateutil
  • requests
  • json

Usage

In "gen_json.sh" script, set up environment variables containing your Enedis email and password. Don't forget to uncomment the following lines:

export LINKY_USERNAME="[email protected]"
export LINKY_PASSWORD="password"

Then, just run "gen_json.sh" script to generate the JSON files. Fell free to add a cron to get ENEDIS data periodically.

About

Script to export Linky consumption in JSON format !

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published