NEWS
Wasserzähler (Funk 868) auslesen.
-
1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnecting. 1617018033: New connection from 127.0.0.1 on port 1884. 1617018033: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018033: Socket error on client iobroker.mqtt.1, disconnectinpi@raspberrypi:/ pi@raspberrypi:/var/log/mosquitto $
-
Habe in mosquitto.conf und wmbusmeters auf port 8883 umgestellt, hier kommt auch wieder Port 1884
1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: New client connected from 127.0.0.1 as iobroker.mqtt.1 (c1, k1000). 1617018698: Socket error on client iobroker.mqtt.1, disconnecting. 1617018698: New connection from 127.0.0.1 on port 1884. 1617018698: mosquitto version 1.5.7 terminating
-
@hg6806 bei mir bleibt die mqtt instanz auch gelb. Er springt nur kurz auf grün wenn er daten empfängt.
So ist es zumindest bei mir.
Ich habe nur den MQTT Broker in Iobroker und einen für Shelly´sBei mir ist der Mosquitto auf 1883 der Broker auf 1884, die für die Shelly´s wieder auf einen anderen.
Hast du schon mal probiert dass du mosquitto auf 1884 stellst und den im Wmbusmeter auf 1883 sendest.
Also im der mosquitto.conf die Zeile
port 1884
einfügst?sudo nano /etc/mosquitto/mosquitto.conf
in wmbusmeter
shell=/usr/bin/mosquitto_pub -h 192.168.178.18 -p 1883 -t wmbusmeters/21200936/$ -
@michi_pi
Hmmm, das verstehe ich jetzt gar nicht.
Ich dachte wmbusmeters und mosquitto müssen auf einer Port-Nr. stehen.D.h. du hast für die Shelly den mqtt adapter und sonst keine weitere Instanz? auf welchem Port?
In welche Datenpunkte schreibt dann Mosquitto?
-
@hg6806 Bin in mqtt auch nicht so fit.
Ich verstehe das ganze so.
mosquitto ist ja in meinem Fall nur der client und kein Broker. Der Client verwendet in meinem Fall den Port 1883. Wmbusmeter verwendet den Client um die Daten zum Broker zu senden, der wiederrum den Port 1884 verwendet.
In wmbusmeter muss ich ja den Zielort angeben. Also den Port 1884.Ja es reicht meiner Meinung eine Instanz. Ich hab den Shelly-Adapter der auch MQTT nutzt, den habe ich auf 1885 laufen. Und den reinen MQTT-Adapter als Broker für wmbusmeters.
Das sieht dann so aus
-
@michi_pi
Irgendwie verstehe ich mit den ganzen Ports nur noch Bahnhof.Ich hatte vorher MQTT Adapter und meine ESP, was ja wie Shelly ist, alles auf 1883, was immer funktioniert hat.
Ich dachte die müssen alle auf dem gleichen Port? Client und Broker?Jetzt hast du aber Client (mosquitto) auf 1883 Broker aber auf 1884 und wmbusmeters sendet nach 1884?
Deine Shellys sind auf 1885 eingestellt. Und hast du jetzt für die Shellys eine 2. Instanz? Wenn ja auf welchem Port?
@michi_pi sagte in Wasserzähler (Funk 868) auslesen.:
Ich habe nur den MQTT Broker in Iobroker und einen für Shelly´s
Hast du jetzt einen oder zwei Instanzen von MQTT?
-
@hg6806 für die Shelly´s verwende ich den Shelly-Adapter
für wmbusmeter den MQTT-Adapter
Im Prinzip eigentlich zwei Instanzen, wobei ich denke dass ich auch den shelly-Adapter direkt durch den mqtt ablösen kann. Das hat sich bei mir nur historisch so ergeben.
Ich denke nicht dass ein Client und der Broker auf dem gleichen Port laufen muss/soll.
Habe für jeden einen eigenen Port auch für mosquitto. -
-
-
@michi_pi
Nein, bis jetzt habe ich noch nie Daten in iobroker gesehen.
War aber auch published. Vielleicht war das der Fehler. Ich dachte das passiert automatisch, wenn der Broker Daten erhält.Auf jeden Fall warte ich jetzt wieder auf Daten, die bei mir sehr selten kommen..
Nur alle 3-5h.Kann man den rssi Wert auch ermitteln und übertragen? Anfangs hatte man den ja gesehen.
Nicht dass da noch ein HF Problem besteht.
-
@hg6806 weiß ich nicht ob man den rssi wert auch bekommt. Gib Mal ```
wmbusmeters --listenvs=iperlIst das so, dass bei dir nur alle 3-5h was ankommt. Bei mir kommt alle 10s.was an.
-
Also, durch den anderen MQTT Thread bin ich jetzt etwas weiter gekommen.
MQTT läuft wohl, aber es kommt trotzdem noch kein Wert, bzw Werte an, da diese leer sind.Ich habe mal händisch einen Wert in die ioBroker Datenpunkte geschrieben, dieser wurde dann durch MQTT überschrieben, bzw. gelöscht.
bei
echo $METER_TOTAL_M3
gibt es nichts zurück.hier bekomme ich jedoch was:
pi@raspberrypi:~ $ wmbusmeters auto:t1 meinwasserzaehler iperl:t1 21200936 2E13xxxxxxxxxxxxxxx92 Started auto cul on /dev/ttyACM1 listening on t1 meinwasserzaehler 21200936 32.488 m3 0 m3/h 2021-03-31 10:42.40
und das scheint auch in Ordnung zu sein:
pi@raspberrypi:~ $ wmbusmeters --listenvs=iperl METER_JSON METER_ID METER_NAME METER_MEDIA METER_TYPE METER_TIMESTAMP METER_DEVICE METER_RSSI_DBM METER_TOTAL_M3 METER_MAX_FLOW_M3H pi@raspberrypi:~ $ set | grep METER
...bis auf den letzten Befehl.
Und die beiden Zeile sind in der Config:
shell=/usr/bin/mosquitto_pub -h 192.168.178.18 -p 1883 -u MeinUsername -P meinPasswort -t wmbusmeters/21200936/Gesamt -m "$METER_TOTAL_M3" shell=/usr/bin/mosquitto_pub -h 192.168.178.18 -p 1883 -u MeinUsername -P meinPasswort -t wmbusmeters/21200936/RSSI -m "$METER_RSSI_DBM"
Beide sind auch gepublisht.
-
@hg6806 okay, komisch. Der daemon läuft aber?
Kannst du bitte mal zeigen was hier ausgegeben wird?
systemctl status wmbusmeters.service
-
@michi_pi sagte in Wasserzähler (Funk 868) auslesen.:
systemctl status wmbusmeters.service
Läuft wohl nicht:
pi@raspberrypi:~ $ systemctl status wmbusmeters.service ● wmbusmeters.service - "wmbusmeters service" Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor pres Active: failed (Result: exit-code) since Wed 2021-03-31 23:06:33 CEST; 8h ago Docs: https://github.com/weetmuts/wmbusmeters man:wmbusmeters(1) Process: 672 ExecStartPre=/bin/mkdir -p /var/log/wmbusmeters/meter_readings (c Process: 673 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /var/log/wmbus Process: 674 ExecStartPre=/bin/mkdir -p /run/wmbusmeters (code=exited, status= Process: 675 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /run/wmbusmete Process: 676 ExecStart=/usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid Main PID: 678 (code=exited, status=1/FAILURE) Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec= Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart j Mär 31 23:06:33 raspberrypi systemd[1]: Stopped "wmbusmeters service". Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Start request repea Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Failed with result Mär 31 23:06:33 raspberrypi systemd[1]: Failed to start "wmbusmeters service". lines 1-18/18 (END)...skipping... ● wmbusmeters.service - "wmbusmeters service" Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2021-03-31 23:06:33 CEST; 8h ago Docs: https://github.com/weetmuts/wmbusmeters man:wmbusmeters(1) Process: 672 ExecStartPre=/bin/mkdir -p /var/log/wmbusmeters/meter_readings (code=exited, status=0/SUCCESS) Process: 673 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /var/log/wmbusmeters (code=exited, status=0/SUCCESS) Process: 674 ExecStartPre=/bin/mkdir -p /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 675 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 676 ExecStart=/usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid (code=exited, status=0/SUCCESS) Main PID: 678 (code=exited, status=1/FAILURE) Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec=1s expired, scheduling restart. Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart job, restart counter is at 3. Mär 31 23:06:33 raspberrypi systemd[1]: Stopped "wmbusmeters service". Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Start request repeated too quickly. Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. Mär 31 23:06:33 raspberrypi systemd[1]: Failed to start "wmbusmeters service". ~
Obwohl ich über
pi@raspberrypi:~ $ wmbusmeters auto:t1 meinwasserzaehler iperl:t1 21200936 2E13xxxxxxxxxxxxxxx92
alle 1-2h was reinbekommen hatte.
Ich wollte das Ganze nochmal deinstallieren und neu installieren finde aber über
dpkg --list
...das Paket nicht mal
Hier nochmal Versuche den Service neu zu starten:
pi@raspberrypi:~ $ sudo systemctl stop wmbusmeters pi@raspberrypi:~ $ systemctl status wmbusmeters.service ● wmbusmeters.service - "wmbusmeters service" Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2021-03-31 23:06:33 CEST; 8h ago Docs: https://github.com/weetmuts/wmbusmeters man:wmbusmeters(1) Process: 672 ExecStartPre=/bin/mkdir -p /var/log/wmbusmeters/meter_readings (code=exited, status=0/SUCCESS) Process: 673 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /var/log/wmbusmeters (code=exited, status=0/SUCCESS) Process: 674 ExecStartPre=/bin/mkdir -p /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 675 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 676 ExecStart=/usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid (code=exited, status=0/SUCCESS) Main PID: 678 (code=exited, status=1/FAILURE) Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec=1s expired, scheduling restart. Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart job, restart counter is at 3. Mär 31 23:06:33 raspberrypi systemd[1]: Stopped "wmbusmeters service". Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Start request repeated too quickly. Mär 31 23:06:33 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. Mär 31 23:06:33 raspberrypi systemd[1]: Failed to start "wmbusmeters service". pi@raspberrypi:~ $ sudo systemctl start wmbusmeters pi@raspberrypi:~ $ systemctl status wmbusmeters.service ● wmbusmeters.service - "wmbusmeters service" Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2021-04-01 07:49:15 CEST; 1s ago Docs: https://github.com/weetmuts/wmbusmeters man:wmbusmeters(1) Process: 19954 ExecStartPre=/bin/mkdir -p /var/log/wmbusmeters/meter_readings (code=exited, status=0/SUCCESS) Process: 19955 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /var/log/wmbusmeters (code=exited, status=0/SUCCESS) Process: 19956 ExecStartPre=/bin/mkdir -p /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 19957 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 19958 ExecStart=/usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid (code=exited, status=0/SUCCESS) Main PID: 19959 (code=exited, status=1/FAILURE) Apr 01 07:49:16 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec=1s expired, scheduling restart. Apr 01 07:49:16 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart job, restart counter is at 3. Apr 01 07:49:16 raspberrypi systemd[1]: Stopped "wmbusmeters service". Apr 01 07:49:16 raspberrypi systemd[1]: wmbusmeters.service: Start request repeated too quickly. Apr 01 07:49:16 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. Apr 01 07:49:16 raspberrypi systemd[1]: Failed to start "wmbusmeters service". pi@raspberrypi:~ $
Den Fehler hatte ich ja von Anfang an gepostet.
-
-
@michi_pi sagte in Wasserzähler (Funk 868) auslesen.:
ps -e | grep wmbusmeters
Garnichts.
ps -e | grep wmbusmeters pi@raspberrypi:~ $
-
@hg6806 okay, ja vielleicht sollte es doch nochmal neuinstalliert werden. Oder erst mal ein Update durchführen.
$ git pull https://github.com/weetmuts/wmbusmeters.git $ cd wmbusmeters $ sudo make clean $ sudo make $ sudo systemctl daemon-reload
und danach nochmal schauen ob es dann läuft
-
@michi_pi sagte in Wasserzähler (Funk 868) auslesen.:
sudo systemctl daemon-reload
Habe es ausgeführt, Fehler taucht wieder auf.
pi@raspberrypi:~/wmbusmeters $ systemctl status wmbusmeters.service ● wmbusmeters.service - "wmbusmeters service" Loaded: loaded (/lib/systemd/system/wmbusmeters.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2021-04-01 11:17:02 CEST; 1min 38s ago Docs: https://github.com/weetmuts/wmbusmeters man:wmbusmeters(1) Process: 16257 ExecStartPre=/bin/mkdir -p /var/log/wmbusmeters/meter_readings (code=exited, status=0/SUCCESS) Process: 16258 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /var/log/wmbusmeters (code=exited, status=0/SUCCESS) Process: 16259 ExecStartPre=/bin/mkdir -p /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 16260 ExecStartPre=/bin/chown -R wmbusmeters:wmbusmeters /run/wmbusmeters (code=exited, status=0/SUCCESS) Process: 16261 ExecStart=/usr/sbin/wmbusmetersd /run/wmbusmeters/wmbusmeters.pid (code=exited, status=0/SUCCESS) Main PID: 16262 (code=exited, status=1/FAILURE) Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec=1s expired, scheduling restart. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart job, restart counter is at 3. Apr 01 11:17:02 raspberrypi systemd[1]: Stopped "wmbusmeters service". Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Start request repeated too quickly. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. Apr 01 11:17:02 raspberrypi systemd[1]: Failed to start "wmbusmeters service". pi@raspberrypi:~/wmbusmeters $ journalctl -xe -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- An ExecStart= process belonging to unit wmbusmeters.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. Apr 01 11:17:01 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The unit wmbusmeters.service has entered the 'failed' state with result 'exit-code'. Apr 01 11:17:01 raspberrypi CRON[16265]: pam_unix(cron:session): session opened for user root by (uid=0) Apr 01 11:17:01 raspberrypi CRON[16266]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Apr 01 11:17:01 raspberrypi CRON[16265]: pam_unix(cron:session): session closed for user root Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec=1s expired, scheduling restart. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart job, restart counter is at 3. -- Subject: Automatic restarting of a unit has been scheduled -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- Automatic restarting of the unit wmbusmeters.service has been scheduled, as the result for -- the configured Restart= setting for the unit. Apr 01 11:17:02 raspberrypi systemd[1]: Stopped "wmbusmeters service". -- Subject: A stop job for unit wmbusmeters.service has finished -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A stop job for unit wmbusmeters.service has finished. -- -- The job identifier is 2170 and the job result is done. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Start request repeated too quickly. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The unit wmbusmeters.service has entered the 'failed' state with result 'exit-code'. Apr 01 11:17:02 raspberrypi systemd[1]: Failed to start "wmbusmeters service". -- Subject: A start job for unit wmbusmeters.service has failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit wmbusmeters.service has finished with a failure. --
Hat es vielleicht was mit fehlenden Rechten zu tun?
Wie kann ich denn das Ganze erst einmal ganz deinstallieren?
Habe da nichts gefunden undpi@raspberrypi:~/wmbusmeters $ sudo apt-get --purge remove wmbusmeters Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig E: Paket wmbusmeters kann nicht gefunden werden.
...funktioniert nicht.
-
@hg6806 einfach mit uninstall
sudo systemctl stop wmbusmeters cd wmbusmeters sudo make uninstall
Wenn du dann diese Zeilen ausführst, kannst du dann mal zeigen was in dem make test für ein Ergebnis gekommen ist?
git clone https://github.com/weetmuts/wmbusmeters.git cd wmbusmeters make && make test
-
@michi_pi sagte in Wasserzähler (Funk 868) auslesen.:
make && make test
pi@raspberrypi:~/wmbusmeters $ sudo apt-get --purge remove wmbusmeters Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig E: Paket wmbusmeters kann nicht gefunden werden. pi@raspberrypi:~/wmbusmeters $ wmbusmeters auto:t1 meinwasserzaehler iperl:t1 21200936 2E13CF51607F0A307C3C91025CE97792 Started auto cul on /dev/ttyACM1 listening on t1 meinwasserzaehler 21200936 32.754 m3 0 m3/h 2021-04-01 11:36.04 ^Cpi@raspberrypi:~/wmbusmeters $ sudo systemctl stop wmbusmeters pi@raspberrypi:~/wmbusmeters $ cd wmbusmeters -bash: cd: wmbusmeters: Datei oder Verzeichnis nicht gefunden pi@raspberrypi:~/wmbusmeters $ sudo make uninstall Building 1.1.0-44-ga26bac3 binaries: removed /usr/bin/wmbusmeters and /usr/sbin/wmbusmetersd man page: removed /usr/share/man/man1/wmbusmeters.1.gz user: removed wmbusmeters log dir: removed /var/log/wmbusmeters/ logrotate file: removed /etc/logrotate.d/wmbusmeters conf file: removed /etc/wmbusmeters.conf conf dir: removed /etc/wmbusmeters.d systemd: removed /lib/systemd/system/wmbusmeters.service pi@raspberrypi:~/wmbusmeters $ git clone https://github.com/weetmuts/wmbusmeters.git Klone nach 'wmbusmeters' ... remote: Enumerating objects: 195, done. remote: Counting objects: 100% (195/195), done. remote: Compressing objects: 100% (147/147), done. remote: Total 6512 (delta 115), reused 87 (delta 45), pack-reused 6317 Empfange Objekte: 100% (6512/6512), 2.67 MiB | 6.85 MiB/s, Fertig. Löse Unterschiede auf: 100% (5065/5065), Fertig. pi@raspberrypi:~/wmbusmeters $ cd wmbusmeters pi@raspberrypi:~/wmbusmeters/wmbusmeters $ make && make test Building 1.2.0-21-ga26bac3 g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aes.cc -c -E > build/aes.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aes.cc -MMD -c -o build/aes.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aescmac.cc -c -E > build/aescmac.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/aescmac.cc -MMD -c -o build/aescmac.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/bus.cc -c -E > build/bus.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/bus.cc -MMD -c -o build/bus.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/cmdline.cc -c -E > build/cmdline.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/cmdline.cc -MMD -c -o build/cmdline.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/config.cc -c -E > build/config.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/config.cc -MMD -c -o build/config.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/dvparser.cc -c -E > build/dvparser.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/dvparser.cc -MMD -c -o build/dvparser.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/mbus_rawtty.cc -c -E > build/mbus_rawtty.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/mbus_rawtty.cc -MMD -c -o build/mbus_rawtty.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meters.cc -c -E > build/meters.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meters.cc -MMD -c -o build/meters.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/manufacturer_specificities.cc -c -E > build/manufacturer_specificities.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/manufacturer_specificities.cc -MMD -c -o build/manufacturer_specificities.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/printer.cc -c -E > build/printer.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/printer.cc -MMD -c -o build/printer.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/rtlsdr.cc -c -E > build/rtlsdr.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/rtlsdr.cc -MMD -c -o build/rtlsdr.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/serial.cc -c -E > build/serial.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/serial.cc -MMD -c -o build/serial.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/shell.cc -c -E > build/shell.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/shell.cc -MMD -c -o build/shell.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/sha256.cc -c -E > build/sha256.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/sha256.cc -MMD -c -o build/sha256.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/threads.cc -c -E > build/threads.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/threads.cc -MMD -c -o build/threads.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/util.cc -c -E > build/util.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/util.cc -MMD -c -o build/util.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/units.cc -c -E > build/units.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/units.cc -MMD -c -o build/units.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus.cc -c -E > build/wmbus.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus.cc -MMD -c -o build/wmbus.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_auto.cc -c -E > build/meter_auto.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_auto.cc -MMD -c -o build/meter_auto.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_unknown.cc -c -E > build/meter_unknown.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_unknown.cc -MMD -c -o build/meter_unknown.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_amiplus.cc -c -E > build/meter_amiplus.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_amiplus.cc -MMD -c -o build/meter_amiplus.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_amb8465.cc -c -E > build/wmbus_amb8465.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_amb8465.cc -MMD -c -o build/wmbus_amb8465.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_im871a.cc -c -E > build/wmbus_im871a.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_im871a.cc -MMD -c -o build/wmbus_im871a.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_cul.cc -c -E > build/wmbus_cul.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_cul.cc -MMD -c -o build/wmbus_cul.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rtlwmbus.cc -c -E > build/wmbus_rtlwmbus.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rtlwmbus.cc -MMD -c -o build/wmbus_rtlwmbus.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rtl433.cc -c -E > build/wmbus_rtl433.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rtl433.cc -MMD -c -o build/wmbus_rtl433.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_simulator.cc -c -E > build/wmbus_simulator.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_simulator.cc -MMD -c -o build/wmbus_simulator.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rawtty.cc -c -E > build/wmbus_rawtty.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rawtty.cc -MMD -c -o build/wmbus_rawtty.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rc1180.cc -c -E > build/wmbus_rc1180.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_rc1180.cc -MMD -c -o build/wmbus_rc1180.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_utils.cc -c -E > build/wmbus_utils.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/wmbus_utils.cc -MMD -c -o build/wmbus_utils.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_apator08.cc -c -E > build/meter_apator08.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_apator08.cc -MMD -c -o build/meter_apator08.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_apator162.cc -c -E > build/meter_apator162.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_apator162.cc -MMD -c -o build/meter_apator162.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_cma12w.cc -c -E > build/meter_cma12w.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_cma12w.cc -MMD -c -o build/meter_cma12w.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_compact5.cc -c -E > build/meter_compact5.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_compact5.cc -MMD -c -o build/meter_compact5.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ebzwmbe.cc -c -E > build/meter_ebzwmbe.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ebzwmbe.cc -MMD -c -o build/meter_ebzwmbe.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ehzp.cc -c -E > build/meter_ehzp.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ehzp.cc -MMD -c -o build/meter_ehzp.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_esyswm.cc -c -E > build/meter_esyswm.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_esyswm.cc -MMD -c -o build/meter_esyswm.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_elf.cc -c -E > build/meter_elf.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_elf.cc -MMD -c -o build/meter_elf.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_em24.cc -c -E > build/meter_em24.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_em24.cc -MMD -c -o build/meter_em24.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_emerlin868.cc -c -E > build/meter_emerlin868.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_emerlin868.cc -MMD -c -o build/meter_emerlin868.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ev200.cc -c -E > build/meter_ev200.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ev200.cc -MMD -c -o build/meter_ev200.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_evo868.cc -c -E > build/meter_evo868.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_evo868.cc -MMD -c -o build/meter_evo868.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_eurisii.cc -c -E > build/meter_eurisii.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_eurisii.cc -MMD -c -o build/meter_eurisii.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_fhkvdataiii.cc -c -E > build/meter_fhkvdataiii.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_fhkvdataiii.cc -MMD -c -o build/meter_fhkvdataiii.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_fhkvdataiv.cc -c -E > build/meter_fhkvdataiv.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_fhkvdataiv.cc -MMD -c -o build/meter_fhkvdataiv.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_flowiq2200.cc -c -E > build/meter_flowiq2200.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_flowiq2200.cc -MMD -c -o build/meter_flowiq2200.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_hydrus.cc -c -E > build/meter_hydrus.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_hydrus.cc -MMD -c -o build/meter_hydrus.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_hydrocalm3.cc -c -E > build/meter_hydrocalm3.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_hydrocalm3.cc -MMD -c -o build/meter_hydrocalm3.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_hydrodigit.cc -c -E > build/meter_hydrodigit.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_hydrodigit.cc -MMD -c -o build/meter_hydrodigit.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ei6500.cc -c -E > build/meter_ei6500.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ei6500.cc -MMD -c -o build/meter_ei6500.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_iperl.cc -c -E > build/meter_iperl.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_iperl.cc -MMD -c -o build/meter_iperl.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_izar.cc -c -E > build/meter_izar.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_izar.cc -MMD -c -o build/meter_izar.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_izar3.cc -c -E > build/meter_izar3.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_izar3.cc -MMD -c -o build/meter_izar3.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansendw.cc -c -E > build/meter_lansendw.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansendw.cc -MMD -c -o build/meter_lansendw.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansensm.cc -c -E > build/meter_lansensm.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansensm.cc -MMD -c -o build/meter_lansensm.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansenth.cc -c -E > build/meter_lansenth.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansenth.cc -MMD -c -o build/meter_lansenth.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansenpu.cc -c -E > build/meter_lansenpu.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lansenpu.cc -MMD -c -o build/meter_lansenpu.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_mkradio3.cc -c -E > build/meter_mkradio3.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_mkradio3.cc -MMD -c -o build/meter_mkradio3.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_mkradio4.cc -c -E > build/meter_mkradio4.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_mkradio4.cc -MMD -c -o build/meter_mkradio4.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical21.cc -c -E > build/meter_multical21.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical21.cc -MMD -c -o build/meter_multical21.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical302.cc -c -E > build/meter_multical302.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical302.cc -MMD -c -o build/meter_multical302.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical403.cc -c -E > build/meter_multical403.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical403.cc -MMD -c -o build/meter_multical403.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical603.cc -c -E > build/meter_multical603.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical603.cc -MMD -c -o build/meter_multical603.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical803.cc -c -E > build/meter_multical803.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_multical803.cc -MMD -c -o build/meter_multical803.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_omnipower.cc -c -E > build/meter_omnipower.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_omnipower.cc -MMD -c -o build/meter_omnipower.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_piigth.cc -c -E > build/meter_piigth.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_piigth.cc -MMD -c -o build/meter_piigth.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_q400.cc -c -E > build/meter_q400.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_q400.cc -MMD -c -o build/meter_q400.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_qcaloric.cc -c -E > build/meter_qcaloric.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_qcaloric.cc -MMD -c -o build/meter_qcaloric.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_rfmamb.cc -c -E > build/meter_rfmamb.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_rfmamb.cc -MMD -c -o build/meter_rfmamb.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_rfmtx1.cc -c -E > build/meter_rfmtx1.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_rfmtx1.cc -MMD -c -o build/meter_rfmtx1.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_sharky.cc -c -E > build/meter_sharky.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_sharky.cc -MMD -c -o build/meter_sharky.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_supercom587.cc -c -E > build/meter_supercom587.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_supercom587.cc -MMD -c -o build/meter_supercom587.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_sontex868.cc -c -E > build/meter_sontex868.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_sontex868.cc -MMD -c -o build/meter_sontex868.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_topaseskr.cc -c -E > build/meter_topaseskr.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_topaseskr.cc -MMD -c -o build/meter_topaseskr.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_tsd2.cc -c -E > build/meter_tsd2.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_tsd2.cc -MMD -c -o build/meter_tsd2.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ultrimis.cc -c -E > build/meter_ultrimis.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_ultrimis.cc -MMD -c -o build/meter_ultrimis.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_vario451.cc -c -E > build/meter_vario451.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_vario451.cc -MMD -c -o build/meter_vario451.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_waterstarm.cc -c -E > build/meter_waterstarm.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_waterstarm.cc -MMD -c -o build/meter_waterstarm.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_whe46x.cc -c -E > build/meter_whe46x.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_whe46x.cc -MMD -c -o build/meter_whe46x.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_whe5x.cc -c -E > build/meter_whe5x.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_whe5x.cc -MMD -c -o build/meter_whe5x.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_sensostar.cc -c -E > build/meter_sensostar.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_sensostar.cc -MMD -c -o build/meter_sensostar.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_gransystems_ccx01.cc -c -E > build/meter_gransystems_ccx01.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_gransystems_ccx01.cc -MMD -c -o build/meter_gransystems_ccx01.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lse_08.cc -c -E > build/meter_lse_08.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_lse_08.cc -MMD -c -o build/meter_lse_08.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_weh_07.cc -c -E > build/meter_weh_07.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/meter_weh_07.cc -MMD -c -o build/meter_weh_07.o echo 'R"MANUAL(' > build/short_manual.h sed -n '/wmbusmeters version/,/```/p' README.md \ | grep -v 'wmbusmeters version' \ | grep -v '```' >> build/short_manual.h echo ')MANUAL";' >> build/short_manual.h g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/main.cc -c -E > build/main.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/main.cc -MMD -c -o build/main.o g++ -o build/wmbusmeters build/aes.o build/aescmac.o build/bus.o build/cmdline.o build/config.o build/dvparser.o build/mbus_rawtty.o build/meters.o build/manufacturer_specificities.o build/printer.o build/rtlsdr.o build/serial.o build/shell.o build/sha256.o build/threads.o build/util.o build/units.o build/wmbus.o build/meter_auto.o build/meter_unknown.o build/meter_amiplus.o build/wmbus_amb8465.o build/wmbus_im871a.o build/wmbus_cul.o build/wmbus_rtlwmbus.o build/wmbus_rtl433.o build/wmbus_simulator.o build/wmbus_rawtty.o build/wmbus_rc1180.o build/wmbus_utils.o build/meter_apator08.o build/meter_apator162.o build/meter_cma12w.o build/meter_compact5.o build/meter_ebzwmbe.o build/meter_ehzp.o build/meter_esyswm.o build/meter_elf.o build/meter_em24.o build/meter_emerlin868.o build/meter_ev200.o build/meter_evo868.o build/meter_eurisii.o build/meter_fhkvdataiii.o build/meter_fhkvdataiv.o build/meter_flowiq2200.o build/meter_hydrus.o build/meter_hydrocalm3.o build/meter_hydrodigit.o build/meter_ei6500.o build/meter_iperl.o build/meter_izar.o build/meter_izar3.o build/meter_lansendw.o build/meter_lansensm.o build/meter_lansenth.o build/meter_lansenpu.o build/meter_mkradio3.o build/meter_mkradio4.o build/meter_multical21.o build/meter_multical302.o build/meter_multical403.o build/meter_multical603.o build/meter_multical803.o build/meter_omnipower.o build/meter_piigth.o build/meter_q400.o build/meter_qcaloric.o build/meter_rfmamb.o build/meter_rfmtx1.o build/meter_sharky.o build/meter_supercom587.o build/meter_sontex868.o build/meter_topaseskr.o build/meter_tsd2.o build/meter_ultrimis.o build/meter_vario451.o build/meter_waterstarm.o build/meter_whe46x.o build/meter_whe5x.o build/meter_sensostar.o build/meter_gransystems_ccx01.o build/meter_lse_08.o build/meter_weh_07.o build/main.o -lrtlsdr -lusb-1.0 -lpthread g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/admin.cc -c -E > build/admin.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/admin.cc -MMD -c -o build/admin.o g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/ui.cc -c -E > build/ui.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/ui.cc -MMD -c -o build/ui.o g++ -o build/wmbusmeters-admin build/aes.o build/aescmac.o build/bus.o build/cmdline.o build/config.o build/dvparser.o build/mbus_rawtty.o build/meters.o build/manufacturer_specificities.o build/printer.o build/rtlsdr.o build/serial.o build/shell.o build/sha256.o build/threads.o build/util.o build/units.o build/wmbus.o build/meter_auto.o build/meter_unknown.o build/meter_amiplus.o build/wmbus_amb8465.o build/wmbus_im871a.o build/wmbus_cul.o build/wmbus_rtlwmbus.o build/wmbus_rtl433.o build/wmbus_simulator.o build/wmbus_rawtty.o build/wmbus_rc1180.o build/wmbus_utils.o build/meter_apator08.o build/meter_apator162.o build/meter_cma12w.o build/meter_compact5.o build/meter_ebzwmbe.o build/meter_ehzp.o build/meter_esyswm.o build/meter_elf.o build/meter_em24.o build/meter_emerlin868.o build/meter_ev200.o build/meter_evo868.o build/meter_eurisii.o build/meter_fhkvdataiii.o build/meter_fhkvdataiv.o build/meter_flowiq2200.o build/meter_hydrus.o build/meter_hydrocalm3.o build/meter_hydrodigit.o build/meter_ei6500.o build/meter_iperl.o build/meter_izar.o build/meter_izar3.o build/meter_lansendw.o build/meter_lansensm.o build/meter_lansenth.o build/meter_lansenpu.o build/meter_mkradio3.o build/meter_mkradio4.o build/meter_multical21.o build/meter_multical302.o build/meter_multical403.o build/meter_multical603.o build/meter_multical803.o build/meter_omnipower.o build/meter_piigth.o build/meter_q400.o build/meter_qcaloric.o build/meter_rfmamb.o build/meter_rfmtx1.o build/meter_sharky.o build/meter_supercom587.o build/meter_sontex868.o build/meter_topaseskr.o build/meter_tsd2.o build/meter_ultrimis.o build/meter_vario451.o build/meter_waterstarm.o build/meter_whe46x.o build/meter_whe5x.o build/meter_sensostar.o build/meter_gransystems_ccx01.o build/meter_lse_08.o build/meter_weh_07.o build/admin.o build/ui.o -lmenu -lform -lncurses -lrtlsdr -lusb-1.0 -lpthread g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/testinternals.cc -c -E > build/testinternals.o.src g++ -Os -fPIC -std=c++11 -Wall -Werror=format-security -Ibuild src/testinternals.cc -MMD -c -o build/testinternals.o g++ -o build/testinternals build/aes.o build/aescmac.o build/bus.o build/cmdline.o build/config.o build/dvparser.o build/mbus_rawtty.o build/meters.o build/manufacturer_specificities.o build/printer.o build/rtlsdr.o build/serial.o build/shell.o build/sha256.o build/threads.o build/util.o build/units.o build/wmbus.o build/meter_auto.o build/meter_unknown.o build/meter_amiplus.o build/wmbus_amb8465.o build/wmbus_im871a.o build/wmbus_cul.o build/wmbus_rtlwmbus.o build/wmbus_rtl433.o build/wmbus_simulator.o build/wmbus_rawtty.o build/wmbus_rc1180.o build/wmbus_utils.o build/meter_apator08.o build/meter_apator162.o build/meter_cma12w.o build/meter_compact5.o build/meter_ebzwmbe.o build/meter_ehzp.o build/meter_esyswm.o build/meter_elf.o build/meter_em24.o build/meter_emerlin868.o build/meter_ev200.o build/meter_evo868.o build/meter_eurisii.o build/meter_fhkvdataiii.o build/meter_fhkvdataiv.o build/meter_flowiq2200.o build/meter_hydrus.o build/meter_hydrocalm3.o build/meter_hydrodigit.o build/meter_ei6500.o build/meter_iperl.o build/meter_izar.o build/meter_izar3.o build/meter_lansendw.o build/meter_lansensm.o build/meter_lansenth.o build/meter_lansenpu.o build/meter_mkradio3.o build/meter_mkradio4.o build/meter_multical21.o build/meter_multical302.o build/meter_multical403.o build/meter_multical603.o build/meter_multical803.o build/meter_omnipower.o build/meter_piigth.o build/meter_q400.o build/meter_qcaloric.o build/meter_rfmamb.o build/meter_rfmtx1.o build/meter_sharky.o build/meter_supercom587.o build/meter_sontex868.o build/meter_topaseskr.o build/meter_tsd2.o build/meter_ultrimis.o build/meter_vario451.o build/meter_waterstarm.o build/meter_whe46x.o build/meter_whe5x.o build/meter_sensostar.o build/meter_gransystems_ccx01.o build/meter_lse_08.o build/meter_weh_07.o build/testinternals.o -lrtlsdr -lusb-1.0 -lpthread Building 1.2.0-21-ga26bac3 OK: test internals OK: Test C1 meters OK json: Test T1 meters OK fields: Test T1 meters OK json: Test S1 meters OK fields: Test S1 meters OK: Test meter with unknown driver OK json: Test naughty non-compliant apator162 meters OK fields: Test naughty non-compliant apator162 meters OK json: Test Izars meters OK: Test listen to all izars OK: Test aes encrypted telegrams OK: Test that failed decryption warning only prints once. OK: Test shell invocation OK: Test shell in config file OK: Test that normal meterfiles are written OK: Test that meterfiles with name-id are written OK: Test that meterfiles with id are written OK: Test that meterfiles with timestamps are written OK: Test that meterfiles with timestamps are written OK: Test normal config files with C1 meters OK: Test logfile OK: Test single meter conf file matches any id OK: Test listen and print any meter heard in logfile OK: Test listen and print any meter heard on stdout OK: Test detection of drivers for all telegrams OK: Test listen to wildcard * id OK: Test listen to wildcard suffix 8856* id OK: Test listen to two comma separted ids OK: Test listen to three comma separted ids OK: Test listen with negated ids OK: Test listen with wrong driver and wildcard OK: Test conversions of units OK: Test selected fields OK: Test oneshot OK: Test wrong keys OK: Test config4 with added conversions OK: Test that listen to t1+c1 works with meters transmitting using t1+c1 OK: Test that listen to t1+c1 works with meters transmitting using t1+c1 OK: Test that setting supercom587 to c1 fails OK: Test additional json from cmdline OK: Test additional shell envs from cmdline OK: Test additional json from wmbusmeters.conf and from meter file OK: Test rtlwmbus starting background script to produce telegrams OK: Reading binary telegram from stdin OK: Reading binary telegram from file OK: Reading rtlwmbus formatted telegrams from stdin OK: Reading rtlwmbus formatted telegrams from file OK: Reading rtl433 formatted telegrams from stdin OK: Reading rtl433 formatted telegrams from file OK: Test ok serial rawtty telegram on stdin OK: Test bad serial rawtty telegram with interspersed noise, on stdin OK: Test duplicates are ignored OK: Test duplicates are left alone OK: Test match on dll id OK: Test match on tpl id OK: Test log timestamps Slower tests... OK: reading all stdin before closing down RUNNING Test alarms ... STDERR--------------------------------- [ALARM DeviceInactivity] 4 seconds of inactivity resetting simulations/simulation_alarm.txt simulation (timeout 4s expected mon-sun(00-23) now 2021-04-01 12:35) (wmbus) successfully reset wmbus device STDOUT--------------------------------- TMP/OUTPUT----------------------------- METER =={"media":"cold water","meter":"multical21","name":"Water","id":"76348799","total_m3":6.408,"target_m3":6.408,"max_flow_m3h":0,"flow_temperature_c":127,"external_temperature_c":19,"current_status":"DRY","time_dry":"22-31 days","time_reversed":"","time_leaking":"","time_bursting":"","timestamp":"2021-04-01T10:35:32Z"}== METER =={"media":"cold water","meter":"multical21","name":"Water","id":"76348799","total_m3":6.408,"target_m3":6.408,"max_flow_m3h":0,"flow_temperature_c":127,"external_temperature_c":19,"current_status":"DRY","time_dry":"22-31 days","time_reversed":"","time_leaking":"","time_bursting":"","timestamp":"2021-04-01T10:35:38Z"}== TMP/ALARM------------------------------ ALARM_SHELL DeviceInactivity [ALARM DeviceInactivity] 4 seconds of inactivity resetting simulations/simulation_alarm.txt simulation (timeout 4s expected mon-sun(00-23) now 2021-04-01 12:35) --------------------------------------- OK: Test alarms All tests ok! pi@raspberrypi:~/wmbusmeters/wmbusmeters $ sudo systemctl stop wmbusmeters Warning: The unit file, source configuration file or drop-ins of wmbusmeters.service changed on disk. Run 'systemctl daemon-reload' to reload units. pi@raspberrypi:~/wmbusmeters/wmbusmeters $
und weiter:
pi@raspberrypi:~/wmbusmeters/wmbusmeters $ sudo systemctl stop wmbusmeters Warning: The unit file, source configuration file or drop-ins of wmbusmeters.service changed on disk. Run 'systemctl daemon-reload' to reload units. pi@raspberrypi:~/wmbusmeters/wmbusmeters $ sudo systemctl daemon-reload pi@raspberrypi:~/wmbusmeters/wmbusmeters $ sudo systemctl stop wmbusmeters pi@raspberrypi:~/wmbusmeters/wmbusmeters $ sudo systemctl start wmbumeters Failed to start wmbumeters.service: Unit wmbumeters.service not found. pi@raspberrypi:~/wmbusmeters/wmbusmeters $ sudo systemctl start wmbusmeters Failed to start wmbusmeters.service: Unit wmbusmeters.service not found. pi@raspberrypi:~/wmbusmeters/wmbusmeters $ cd pi@raspberrypi:~ $ sudo systemctl start wmbusmeters Failed to start wmbusmeters.service: Unit wmbusmeters.service not found. pi@raspberrypi:~ $ systemctl status wmbusmeters.service ● wmbusmeters.service Loaded: not-found (Reason: Unit wmbusmeters.service not found.) Active: failed (Result: exit-code) since Thu 2021-04-01 11:17:02 CEST; 1h 24min ago Main PID: 16262 (code=exited, status=1/FAILURE) Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Service RestartSec=1s expired, scheduling restart. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Scheduled restart job, restart counter is at 3. Apr 01 11:17:02 raspberrypi systemd[1]: Stopped "wmbusmeters service". Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Start request repeated too quickly. Apr 01 11:17:02 raspberrypi systemd[1]: wmbusmeters.service: Failed with result 'exit-code'. Apr 01 11:17:02 raspberrypi systemd[1]: Failed to start "wmbusmeters service". pi@raspberrypi:~ $