Git Product home page Git Product logo

Comments (2)

nmakel avatar nmakel commented on September 28, 2024

Some of the values you want can be found in the data (use --json when running example.py). For example, produced power by PV is energy_total in Wh. The battery also reports total energy consumed (by charging) and delivered (by discharging) as lifetime_export_energy_counter and lifetime_import_energy_counter.

The other values need to be computed by yourself, as you'll need a kWh meter at the grid connection point.

from solaredge_modbus.

WoslSE avatar WoslSE commented on September 28, 2024

Thank you for your response.

I tested the JSON output format and filtered out fields from Modbus request. With the fetched fields you can calculate the other values later.

I hope I'm doing it in a correct way and other readers can learn from it. In case I'm wrong please let me know.

Regards

    c_time = json_body[0]['time']
    c_inverter_power_ac = json_body[0]['fields']['power_ac']
    c_meter_power = json_body[1]['fields']['power']
    if lBattery == True:
        b_available_energy = json_body[2]['fields']['available_energy']
        b_instantaneous_power = json_body[2]['fields']['instantaneous_power']
        Battery_Power_W = float(b_instantaneous_power)
        Work_Storage_kWh = float(b_available_energy)

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.