Giter Site home page Giter Site logo

scriptable.fronius's Introduction

scriptable.Fronius V1.02

seWidget

Fronius-Widget

Widget für den Fronius-Wechselrichter

Download: >>> hier

Kurzbeschreibung

Das Widget für den Fronius-Wechselrichter liest ausgewählte Betriebsdaten über die API-Schnittstelle des Wechselrichters aus und stellt diese in einer Übersicht zur Verfügung. Das Script läuft mit Unterstützung der App Scriptable auf dem iPhone ab iOS14.

  • Aktuell in kW, aktuelle Erzeugung einer PV-Anlage
  • Heute in kWh, Erzeugung der PV-Anlage an diesem Tag (Tagessumme)
  • Jahr in MWh, Erzeugung der PV-Anlage an diesem Jahr (Jahressumme)
  • Total in MWh, Erzeugung der PV-Anlage seit der Inbetriebnahme (Totalsumme, Lebenszeit-Summe)

Zur Beachtung: Die Betriebsdaten des Wechselrichter werden nur angezeigt, wenn sich das iPhone im Empfangsbereich des WLAN befindet.

Settings, Parameter

Im Script (obere Zeile) ist für den Zugriif auf den Fronius-Wechselrichter der folgende Parameter einzugeben:

  • APIurl: - IP-Adresse des Fronius-Wechselrichters in der Form "xxx.xxx.xxx.xx"

API-Schnittstelle, API-Endpoint

APIurl = "http://xxx.xxx.xxx.xx/solar_api/v1/GetPowerFlowRealtimeData.fcgi"

Die ausgelesenen Daten werden zur Anzeige gebracht, eine Speicherung der Daten durch das Widget, bspw. in einer Datenbank für die Visualisierung von Trends, erfolgt nicht.

Die folgenden JSON-Daten der API werden verarbeitet:

JSON
{
"Body" : {
    "Data" :
        "Site" : {
            ...
            "E_Day" : 6406.5001220703125,
            "E_Total" : 7604385.5,
            "E_Year" : 1342638.2000000002, 
            ...
            ... 
            "P_PV" : 941.60000000000002, 
            ...
         },
         ...
        "Head" : {
            ...
            }
            "Timestamp" : "2019-06-12T15:31:07+02:00" }
         }

}

Changelog

2020/11/12: Fronius V1.02 (Widget) init

scriptable.fronius's People

Contributors

thomasb10c avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

andreas-1980

scriptable.fronius's Issues

wrong conversion Wh => MWh

The Fronius converter supplies the Energy values (E_*) in the unit Wh. Converting it to kWh is done by dividing it by 1000 (which is correct in your code). However, to get MWh you would have to divide the result again by 1000, not by 100 (as done in your code).

SOC is not P_Akku

The SOC of a connected battery is supplied in another field, not P_Akku:

{
   "Body" : {
       "Data" : {
           "Inverters" : {
              "1" : {
                 "Battery_Mode" : "normal",
                 "DT" : 1,
                 "E_Day" : null,
                 "E_Total" : 483344.81527777779,
                 "E_Year" : null,
                 "P" : 352.25048828125,
                 "SOC" : 90.900000000000006
              }
           },
           "SecondaryMeters" : {},
           "Site" : {
              // ...
           }
      }
}

Thus, the SOC needs to be queried with data.Body.Data.Inverters[1].SOC (and not data.Body.Data.Site.P_Akku).

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.