Giter Site home page Giter Site logo

domoticz-solaxcloud-script's Introduction

Domoticz-SolaxCloud-Script

SolaxCloud Scraper as a cronjob.

Make virtual sensors and add them to the script

https://i.imgur.com/NhlCXFl.png

===============================================================================

  • Edit solax.py with the credentials for your domoticz installation.
    domoticzip = '' (the ip domoticz is using)
    myusername = '' (the username for the solax coud)
    mypassword = '' (the password for the solax cloud)

  • Create virtual sensors for the data you want to retain. (see solax.py and the screenshot for the idx's)

    Dummies in domoticz shortlist (number = idx in domoticz)
    idxdcwatt = '27' (dummy watt total (group1+group2))
    idxdcwatt1 = '28' (dummy watt group1)
    idxdcwatt2 = '29' (dummy watt group2)
    idxvoltage1 = '25' (dummy voltage group1)
    idxvoltage2 = '26' (dummy voltage group2)
    idxCur1 = '30' (dummy current group1)
    idxCur2 = '31' (dummy current group2)
    idxyieldtoday = '32' (dummy kwh meter total yield (use rfxmeter))
    idxpac1 = '33' (dummy phase1 return watt)
    idxpac2 = '34' (dummy phase2 return watt)
    idxpac3 = '35' (dummy phase3 return watt)
    idxpactot = '36' (dummy all phases watt)
    idxtemp = '37' (dummy inverter temperature)

  • Place script in a directory ie: /opt/solax/

  • Make a cronjob with sudo crontab -e

  • add the following to the crontab: */1 * * * * /usr/bin/python3 /opt/solax/solax.py

Now every minute data wil be drawn from solaxcloud to Domoticz.

domoticz-solaxcloud-script's People

Contributors

acidcool avatar colbrac 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.