Giter VIP home page Giter VIP logo

domoticz_linky's Introduction

domoticz_linky

Get Linky smart meter data and push it to domoticz

If you appreciate this software, please show it off ! PayPal donate button

pre-requisite: activate load curve recording on Enedis website

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")

create a device in Domoticz

  • In Domoticz, go to hardware, create a virtual "rfx meter counter" or "Dummy".
  • Then in Devices, add it to the devices. (mark down the Idx for later, not the ID).
  • When in Utility, edit the device and change it to Electric (instant+counter) type .

modules to install

sudo apt-get install sqlite3 node npm
sudo apt-get install python3 python3-numpy python3-dateutil python3-requests

deploy

cd <whereyouwant> ie. /home/pi/domoticz/plugins/
git clone https://github.com/empierre/domoticz_linky.git
cd domoticz_linky
npm install [email protected]

rename configuration file, change login/pass/id

cp _domoticz_linky.cfg domoticz_linky.cfg
nano domoticz_linky.cfg

and change:

LINKY_USERNAME="[email protected]"
LINKY_PASSWORD="password"
DOMOTICZ_ID=547

Where DOMOTICZ_ID is Idx device on domoticz.

Configuration file will not be deleted in future updates

testing before launch

Manually launch

./domoticz_linky.sh

N.B. If login is not ok, you'll get a nodejs error on console for data will be missing (will be changed).

Then check the login credential if they are ok:

domoticz_linky.log

If this is good, you'll get several json files in the directory

Add to your cron tab (with crontab -e):

30 7,17 * * * /home/pi/domoticz_linky/domoticz_linky.sh

Getting back history

It is possible to get back history months giving the relative month to get. Parameter is how many month back from today. Limitation: works only on same year at this time.

./domoticz_linky.sh 3

On example, 3 months before.

domoticz_linky's People

Contributors

empierre avatar arigaud avatar ludovicrousseau avatar guillaumezin avatar fredvi avatar jibaku avatar wolfblader avatar singinglarvae avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.