Wenn du schon eine Weile mit Node-Red gearbeitet hast, wist du festgestellt haben, dass Node-Red schlagartig alle bisher aufgelaufenen Diagrammwerte vergisst, wenn Node-Red oder der Server neu gestartet werden. Das ist unschön. Auch Werte, die vor einiger Zeit angefallen sind (z.B. Verbrauchsdaten) werden von Node-Red nicht so einfach für weitere Analysen vorgehalten. Dasselbe mit allen Werten, die links aus einem Node-Red Diagramm rausgelaufen sind.
Hier brauchen wir eine Datenbank! Aber welche? Man könnte sich jetzt ein System aus MySQL basteln oder textbasierten Dateien. Da wir es bei unseren Anwendungsfällen meist um Zeitreihen handelt, ist Influx die erste Wahl, da diese Datenbank speziell für diesen Zweck entwickelt wurde.
Um es vorweg zu sagen, ich beschäftige mich in diesem Artikel mit Influx zur Erzeugung von Diagrammen ausschließlich in Node-Red. Es gibt auch andere, leistungsfähigere Diagrammlösungen wie Grafana. Die dabei zu durchlaufende Lernkurve ist allerdings sehr steil und außerdem haben wir anschließend ein weiteres System an der Hand, so dass wir zwischen Diagrammen und Einstellungen immer hin- und herspringen müssen. Ich finde, Analysen und Befehle auf einer einzigen User-Interfaceschicht besser. Auch wenn Node-Red, was Diagramme angeht, nicht so viel kann, für den Hausgebrauch reicht es. Ein weiterer Vorteil von Node-Red ist, dass die Darstellung auf mobilen Endgeräten besser ist.
Kaum sind ein paar Jahre vergangen, machen die Influx People wieder ein Update. Diesmal wegen regulärem Auslaufen des öffentlichen Paketschlüssels.
Bei
sudo apt update kommt es zu der Fehlermeldung
Die folgenden Signaturen konnten nichtüberprüft werden,weil ihröffentlicher Schlüssel nicht verfügbar ist:NO_PUBKEY D8FF8E1F7DF8B07E
Im Influx Blog ist das Thema zwar beschrieben, aber nicht so narrensicher dokumentiert wie seinerzeit in 2023. Etwas vesteckt, nämlich im eigentlichen Repository repos.influxdata.com dann wesentlich genauer.
Der Einfachheit halber direkt hier das Prozedere für den geneigten Amateur zum Nachmachen zuhause.
Einfach die Befehle als normaler User zeilenweise kopieren und im Raspi Terminal (CLI) eingeben. Im wesentlichen also "same procedure as last year".
Key Change Januar 2023
Die Genies bei Influx.com haben Ende Januar 2023 geruht, aus Sicherheitsgründen eine sogenannte Key-Rotation zu veranstalten. Das führt allerdings in erster Linie dazu, dass der Server Administrator rotiert, weil es beim Befehl
sudo apt update zu einer Fehlermeldung kommt. Das passiert sowohl beim normalen Update des Systems als auch beim erstmaligen Installieren des InfluxDB Repositories. InfluxDB: Probleme bei Installation und Update – Lösung weiterlesen →
Cookies nerven!
Trotzdem: Diese Website verwendet Cookies ausschließlich für die internen Wordpress Funktionen sowie für anonyme Statistiken (WP-Statistics Plugin), die dazu dienen, meine Website - vor allem derem Inhalte - zu optimieren. Werbebanner oder sonstigen Marketingkram wirst du hier nicht finden, ebensowenig wie Tracking Cookies. Solltest du die hier gesetzten Cookies ablehnen, kann es sein, dass die Seite nicht ordnungsgemäß funktioniert.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Dauer
Beschreibung
cookielawinfo-checkbox-advertisement
1 year
Set by the GDPR Cookie Consent plugin, this cookie is used to record the user consent for the cookies in the "Advertisement" category .
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
CookieLawInfoConsent
1 year
Records the default button state of the corresponding category & the status of CCPA. It works only in coordination with the primary cookie.
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.