/linky2jsonorinfluxdb

Linky data (From Enedis website) to Json and/or InfluxDb

Primary LanguageJavaScript

Linky to Json / InfluxDb

This program is write in Javascript and work with NodeJS

He can get your data from Enedis website for save in files (sqlite) and show in website interface or send Json to another interface (Same Node-red, Domoticz or Jeedom).

He also can record data to InfluxDb database.

This version is compatible of new API of Enedis (deployed from june 2020).

Thanks to Miko53 for his ruby script for know how to connect to Enedis.

Dependencies

  • NodeJS
  • Yarn

Instatallation

  • cd /www
  • git clone https://Benoit485/linky2jsonorinfluxdb.git
  • cd ./linky2jsonorinfluxdb
  • cp ./var/config-sample.json ./var/config.json
  • yarn install

Configuration

Edit config file :

nano /www/linky2jsonorinfluxdb/var/config.json

Put your credentials for Enedis website : username and password.

You need to put Cookie : internalAuthId for work without Captcha (See after how to do).

You can activate and configure InfluxDb.

Cron

You can set cron in config file same unix cron

You can see this website : Crontab.guru, for know how to write cron time line

Cookie : internalAuthId

You need to find this cookie for connection can work.

It's easy with Firefox :

Go to Enedis login webpage (Can go by here directly) and you must do click right and "Inspect" (FR : "Examiner l'élément).

Click on "Storage" ("Stockage" in french) tab and find inside Cookies the value for internalAuthId.

Copy this value to /var/config.json script.

Help / Request

If you need help or you have request, you can open new Issue

Author

  • **Benoit485 (Benoît MERLE) **
  • ** Miko53 (For Enedis scrapper base library) **

**You can give for thanks from Paypal