So?
Was ist der Unterschied zwischen den Group, Number und String?
Beiträge von Cappycastle
-
-
Done.
Daten werden jetzt unter Control angezeigt.
-
Hallo zusammen,
Control habe ich angehängt.
-
Der aktuelle Stand in der PaperUI, bis morgen dann und vielen Dank!
-
Hier die Ausgabe der Updates/Upgrades
Code
Alles anzeigen[17:52:51] openhabian@openhab:/opt/miflora-mqtt-daemon$ sudo apt update [sudo] password for openhabian: Hit:1 http://archive.raspberrypi.org/debian buster InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease Ign:3 https://dl.bintray.com/openhab/apt-repo2 stable InRelease Get:4 https://dl.bintray.com/openhab/apt-repo2 stable Release [6,051 B] Fetched 6,051 B in 2s (2,625 B/s) Reading package lists... Done Building dependency tree Reading state information... Done 1 package can be upgraded. Run 'apt list --upgradable' to see it. [18:46:14] openhabian@openhab:/opt/miflora-mqtt-daemon$ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: rpi.gpio-common triggerhappy Use 'sudo apt autoremove' to remove them. The following NEW packages will be installed: flashrom libftdi1-2 libpci3 libusb-0.1-4 rpi-eeprom rpi-eeprom-images The following packages will be upgraded: raspberrypi-sys-mods 1 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 806 kB of archives. After this operation, 6,742 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-sys-mods armhf 20191105 [10.4 kB] Get:2 http://archive.raspberrypi.org/debian buster/main armhf rpi-eeprom-images all 2.4-1 [376 kB] Get:4 http://archive.raspberrypi.org/debian buster/main armhf rpi-eeprom all 2.4-1 [204 kB] Get:3 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf libpci3 armhf 1:3.5.2-1 [50.9 kB] Get:5 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libftdi1-2 armhf 1.4-1+b2 [27.7 kB] Get:6 http://mirror1.hs-esslingen.de/pub/Mirrors/archive.raspbian.org/raspbian buster/main armhf libusb-0.1-4 armhf 2:0.1.12-32 [21.6 kB] Get:7 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf flashrom armhf 1.0-1 [116 kB] Fetched 806 kB in 1s (927 kB/s) Reading changelogs... Done Selecting previously unselected package libpci3:armhf. (Reading database ... 48606 files and directories currently installed.) Preparing to unpack .../0-libpci3_1%3a3.5.2-1_armhf.deb ... Unpacking libpci3:armhf (1:3.5.2-1) ... Selecting previously unselected package libftdi1-2:armhf. Preparing to unpack .../1-libftdi1-2_1.4-1+b2_armhf.deb ... Unpacking libftdi1-2:armhf (1.4-1+b2) ... Selecting previously unselected package libusb-0.1-4:armhf. Preparing to unpack .../2-libusb-0.1-4_2%3a0.1.12-32_armhf.deb ... Unpacking libusb-0.1-4:armhf (2:0.1.12-32) ... Selecting previously unselected package flashrom. Preparing to unpack .../3-flashrom_1.0-1_armhf.deb ... Unpacking flashrom (1.0-1) ... Preparing to unpack .../4-raspberrypi-sys-mods_20191105_armhf.deb ... Unpacking raspberrypi-sys-mods (20191105) over (20190429) ... Selecting previously unselected package rpi-eeprom-images. Preparing to unpack .../5-rpi-eeprom-images_2.4-1_all.deb ... Unpacking rpi-eeprom-images (2.4-1) ... Selecting previously unselected package rpi-eeprom. Preparing to unpack .../6-rpi-eeprom_2.4-1_all.deb ... Unpacking rpi-eeprom (2.4-1) ... Setting up raspberrypi-sys-mods (20191105) ... Installing new version of config file /etc/udev/rules.d/99-com.rules ... Removing obsolete conffile /etc/modprobe.d/blacklist-rtl8192cu.conf ... Setting up libusb-0.1-4:armhf (2:0.1.12-32) ... Setting up libftdi1-2:armhf (1.4-1+b2) ... Setting up libpci3:armhf (1:3.5.2-1) ... Setting up flashrom (1.0-1) ... Setting up rpi-eeprom-images (2.4-1) ... Setting up rpi-eeprom (2.4-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/rpi-eeprom-update.service → /lib/systemd/system/rpi-eeprom-update.service. Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Updating FireMotD available updates count ... [18:47:46] openhabian@openhab:/opt/miflora-mqtt-daemon$
Anbei noch die Items Datei
-
ok...das war dann der umfangreichste part. bei den sensoren ist das leider so.
jetzt die openhab config...
im vs code editor öffnest du die datei smarthome.things und trägst folgendes ein:Code
Alles anzeigenBridge mqtt:broker:embedded-mqtt-broker "MQTT Bridge" [ host="127.0.0.1", secure=false ] { Thing topic Palme "Palme" @ "Wohnzimmer" { Channels: Type number : Palme_Licht "Palme Licht" [stateTopic="miflora/Palme", transformationPattern="JSONPATH:$.light"] Type number : Palme_Temperatur "Palme Temperatur" [stateTopic="miflora/Palme", transformationPattern="JSONPATH:$.temperature"] Type number : Palme_Feuchtigkeit "Palme Feuchtigkeit" [stateTopic="miflora/Palme", transformationPattern="JSONPATH:$.moisture"] Type number : Palme_Duenger "Palme Duenger" [stateTopic="miflora/Palme", transformationPattern="JSONPATH:$.conductivity"] Type number : Palme_Batterie "Palme Batterie" [stateTopic="miflora/Palme", transformationPattern="JSONPATH:$.battery"] } Thing topic Orange "Orange" @ "Wohnzimmer" { Channels: Type number : Orange_Licht "Orange Licht" [stateTopic="miflora/Orange", transformationPattern="JSONPATH:$.light"] Type number : Orange_Temperatur "Orange Temperatur" [stateTopic="miflora/Orange", transformationPattern="JSONPATH:$.temperature"] Type number : Orange_Feuchtigkeit "Orange Feuchtigkeit" [stateTopic="miflora/Orange", transformationPattern="JSONPATH:$.moisture"] Type number : Orange_Duenger "Orange Duenger" [stateTopic="miflora/Orange", transformationPattern="JSONPATH:$.conductivity"] Type number : Orange_Batterie "Orange Batterie" [stateTopic="miflora/Orange", transformationPattern="JSONPATH:$.battery"] } }
- zeile 1-6 + 27 ist die config mqtt bridge
- zeile bspw 8-15 ist ein gerät welches die mqtt bridge nutzt. solltest du ein weiteres gerät haben was auch mqtt als protokoll nutzt muss dies auch vor dem ende der mqtt bridge (zeile 27) eingetragen werden. (andere geräte dürfen nicht in diesem bereich stehen)
abschliessend speichern (oben links "file" -> save...
Ich darf die Datei nicht abspeichern -
-
Der 1. Scan hat einige Einträge gebracht, siehe screen.
Ich hab z.z. 2 Sensoren
Orange = C4:7C:8D:6A:FD:B8
Palme = C4:7C:8D:6A:FD:BE -
Kannst du kurz den Befehl etwas genauer erläutern?
sudo apt install git python3 python3-pip bluetooth bluezSudo = als root ausführen oder so?
apt install = ein/eine apt installieren?
python3 python3-pip bluetooth bluez = apt`s? also installiert er mehrere apts oder ist das eins?Sollte man den Befehl, zum entfernen, am Ende wirklich ausführen? "The following packages were automatically installed and are no longer required:
rpi.gpio-common triggerhappy
Use 'sudo apt autoremove' to remove them.Code
Alles anzeigen[16:21:41] openhabian@openhab:~$ sudo apt install git python3 python3-pip bluetooth bluez [sudo] password for openhabian: Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version (1:2.20.1-2+deb10u1). python3 is already the newest version (3.7.3-1). python3 set to manually installed. bluez is already the newest version (5.50-1+rpt1). bluez set to manually installed. The following packages were automatically installed and are no longer required: rpi.gpio-common triggerhappy Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: dh-python libpython3-dev libpython3.7-dev python3-asn1crypto python3-cffi-backend python3-crypto python3-cryptography python3-dev python3-distutils python3-entrypoints python3-keyring python3-keyrings.alt python3-lib2to3 python3-secretstorage python3-setuptools python3-wheel python3-xdg python3.7-dev Suggested packages: bluez-cups bluez-obexd python-crypto-doc python-cryptography-doc python3-cryptography-vectors gnome-keyring libkf5wallet-bin gir1.2-gnomekeyring-1.0 python-secretstorage-doc python-setuptools-doc The following NEW packages will be installed: bluetooth dh-python libpython3-dev libpython3.7-dev python3-asn1crypto python3-cffi-backend python3-crypto python3-cryptography python3-dev python3-distutils python3-entrypoints python3-keyring python3-keyrings.alt python3-lib2to3 python3-pip python3-secretstorage python3-setuptools python3-wheel python3-xdg python3.7-dev 0 upgraded, 20 newly installed, 0 to remove and 1 not upgraded. Need to get 49.3 MB of archives. After this operation, 79.3 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.raspberrypi.org/debian buster/main armhf bluetooth all 5.50-1+rpt1 [43.0 kB] Get:3 http://archive.raspberrypi.org/debian buster/main armhf python3-pip all 18.1-5+rpt1 [171 kB] Get:2 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf python3-lib2to3 all 3.7.3-1 [76.7 kB] Get:4 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-distutils all 3.7.3-1 [142 kB] Get:5 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf dh-python all 3.20190308 [99.3 kB] Get:6 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf libpython3.7-dev armhf 3.7.3-2 [47.2 MB] Get:7 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf libpython3-dev armhf 3.7.3-1 [20.1 kB] Get:8 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-asn1crypto all 0.24.0-1 [78.2 kB] Get:10 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-crypto armhf 2.6.1-9+b1 [251 kB] Get:11 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-cryptography armhf 2.6.1-3+deb10u2 [184 kB] Get:12 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3.7-dev armhf 3.7.3-2 [522 kB] Get:13 http://raspbian.raspberrypi.org/raspbian buster/main armhf python3-dev armhf 3.7.3-1 [1,264 B] Get:15 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-secretstorage all 2.3.1-2 [14.2 kB] Get:16 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-keyring all 17.1.1-1 [43.1 kB] Get:14 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster/main armhf python3-entrypoints all 0.3-1 [5,508 B] Get:18 http://ftp.agdsn.de/pub/mirrors/raspbian/raspbian buster/main armhf python3-setuptools all 40.8.0-1 [306 kB] Get:17 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-keyrings.alt all 3.1.1-1 [18.2 kB] Get:19 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-wheel all 0.32.3-2 [19.4 kB] Get:20 http://ftp.halifax.rwth-aachen.de/raspbian/raspbian buster/main armhf python3-xdg all 0.25-5 [35.9 kB] Get:9 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf python3-cffi-backend armhf 1.12.2-1 [70.1 kB] Fetched 49.3 MB in 12s (4,013 kB/s) Selecting previously unselected package bluetooth. (Reading database ... 47581 files and directories currently installed.) Preparing to unpack .../00-bluetooth_5.50-1+rpt1_all.deb ... Unpacking bluetooth (5.50-1+rpt1) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../01-python3-lib2to3_3.7.3-1_all.deb ... Unpacking python3-lib2to3 (3.7.3-1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../02-python3-distutils_3.7.3-1_all.deb ... Unpacking python3-distutils (3.7.3-1) ... Selecting previously unselected package dh-python. Preparing to unpack .../03-dh-python_3.20190308_all.deb ... Unpacking dh-python (3.20190308) ... Selecting previously unselected package libpython3.7-dev:armhf. Preparing to unpack .../04-libpython3.7-dev_3.7.3-2_armhf.deb ... Unpacking libpython3.7-dev:armhf (3.7.3-2) ... Selecting previously unselected package libpython3-dev:armhf. Preparing to unpack .../05-libpython3-dev_3.7.3-1_armhf.deb ... Unpacking libpython3-dev:armhf (3.7.3-1) ... Selecting previously unselected package python3-asn1crypto. Preparing to unpack .../06-python3-asn1crypto_0.24.0-1_all.deb ... Unpacking python3-asn1crypto (0.24.0-1) ... Selecting previously unselected package python3-cffi-backend. Preparing to unpack .../07-python3-cffi-backend_1.12.2-1_armhf.deb ... Unpacking python3-cffi-backend (1.12.2-1) ... Selecting previously unselected package python3-crypto. Preparing to unpack .../08-python3-crypto_2.6.1-9+b1_armhf.deb ... Unpacking python3-crypto (2.6.1-9+b1) ... Selecting previously unselected package python3-cryptography. Preparing to unpack .../09-python3-cryptography_2.6.1-3+deb10u2_armhf.deb ... Unpacking python3-cryptography (2.6.1-3+deb10u2) ... Selecting previously unselected package python3.7-dev. Preparing to unpack .../10-python3.7-dev_3.7.3-2_armhf.deb ... Unpacking python3.7-dev (3.7.3-2) ... Selecting previously unselected package python3-dev. Preparing to unpack .../11-python3-dev_3.7.3-1_armhf.deb ... Unpacking python3-dev (3.7.3-1) ... Selecting previously unselected package python3-entrypoints. Preparing to unpack .../12-python3-entrypoints_0.3-1_all.deb ... Unpacking python3-entrypoints (0.3-1) ... Selecting previously unselected package python3-secretstorage. Preparing to unpack .../13-python3-secretstorage_2.3.1-2_all.deb ... Unpacking python3-secretstorage (2.3.1-2) ... Selecting previously unselected package python3-keyring. Preparing to unpack .../14-python3-keyring_17.1.1-1_all.deb ... Unpacking python3-keyring (17.1.1-1) ... Selecting previously unselected package python3-keyrings.alt. Preparing to unpack .../15-python3-keyrings.alt_3.1.1-1_all.deb ... Unpacking python3-keyrings.alt (3.1.1-1) ... Selecting previously unselected package python3-pip. Preparing to unpack .../16-python3-pip_18.1-5+rpt1_all.deb ... Unpacking python3-pip (18.1-5+rpt1) ... Selecting previously unselected package python3-setuptools. Preparing to unpack .../17-python3-setuptools_40.8.0-1_all.deb ... Unpacking python3-setuptools (40.8.0-1) ... Selecting previously unselected package python3-wheel. Preparing to unpack .../18-python3-wheel_0.32.3-2_all.deb ... Unpacking python3-wheel (0.32.3-2) ... Selecting previously unselected package python3-xdg. Preparing to unpack .../19-python3-xdg_0.25-5_all.deb ... Unpacking python3-xdg (0.25-5) ... Setting up python3-entrypoints (0.3-1) ... Setting up libpython3.7-dev:armhf (3.7.3-2) ... Setting up python3-xdg (0.25-5) ... Setting up python3-wheel (0.32.3-2) ... Setting up python3.7-dev (3.7.3-2) ... Setting up python3-crypto (2.6.1-9+b1) ... Setting up python3-lib2to3 (3.7.3-1) ... Setting up python3-asn1crypto (0.24.0-1) ... Setting up bluetooth (5.50-1+rpt1) ... Setting up python3-cffi-backend (1.12.2-1) ... Setting up python3-distutils (3.7.3-1) ... Setting up dh-python (3.20190308) ... Setting up libpython3-dev:armhf (3.7.3-1) ... Setting up python3-setuptools (40.8.0-1) ... Setting up python3-cryptography (2.6.1-3+deb10u2) ... Setting up python3-dev (3.7.3-1) ... Setting up python3-pip (18.1-5+rpt1) ... Setting up python3-keyrings.alt (3.1.1-1) ... Setting up python3-secretstorage (2.3.1-2) ... Setting up python3-keyring (17.1.1-1) ... Processing triggers for man-db (2.8.5-2) ... Updating FireMotD available updates count ...
Wofür wird der daemon benötigt?
git clone https://github.com/ThomDietrich/miflora-mqtt-daemon.git /opt/miflora-mqtt-daemonCode[16:42:17] openhabian@openhab:~$ git clone https://github.com/ThomDietrich/miflora-mqtt-daemon.git /opt/miflora-mqtt-daemon Cloning into '/opt/miflora-mqtt-daemon'... remote: Enumerating objects: 6, done. remote: Counting objects: 100% (6/6), done. remote: Compressing objects: 100% (6/6), done. remote: Total 252 (delta 2), reused 0 (delta 0), pack-reused 246 Receiving objects: 100% (252/252), 404.23 KiB | 1.12 MiB/s, done. Resolving deltas: 100% (156/156), done.
Und was wird hier gemacht? zusätzliche Daten/Module für Python3 werden installiert? Und diese sind in der requirements.txt definiert?
Am Ende steht noch, das wheel nicht deinstalliert werden konnte ...
sudo pip3 install -r requirements.txtCode
Alles anzeigen[16:49:11] openhabian@openhab:/opt/miflora-mqtt-daemon$ sudo pip3 install -r requirements.txt Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting miflora==0.4 (from -r requirements.txt (line 2)) Downloading https://www.piwheels.org/simple/miflora/miflora-0.4-py3-none-any.whl Collecting paho-mqtt==1.4.0 (from -r requirements.txt (line 3)) Downloading https://www.piwheels.org/simple/paho-mqtt/paho_mqtt-1.4.0-py3-none-any.whl (48kB) 100% |████████████████████████████████| 51kB 795kB/s Collecting wheel==0.29.0 (from -r requirements.txt (line 4)) Downloading https://files.pythonhosted.org/packages/8a/e9/8468cd68b582b06ef554be0b96b59f59779627131aad48f8a5bce4b13450/wheel-0.29.0-py2.py3-none-any.whl (66kB) 100% |████████████████████████████████| 71kB 1.2MB/s Collecting sdnotify==0.3.1 (from -r requirements.txt (line 5)) Downloading https://www.piwheels.org/simple/sdnotify/sdnotify-0.3.1-py3-none-any.whl Collecting colorama==0.3.9 (from -r requirements.txt (line 6)) Downloading https://files.pythonhosted.org/packages/db/c8/7dcf9dbcb22429512708fe3a547f8b6101c0d02137acbd892505aee57adf/colorama-0.3.9-py2.py3-none-any.whl Collecting Unidecode==0.4.21 (from -r requirements.txt (line 7)) Downloading https://files.pythonhosted.org/packages/01/a1/9d7f3138ee3d79a1ab865a2cb38200ca778d85121db19fe264c76c981184/Unidecode-0.04.21-py2.py3-none-any.whl (228kB) 100% |████████████████████████████████| 235kB 1.4MB/s Collecting btlewrap==0.0.2 (from miflora==0.4->-r requirements.txt (line 2)) Downloading https://www.piwheels.org/simple/btlewrap/btlewrap-0.0.2-py3-none-any.whl Installing collected packages: btlewrap, miflora, paho-mqtt, wheel, sdnotify, colorama, Unidecode Found existing installation: wheel 0.32.3 Not uninstalling wheel at /usr/lib/python3/dist-packages, outside environment /usr Can't uninstall 'wheel'. No files were found to uninstall. Successfully installed Unidecode-0.4.21 btlewrap-0.0.2 colorama-0.3.9 miflora-0.4 paho-mqtt-1.4.0 sdnotify-0.3.1 wheel-0.29.0
C:\Users\boffi\Desktop\2020-01-09 17_52_57-openhabian@192.168.2.113.png
Siehe Screenshot -
Hab ich gemacht.
-
Sieht auch gut aus.
-
ja sowas in der art hatte ich vor. deshalb versuche ich es verständlich und ausführlich zu halten und hoffe nebenbei, dass @Cappycastle nicht denkt, dass ich ihn für bescheuert/begriffsstutzig halte
alles gut, kommt mir als noob ja nur zu Gute. Dachte mir auch, dass ich mit den Screenshots anderen auch etwas weiterhelfen kann.
-
-
Sieht alles gut aus
-
Hab ich gemacht.
-
-
Hat alles geklappt.
Pi ist wieder oben und mit dem WLAN verbunden. -
genau den.
Also jetzt kommen wir zu dem Punkt, den ich schon kenne. Die Wifi Settings kann ich dort nicht anpassen, siehe screenshots.
-
kannst du den screen nochmal anhängen? kann ihn nicht öffnen.
-
done.
Soll die Option "Öffne Telnet-Sitzung in PuTTY für FTP-Sitzung" aktiviert bleiben?