GithubHelp home page GithubHelp logo

Comments (3)

nmakel avatar nmakel commented on June 12, 2024

What is the best practice for fetching the data? Leave the connection open between pollings or close it each time?

Unless there are other devices or applications that need to poll the inverter you should be keeping the connection open. Running example.py in a loop, or via cron, probably isn't what you want to do.

And how often can we pool the data? Today I do it every 20 seconds... I don't know if I'm abusing or if it's slow!

I'm unsure of the refresh rate of the data, which would be the lower limit of how often it is useful to poll the data. You're unlikely to break things, though. Polling these registers causes no measurable CPU load.

from solaredge_modbus.

jburdy avatar jburdy commented on June 12, 2024

Yes today I have a variant of your example running in a systemd timer. I'm thinking of putting it into service. So I'm going to try to leave the connection open, but I'm not a fan of thinking that it's blocking access to other connection. I hope it doesn't block anything on the SolarEdge side either. Although my access should be exclusive (after I relay to MQTT for all my other consumers. I took the liberty of making a push request, it might be interesting for others).

from solaredge_modbus.

Jusufs avatar Jusufs commented on June 12, 2024

Hi, Thanks for the job, it's been running in my house for a few months now and it's allowed me to automate my W consumers very well! Mainly from Home-Assistant.

What is the best practice for fetching the data? Leave the connection open between pollings or close it each time?

And how often can we pool the data? Today I do it every 20 seconds... I don't know if I'm abusing or if it's slow!

Thanks for your advice,

I can poll via python script each 5 seconds. My python poll part sends data to Raspi Openhab2, Influx, Grafana.

from solaredge_modbus.

Related Issues (20)

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.