ServiceIoTServer: Unterschied zwischen den Versionen
(→OpenHAB) |
|||
| (34 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 5: | Zeile 5: | ||
== Software == | == Software == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== OpenHAB === | === OpenHAB === | ||
| − | {| | + | {| |
| − | |Installation: | + | |style="vertical-align:top"|Installation: |
|OpenHAB gibt es als fertiges OS-Image unter dem Namen openHABian. Es wurde das Image 20180403 aufgespielt und mit Hilfe der openhabian-config auf die neuste Version gebracht. | |OpenHAB gibt es als fertiges OS-Image unter dem Namen openHABian. Es wurde das Image 20180403 aufgespielt und mit Hilfe der openhabian-config auf die neuste Version gebracht. | ||
|- | |- | ||
|UI: | |UI: | ||
|http://iotserver:8080 | |http://iotserver:8080 | ||
| − | |- | + | |- style="vertical-align:top" |
|SSH: | |SSH: | ||
|iotserver:22<br>user: openhabian<br>pw: openhabian | |iotserver:22<br>user: openhabian<br>pw: openhabian | ||
| + | |- style="vertical-align:top" | ||
| + | |Samba: | ||
| + | |<code>\\iotserver\openHAB-conf</code><br><code>\\iotserver\openHAB-share</code><br><code>\\iotserver\openhabian</code> | ||
| + | |- style="vertical-align:top" | ||
| + | |MQTT: | ||
| + | |Paper UI -> Add-ons -> Bindings -> MQTT Binding<br>\\iotserver\openHAB-conf\services\mqtt.cfg (In der config folgendes eintragen)<br>mqtt:broker.url=tcp://localhost:1883<br>mqtt:broker.clientId=openhab<br>mqtt:broker.retain=true | ||
| + | |- style="vertical-align:top" | ||
| + | |InfluxDB: | ||
| + | |Add-ons -> Persistence -> InfluxDB (v 1.0) Persistence<br>/etc/openhab2/services/influxdb.cfg<br>/etc/openhab2/persistence/influxdb.persist | ||
|} | |} | ||
| Zeile 25: | Zeile 29: | ||
Installation: über openhabian-config -> optional components installiert. Die Installation ist mit dem root user gemacht. | Installation: über openhabian-config -> optional components installiert. Die Installation ist mit dem root user gemacht. | ||
| − | === MQTT === | + | === Eclipse Mosquitto ([[MQTT]]) === |
| − | Installation: über openhabian-config -> optional components installiert. Ohne Authentifizierung. | + | {| |
| + | |style="vertical-align:top" |Installation: | ||
| + | |über openhabian-config -> optional components installiert. Ohne Authentifizierung.<br> Es ist eine eigenständige Instanz des [https://mosquitto.org/ Mosquitto]-Servers die hier installiert wird. | ||
| + | |- style="vertical-align:top" | ||
| + | |Interface: | ||
| + | |iotserver:1883 (default)<br>iotserver:1884 (websockets) | ||
| + | |- style="vertical-align:top" | ||
| + | |Internet: | ||
| + | |hackffm.mooo.com:1883<br>hackffm.mooo.com:1884 | ||
| + | |- style="vertical-align:top" | ||
| + | |Benutzer: | ||
| + | |user: intern pw: <wlanpasswort> Lese- und Schreibrechte auf alles<br>user: extern pw: internetoftrash Alles lesen und schreiben nur auf extern/# | ||
| + | |- | ||
| + | |Bridge: | ||
| + | | zum hackffmrpi, gemapped auf das Topic hackffmrpi/# | ||
| + | |} | ||
=== MySensors === | === MySensors === | ||
| − | Installation: Wie in der Anleitung beschrieben https://www.mysensors.org/build/raspberry | + | {| |
| + | |style="vertical-align:top"|Installation: | ||
| + | |Wie in der Anleitung beschrieben https://www.mysensors.org/build/raspberry | ||
| + | Der 'master branch' von github in das Verzeichnis <code>~/git/MySensors</code> gekloned. | ||
| + | |- | ||
| + | |style="vertical-align:top"|Konfiguration: | ||
| + | |Startet beim booten mit systemd | ||
| + | Der Log ist als named pipe konfiguriert und kann folgendermaßen angeschaut werden <code>cat /tmp/mysgw.pipe</code> | ||
| + | |||
| + | Die Konfiguration des Gateways zum bauen mit Make<br> | ||
| + | <code>./configure --my-transport=nrf24 --my-gateway=mqtt --my-controller-ip-address=127.0.0.1 --my-mqtt-publish-topic-prefix=mysensors-out --my-mqtt-subscribe-topic-prefix=mysensors-in --my-mqtt-client-id=mygateway1</code><br> | ||
| + | Also für das Funkmodul nRF24l01 und läuft über MQTT mit den beiden prefixen mysensors-out und mysensors-in | ||
| + | |} | ||
| + | |||
| + | === [[InfluxDB]] === | ||
| + | Hoch effiziente in Go geschriebene Opensource-Datenbank für Zeitreihen wie IoT-Sensordaten und Echtzeitanalysen. | ||
| + | {| | ||
| + | |style="vertical-align:top"|Benutzer: | ||
| + | |admin<br>openhab<br>grafana pw: <wlanpw> nur lesend | ||
| + | |- | ||
| + | |Datenbank: | ||
| + | |openhab_db | ||
| + | |} | ||
| + | |||
| + | === [[Grafana]] === | ||
| + | "The open platform for beautiful analytics and monitoring" | ||
| + | {| | ||
| + | |style="vertical-align:top"|Interface: | ||
| + | |iotserver:3000<br>hackffm.mooo.com:3000 | ||
| + | |} | ||
Aktuelle Version vom 21. Juli 2018, 12:45 Uhr
Das ist unser IoT-Server. Im Space zu erreichen unter http://iotserver:8080
Inhaltsverzeichnis
Hardware
Raspberry 3 mit openHABian.
Software
OpenHAB
| Installation: | OpenHAB gibt es als fertiges OS-Image unter dem Namen openHABian. Es wurde das Image 20180403 aufgespielt und mit Hilfe der openhabian-config auf die neuste Version gebracht. |
| UI: | http://iotserver:8080 |
| SSH: | iotserver:22 user: openhabian pw: openhabian |
| Samba: | \\iotserver\openHAB-conf\\iotserver\openHAB-share\\iotserver\openhabian
|
| MQTT: | Paper UI -> Add-ons -> Bindings -> MQTT Binding \\iotserver\openHAB-conf\services\mqtt.cfg (In der config folgendes eintragen) mqtt:broker.url=tcp://localhost:1883 mqtt:broker.clientId=openhab mqtt:broker.retain=true |
| InfluxDB: | Add-ons -> Persistence -> InfluxDB (v 1.0) Persistence /etc/openhab2/services/influxdb.cfg /etc/openhab2/persistence/influxdb.persist |
Node-RED
Installation: über openhabian-config -> optional components installiert. Die Installation ist mit dem root user gemacht.
Eclipse Mosquitto (MQTT)
| Installation: | über openhabian-config -> optional components installiert. Ohne Authentifizierung. Es ist eine eigenständige Instanz des Mosquitto-Servers die hier installiert wird. |
| Interface: | iotserver:1883 (default) iotserver:1884 (websockets) |
| Internet: | hackffm.mooo.com:1883 hackffm.mooo.com:1884 |
| Benutzer: | user: intern pw: <wlanpasswort> Lese- und Schreibrechte auf alles user: extern pw: internetoftrash Alles lesen und schreiben nur auf extern/# |
| Bridge: | zum hackffmrpi, gemapped auf das Topic hackffmrpi/# |
MySensors
| Installation: | Wie in der Anleitung beschrieben https://www.mysensors.org/build/raspberry
Der 'master branch' von github in das Verzeichnis |
| Konfiguration: | Startet beim booten mit systemd
Der Log ist als named pipe konfiguriert und kann folgendermaßen angeschaut werden Die Konfiguration des Gateways zum bauen mit Make |
InfluxDB
Hoch effiziente in Go geschriebene Opensource-Datenbank für Zeitreihen wie IoT-Sensordaten und Echtzeitanalysen.
| Benutzer: | admin openhab grafana pw: <wlanpw> nur lesend |
| Datenbank: | openhab_db |
Grafana
"The open platform for beautiful analytics and monitoring"
| Interface: | iotserver:3000 hackffm.mooo.com:3000 |