Git Product home page Git Product logo

domoticzgazpar's Introduction

DomoticzGazpar

Import data from GDRF to Domoticz

create a device in Domoticz

  • In Domoticz, go to hardware, create a virtual "Managed counter". You may as well create a virtual 'Managed counter, Gas' device in m3 (to do so : create first a Managed counter, then modify it in the Utility tab to change Switch type to Gas)
  • Then in Devices, add it to the devices. (mark down the id for later).

modules to install - linux

sudo apt-get install python3 python3-dateutil python3-requests
git clone https://github.com/Scrat95220/DomoticzGazpar.git

rename configuration file, change settings

cp _domoticz_gazpar.cfg domoticz_gazpar.cfg
nano domoticz_gazpar.cfg

and change:

[email protected]
GAZPAR_PASSWORD=password
NB_DAYS_IMPORTED=30
DOMOTICZ_ID=123
DOMOTICZ_ID_M3=456
DB_PATH=/home/pi/domoticz (if needed)
HOSTNAME=https://localhost:8080 
USERNAME = 
PASSWORD = 

Where NB_DAYS_IMPORTED correspond to the number of days to import and DOMOTICZ_ID is id device on domoticz and DOMOTICZ_ID_M3 is the id device of a virtual 'Smart Meter, Gas' device in m3 if exists

Configuration file will not be deleted in future updates.

testing before launch

Manually launch

./gazpar.py

Then check the login credential if they are ok:

domoticz_gazpar.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 * * * python3 /home/pi/domoticz/DomoticzGazpar/gazpar.py

domoticzgazpar's People

Contributors

scrat95220 avatar ld40 avatar biwizit avatar profboc75 avatar onlinux avatar tofbouf 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.