Comments (3)
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.
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.
Danke, Georg für die schnellen Vorschläge
,,, aber das traue ich mir dann doch nicht zu.
from solectrus.
Related Issues (20)
- Monats/Quartalsvergleich der einzelnen Jahre
- Wetterlage darstellen HOT 7
- Kosten / Einsparung - schwäbische Anzeige HOT 3
- Support für Dynamische Tarife HOT 1
- Zeitanzeige im 'Jetzt' schiebbar HOT 2
- "Einspeisung" ohne Quelle HOT 4
- wrong values in battery load diagram HOT 2
- Balkendiagramme mit abgerundeten Ecken HOT 2
- Strich statt Zeiger in Diagrammen HOT 3
- Minor Nitpick: Zahlenformatierung im Chart-Mouseover HOT 4
- Beim Wechsel der Charts wird mit den Daten der vorherigen Quelle weitergezeichnet HOT 2
- When using MQTT, the battery is sometimes 0% HOT 3
- Darstellung separater Verbraucher HOT 7
- Darstellung mehrerer Wallboxen HOT 3
- Zoom Funktion in Diagrammen HOT 1
- Top10 Anzeige niedrigster Tageswert HOT 2
- Registrierung HOT 1
- iOS: Kleiner Darstellungsfehler nach Registrierung HOT 1
- Wochendaten für die angefangene Woche passen nicht zu den Tagesdaten HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solectrus.