GithubHelp home page GithubHelp logo

Auswertung nach Status about solectrus HOT 3 OPEN

Zeppelin-PV avatar Zeppelin-PV commented on September 28, 2024
Auswertung nach Status

from solectrus.

Comments (3)

ledermann avatar ledermann commented on September 28, 2024

Grundsätzlich wäre eine Auswertung nach Status denkbar, aber das ist ein sehr großes Thema. Auf die Schnelle hier mal eine Flux-Abfrage, die man direkt im InfluxDB-Frontend (im Data Explorer) ausführen kann und mit der die Statusmeldungen der letzten 12 Monate (gruppiert nach Anzahl) ausgegeben werden:

from(bucket: "SENEC")
  |> range(start: -1y)
  |> filter(fn: (r) => r._measurement == "SENEC" and r._field == "current_state")
  |> duplicate(column: "_value", as: "state")
  |> group(columns: ["state"])
  |> count()
  |> group()
  |> sort(columns: ["_value"], desc: false)

Bei mir ergibt das:

Count State
9 FEHLER LADEGERAET
94 MAN. SICHERHEITSLADUNG
119 NEUSTART
122 PASSIV
123 ISOLATIONSTEST
292 SOFTWAREAKTUALISIERUNG
386 SELBSTTEST
1547 BATTERIEDIAGNOSE
7422 EIGENVERBRAUCH
75362 AKKU LEER
174078 LADESCHLUSSPHASE
209913 NETZ + ENTLADEN
249989 PV + ENTLADEN
334871 AKKU VOLL
371507 LADEN

Ich fürchte, dies wird nun Begehrlichkeiten wecken :-)

Solche Abfragen lassen sich mit Flux selber erstellen, wobei das aber nicht trivial ist. Ich selbst habe es bislang nicht geschafft, statt der Anzahl die Dauer des jeweiligen Zustands auszugeben.
Bitte möglichst selber damit experimentieren.

from solectrus.

ledermann avatar ledermann commented on September 28, 2024

Endlose Möglichkeiten - hier noch eine Abfrage, um eine vollständige Liste zu erhalten, an welchen Tagen ein bestimmter Status aufgetreten ist und wie oft, hier am Beispiel "BATTERIEDIAGNOSE":

from(bucket: "SENEC")
  |> range(start: -1y)
  |> filter(fn: (r) => r._measurement == "SENEC" 
                   and r._field == "current_state" 
                   and r._value == "BATTERIEDIAGNOSE")
  |> aggregateWindow(every: 1d, fn: count)
  |> filter(fn: (r) => r._value > 0)
  |> keep(columns: ["_value", "_time"])
  |> sort(columns: ["_time"], desc: true)

from solectrus.

Zeppelin-PV avatar Zeppelin-PV commented on September 28, 2024

Danke, Georg für die schnellen Vorschläge
,,, aber das traue ich mir dann doch nicht zu.

from solectrus.

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.