[vz-users] Q3C Zähler mit Weidmann Lesekopf
Claus Beckenbauer
mail at claus-beckenbauer.de
Thu Oct 12 15:39:12 CEST 2017
Hallo Knut,
so sieht die Konfig des Q3C bei mir aus
"meters": [
{
"enabled": true,
"allowskip": false,
"interval": -1,
"aggtime": 180,
"aggfixedinterval": false,
"channels": [
{
"uuid": "09927460-bd94-11e6-ae21-9bcff4077fae",
"identifier": "1-1:1.8.0",
"api": "volkszaehler",
"middleware": "<http://localhost/volkszaehler/middleware.php>",
"aggmode": "none",
"duplicates": 900
}
],
"protocol": "sml",
"device": "/dev/ttyUSB1",
"pullseq": "1b1b1b1b010101017603303062006200726500000100770101093131333131383632010101016303360076033031620062007265000007007501010101016314cb007603303262006200726500000200710163756d0000001b1b1b1b1a027241",
"baudrate": 9600,
"parity": "8n1",
"use_local_time": true
}]
Am 12. Oktober 2017 um 15:25:36 +02:00, hat Knut Auffahrt <knut.auffahrt at t-online.de> geschrieben:
> Hallo Claus,
>
> danke für die Rückmeldung.
> Ich habe local:{"enabled":true} gesetzt. Jetzt zieht der Logger zumindest wieder daten vom Zähler und sortiert die auch in den DB ein. Allerdings scheint das überschreiben des Zeitwertes bei mir nicht zu klappen. Wie du beschreibts, ist auch bei mir die Zeit des Zählers weit in der Vergangenheit. Dieser Wert wird so in die DB geschrieben, unabhängig davon ob use_local_time auf true oder false steht.
> Frank hatte mir den Hinweis gegeben, das diese Einstellung unter Meters stehen muss. Ich hatte die zuerst in dem Bereich, wo die Schnittstelle beschrieben wird (ohne Erfolg) und jetzt habe ich diese nach oben zu Meters kopiert, leider auch ohne Erfolg.
> Wo steht der Eintrag bei dir?
>
> Zudem hängt sich der vzlogger immer nach dem Auslesen auf. Bei einem Großteil der Neustarts des vzloggers liest er zumindest Daten vom Zähler. Habe ich hier einen Gedankenfehler, dass der Logger immer wieder angestoßen werden soll/muss?
>
> Auszug aus vzlogger.conf
> "meters": [
> {
> "enabled": true,
> "allowskip": false,
> "interval": -1,
> "aggtime": -1,
> "aggfixedinterval": false,
> "use_local_time": true,
>
>
>
> Von:volkszaehler-users [mailto:volkszaehler-users-bounces at demo.volkszaehler.org] Im Auftrag vonClaus Beckenbauer
> Gesendet: Donnerstag, 12. Oktober 2017 14:41
> An: volkszaehler.org - users <volkszaehler-users at demo.volkszaehler.org>
> Betreff: Re: [vz-users] Q3C Zähler mit Weidmann Lesekopf
>
>
> Hallo Knut,
>
>
>
> das Problem kommt mir bekannt vor....
>
> Zu dem Thema hatte ich auch mal ein Issue angelegt: <https://github.com/volkszaehler/vzlogger/issues/284>
>
>
>
> Ich sehe das Problem sporadisch nach Neustart des vzloggers / raspis.
>
> Zusätzlich beobachte ich bei mir, dass das Phänomen gefühlt selten bis gar nicht auftritt, wenn ich verbosity auf 15stelle und local:{"enabled":true} auf setze. Ich sehe, oder bilde mir zumindest ein, dass es eine race condition beim starten von vzlogger (initialisieren / oeffnen ttyUSB0, senden der Pull-Sequenz ...) gibt.
>
>
>
> Zur Konfiguration noch der Hinweis. Mein Q3C hat eine Uhrzeit die weit in der Vergangenheit liegt. use_local_time ist daher bei mir auf true. Das wäre zumindest für die Inbetriebnahme IMHO zu empfehlen.
>
>
>
>
>
> Am 12. Oktober 2017 um 11:51:11 +02:00, hat Knut Auffahrt <<knut.auffahrt at t-online.de>> geschrieben:
>
> > Hallo Udo, hallo Frank,
> >
> > vielen Dank für die schnelle Antwort.
> >
> > Beide Wiki Einträge kenne ich und habe diese bei der Installation penibel beachtet. Leider funktionierte das System dann nicht. Darauf habe ich mich im Wiki und in den Mailinglisten über mögliche Fehlerquellen informiert.
> >
> > Ich habe jetzt das System noch mal komplett neu aufgesetzt, auf eine andere Speicherkarte.
> > Nach dem ersten Start des vzloggers sendet und empfängt der IR Kopf etwas (xxd </dev/ttyUSB0). In der Logdatei wird dies nicht entsprechend protokolliert.
> > Der vzlogger bleibt zudem nach dem Start (nach Log Datei) „hängen“. Erst wenn der vzlogger gestoppt und dann wieder gestartet wird, ergibt sich der nächste Eintrag. Allerdings kommen nach der Log Datei keine Daten an. Auch ein Neustart des Systems ändert dieses Verhalten nicht.
> >
> > Anbei die vzlogger.conf und die Logdatei.
> >
> > {
> > "retry": 0,
> > "daemon": true,
> > "verbosity": 15,
> > "log": "/var/log/vzlogger.log",
> > "local": {
> > "enabled": false,
> > "port": 8080,
> > "index": true,
> > "timeout": 0,
> > "buffer": 0
> > },
> > "meters": [
> > {
> > "enabled": true,
> > "allowskip": false,
> > "interval": -1,
> > "aggtime": -1,
> > "aggfixedinterval": false,
> > "channels": [
> > {
> > "uuid": "168a5450-af2c-11e7-bf64-5fba6b1354f5",
> > "identifier": "1.8.0",
> > "api": "volkszaehler",
> > "middleware": "<http://localhost/middleware.php>",
> > "aggmode": "none",
> > "duplicates": 0
> > },
> > {
> > "uuid": "23324d40-af2c-11e7-a320-176f3424f601",
> > "identifier": "2.8.0",
> > "api": "volkszaehler",
> > "middleware": "<http://localhost/middleware.php>",
> > "aggmode": "none",
> > "duplicates": 0
> > }
> > ],
> > "protocol": "sml",
> > "device": "/dev/ttyUSB0",
> > "pullseq": "1b1b1b1b010101017603303062006200726500000100770101093131333131383632010101016303360076033031620062007265000007007501010101016314cb007603303262006200726500000200710163756d0000001b1b1b1b1a027241",
> > "baudrate": 9600,
> > "parity": "8n1",
> > "use_local_time": false
> > }
> > ]
> > }
> >
> >
> > [Oct 12 11:06:16] MapContainer::quit terminating on signal 15.
> > [Oct 12 11:06:16] Closing connections to terminate
> > [Oct 12 11:06:16][main] MeterMap::cancel entered...
> > [Oct 12 11:06:16][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:06:16][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:06:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:17][s0] Counter thread stopped with 0 imp
> > [Oct 12 11:06:17][main] MeterMap::cancel finished.
> > [Oct 12 11:06:17][main] MeterMap::cancel entered...
> > [Oct 12 11:06:17][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:06:17][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:06:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:18][s0] Counter thread stopped with 0 imp
> > [Oct 12 11:06:18][main] MeterMap::cancel finished.
> > [Oct 12 11:06:18][main] MeterMap::cancel entered...
> > [Oct 12 11:06:18][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:06:18][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:06:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:19][s0] Counter thread stopped with 0 imp
> > [Oct 12 11:06:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:19][main] MeterMap::cancel finished.
> > [Oct 12 11:06:19][main] MeterMap::cancel entered...
> > [Oct 12 11:06:19][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:06:19][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:06:20][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:20][s0] Counter thread stopped with 0 imp
> > [Oct 12 11:06:20][main] MeterMap::cancel finished.
> > [Oct 12 11:06:20][main] MeterMap::cancel entered...
> > [Oct 12 11:06:20][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:06:20][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:06:20][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:20][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:20][s0] Counter thread stopped with 0 imp
> > [Oct 12 11:06:20][main] MeterMap::cancel finished.
> > [Oct 12 11:06:20][main] MeterMap::cancel entered...
> > [Oct 12 11:06:20][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:06:20][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:06:21][S0] MeterS0:HWIF_GPIO:first poll returned 0
> > [Oct 12 11:06:21][s0] Counter thread stopped with 0 imp
> > [Oct 12 11:06:21][main] MeterMap::cancel finished.
> > [Oct 12 11:06:21][main] MeterMap::cancel entered...
> > [Oct 12 11:06:21][main] MeterMap::cancel finished.
> > [Oct 12 11:06:21][main] MapContainer::quit finished.
> > [Oct 12 11:06:21][] Server stopped.
> > [Oct 12 11:06:21][] Trying to delete curlSessionProvider...
> > [Oct 12 11:06:21][] deleted curlSessionProvider
> > [Oct 12 11:08:16][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > [Oct 12 11:08:16][mtr0] Creating new meter with protocol sml.
> > [Oct 12 11:08:16][sml] pullseq len:96 found
> > [Oct 12 11:08:16][mtr0] Meter configured, enabled.
> > [Oct 12 11:08:16] New meter initialized (protocol=sml)
> > [Oct 12 11:08:16] Configure channel.
> > [Oct 12 11:08:16][chn0] New channel initialized (uuid=...1354f5 api=volkszaehler id=1.8.0)
> > [Oct 12 11:08:16] Configure channel.
> > [Oct 12 11:08:16][chn1] New channel initialized (uuid=...24f601 api=volkszaehler id=2.8.0)
> > [Oct 12 11:08:16] Have 1 meters.
> > [Oct 12 11:08:16][main] log level is 15
> > [Oct 12 11:08:16][main] daemon=1, local=0
> > [Oct 12 11:08:16] Daemonize process...
> > [Oct 12 11:08:16] Opened logfile /var/log/vzlogger.log
> > [Oct 12 11:08:16][push] No pushDataServer defined.
> > [Oct 12 11:08:16][] ===> Start meters
> > [Oct 12 11:08:16][mtr0] Meter connection established
> > [Oct 12 11:08:16][mtr0] Meter thread started
> > [Oct 12 11:08:16][mtr0] Meter is opened. Starting channels.
> > [Oct 12 11:08:16][mtr0] Number of readers: 32
> > [Oct 12 11:08:16][chn0] Logging thread started
> > [Oct 12 11:08:16][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:08:16][mtr0] Config.daemon: 1
> > [Oct 12 11:08:16][chn1] Logging thread started
> > [Oct 12 11:08:16][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:08:16][] Startup done.
> > [Oct 12 11:08:16][mtr0] Config.local: 0
> > [Oct 12 11:08:16][sml] sending pullsequenz send (len:96 is:96).
> > [Oct 12 11:08:16][chn0] Using default volkszaehler api.
> > [Oct 12 11:08:16][chn1] Using default volkszaehler api.
> > [Oct 12 11:08:16][mtr0] Got 0 new readings from meter:
> > [Oct 12 11:08:16][chn0] ==> number of tuples: 0
> > [Oct 12 11:08:16][sml] sending pullsequenz send (len:96 is:96).
> > [Oct 12 11:08:16][chn0] JSON request body is null. Nothing to send now.
> > [Oct 12 11:08:16][chn1] ==> number of tuples: 0
> > [Oct 12 11:08:16][chn1] JSON request body is null. Nothing to send now.
> > [Oct 12 11:10:06] MapContainer::quit terminating on signal 15.
> > [Oct 12 11:10:06] Closing connections to terminate
> > [Oct 12 11:10:06][main] MeterMap::cancel entered...
> > [Oct 12 11:10:06][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:10:06][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:10:06][main] MeterMap::cancel finished.
> > [Oct 12 11:10:06][main] MapContainer::quit finished.
> > [Oct 12 11:10:06][] Server stopped.
> > [Oct 12 11:10:06][] Trying to delete curlSessionProvider...
> > [Oct 12 11:10:06][] deleted curlSessionProvider
> > [Oct 12 11:10:11][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > [Oct 12 11:10:11][mtr0] Creating new meter with protocol sml.
> > [Oct 12 11:10:11][sml] pullseq len:96 found
> > [Oct 12 11:10:11][mtr0] Meter configured, enabled.
> > [Oct 12 11:10:11] New meter initialized (protocol=sml)
> > [Oct 12 11:10:11] Configure channel.
> > [Oct 12 11:10:11][chn0] New channel initialized (uuid=...1354f5 api=volkszaehler id=1.8.0)
> > [Oct 12 11:10:11] Configure channel.
> > [Oct 12 11:10:11][chn1] New channel initialized (uuid=...24f601 api=volkszaehler id=2.8.0)
> > [Oct 12 11:10:11] Have 1 meters.
> > [Oct 12 11:10:11][main] log level is 15
> > [Oct 12 11:10:11][main] daemon=1, local=0
> > [Oct 12 11:10:11] Daemonize process...
> > [Oct 12 11:10:11] Opened logfile /var/log/vzlogger.log
> > [Oct 12 11:10:11][push] No pushDataServer defined.
> > [Oct 12 11:10:11][] ===> Start meters
> > [Oct 12 11:10:11][mtr0] Meter connection established
> > [Oct 12 11:10:11][mtr0] Meter thread started
> > [Oct 12 11:10:11][mtr0] Meter is opened. Starting channels.
> > [Oct 12 11:10:11][mtr0] Number of readers: 32
> > [Oct 12 11:10:11][chn0] Logging thread started
> > [Oct 12 11:10:11][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:10:11][mtr0] Config.daemon: 1
> > [Oct 12 11:10:11][chn1] Logging thread started
> > [Oct 12 11:10:11][mtr0] Config.local: 0
> > [Oct 12 11:10:11][] Startup done.
> > [Oct 12 11:10:11][sml] sending pullsequenz send (len:96 is:96).
> > [Oct 12 11:10:11][chn0] Using default volkszaehler api.
> > [Oct 12 11:10:11][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:10:11][chn1] Using default volkszaehler api.
> > [Oct 12 11:15:43] MapContainer::quit terminating on signal 15.
> > [Oct 12 11:15:43] Closing connections to terminate
> > [Oct 12 11:15:43][main] MeterMap::cancel entered...
> > [Oct 12 11:15:43][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:15:43][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:15:43][main] MeterMap::cancel finished.
> > [Oct 12 11:15:43][main] MapContainer::quit finished.
> > [Oct 12 11:15:43][] Server stopped.
> > [Oct 12 11:15:43][] Trying to delete curlSessionProvider...
> > [Oct 12 11:15:43][] deleted curlSessionProvider
> > [Oct 12 11:15:46][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > [Oct 12 11:15:46][mtr0] Creating new meter with protocol sml.
> > [Oct 12 11:15:46][sml] pullseq len:96 found
> > [Oct 12 11:15:46][mtr0] Meter configured, enabled.
> > [Oct 12 11:15:46] New meter initialized (protocol=sml)
> > [Oct 12 11:15:46] Configure channel.
> > [Oct 12 11:15:46][chn0] New channel initialized (uuid=...1354f5 api=volkszaehler id=1.8.0)
> > [Oct 12 11:15:46] Configure channel.
> > [Oct 12 11:15:46][chn1] New channel initialized (uuid=...24f601 api=volkszaehler id=2.8.0)
> > [Oct 12 11:15:46] Have 1 meters.
> > [Oct 12 11:15:46][main] log level is 15
> > [Oct 12 11:15:46][main] daemon=1, local=0
> > [Oct 12 11:15:46] Daemonize process...
> > [Oct 12 11:15:46] Opened logfile /var/log/vzlogger.log
> > [Oct 12 11:15:46][push] No pushDataServer defined.
> > [Oct 12 11:15:46][] ===> Start meters
> > [Oct 12 11:15:46][mtr0] Meter connection established
> > [Oct 12 11:15:46][mtr0] Meter thread started
> > [Oct 12 11:15:46][mtr0] Meter is opened. Starting channels.
> > [Oct 12 11:15:46][mtr0] Number of readers: 32
> > [Oct 12 11:15:46][chn0] Logging thread started
> > [Oct 12 11:15:46][mtr0] Config.daemon: 1
> > [Oct 12 11:15:46][mtr0] Config.local: 0
> > [Oct 12 11:15:46][chn1] Logging thread started
> > [Oct 12 11:15:46][] Startup done.
> > [Oct 12 11:15:46][sml] sending pullsequenz send (len:96 is:96).
> > [Oct 12 11:15:46][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:15:46][chn0] Using default volkszaehler api.
> > [Oct 12 11:15:46][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:15:46][chn1] Using default volkszaehler api.
> > [Oct 12 11:41:24] MapContainer::quit terminating on signal 15.
> > [Oct 12 11:41:24] Closing connections to terminate
> > [Oct 12 11:41:24][main] MeterMap::cancel entered...
> > [Oct 12 11:41:24][main] MeterMap::cancel wait for readingthread
> > [Oct 12 11:41:24][main] MeterMap::cancel wait for meter::close
> > [Oct 12 11:41:24][main] MeterMap::cancel finished.
> > [Oct 12 11:41:24][main] MapContainer::quit finished.
> > [Oct 12 11:41:24][] Server stopped.
> > [Oct 12 11:41:24][] Trying to delete curlSessionProvider...
> > [Oct 12 11:41:24][] deleted curlSessionProvider
> > [Oct 12 11:41:28][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > [Oct 12 11:41:28][mtr0] Creating new meter with protocol sml.
> > [Oct 12 11:41:28][sml] pullseq len:96 found
> > [Oct 12 11:41:28][mtr0] Meter configured, enabled.
> > [Oct 12 11:41:28] New meter initialized (protocol=sml)
> > [Oct 12 11:41:28] Configure channel.
> > [Oct 12 11:41:28][chn0] New channel initialized (uuid=...1354f5 api=volkszaehler id=1.8.0)
> > [Oct 12 11:41:28] Configure channel.
> > [Oct 12 11:41:28][chn1] New channel initialized (uuid=...24f601 api=volkszaehler id=2.8.0)
> > [Oct 12 11:41:28] Have 1 meters.
> > [Oct 12 11:41:28][main] log level is 15
> > [Oct 12 11:41:28][main] daemon=1, local=0
> > [Oct 12 11:41:28] Daemonize process...
> > [Oct 12 11:41:28] Opened logfile /var/log/vzlogger.log
> > [Oct 12 11:41:28][push] No pushDataServer defined.
> > [Oct 12 11:41:28][] ===> Start meters
> > [Oct 12 11:41:28][mtr0] Meter connection established
> > [Oct 12 11:41:28][mtr0] Meter thread started
> > [Oct 12 11:41:28][mtr0] Meter is opened. Starting channels.
> > [Oct 12 11:41:28][mtr0] Number of readers: 32
> > [Oct 12 11:41:28][mtr0] Config.daemon: 1
> > [Oct 12 11:41:28][chn0] Logging thread started
> > [Oct 12 11:41:28][mtr0] Config.local: 0
> > [Oct 12 11:41:28][sml] sending pullsequenz send (len:96 is:96).
> > [Oct 12 11:41:28][chn1] Logging thread started
> > [Oct 12 11:41:28][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:41:28][] Startup done.
> > [Oct 12 11:41:28][chn0] Using default volkszaehler api.
> > [Oct 12 11:41:28][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > [Oct 12 11:41:28][chn1] Using default volkszaehler api.
> >
> > Von:volkszaehler-users [mailto:volkszaehler-users-bounces at demo.volkszaehler.org <volkszaehler-users-bounces at demo.volkszaehler.org>] Im Auftrag vonFrank RichterGesendet: Donnerstag, 12. Oktober 2017 09:45
> > An: volkszaehler.org - users <<volkszaehler-users at demo.volkszaehler.org>>
> > Betreff: Re: [vz-users] Q3C Zähler mit Weidmann Lesekopf
> >
> >
> > Moin Knut,
> >
> >
> >
> > die Option "use_local_time" gehört zum meter, nicht zum channel.
> >
> >
> >
> > Grüße
> >
> > Frank
> >
> >
> >
> >
> > Am 12.10.2017 07:39 schrieb "Knut Auffahrt" <<knut.auffahrt at t-online.de>>:
> >
> > > Hallo Frank,
> > >
> > > das mit der Timestamp klingt logisch. Dann wäre der Zähler irden wo im Jahr 1974. Dann müsste das durch das MeterSML.cpp richtig rausgefiltert werden, das funktioniert scheinbar nicht.
> > >
> > > An den Dateien /etc/rc.local und /etc/vzlogger.conf habe ich nach der Anleitung und diversen Foreneinträgen Änderungen durchgeführt.
> > > Anbei der Inhalt der Dateien und ein Auszug aus der Logdatei. Die Logdatei fängt mit einem Neustart des Systems an und dann mit einem Restart des vzloggers jede Minute.
> > >
> > > rc.local
> > > #!/bin/sh -e
> > > #
> > > # rc.local
> > > #
> > > # This script is executed at the end of each multiuser runlevel.
> > > # Make sure that the script will "exit 0" on success or any other
> > > # value on error.
> > > #
> > > # In order to enable or disable this script just change the execution
> > > # bits.
> > > #
> > > # By default this script does nothing.
> > >
> > > # Print the IP address
> > > _IP=$(hostname -I) || true
> > > if [ "$_IP" ]; then
> > > printf "My IP address is %s\n" "$_IP"
> > > fi
> > >
> > > # Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.
> > >
> > > #echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device
> > >
> > > # Register I2C RTC bei grosser neuer Erweiterung
> > > #echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device
> > >
> > > # GPIOs exportieren und Datenrichtung einstellen, 'Schaltausgang_new'
> > > #echo 24 > /sys/class/gpio/export
> > > #echo 25 > /sys/class/gpio/export
> > > #echo out > /sys/class/gpio/gpio24/direction
> > > #echo out > /sys/class/gpio/gpio25/direction
> > >
> > > # hwclock -s
> > >
> > > #vzlogger starten
> > > sudo vzlogger -d
> > >
> > > exit 0
> > >
> > >
> > > vzlogger.conf
> > >
> > > {
> > > "retry": 0,
> > > "daemon": true,
> > > "verbosity": 15,
> > > "log": "/var/log/vzlogger.log",
> > > "local": {
> > > "enabled": false,
> > > "port": 8080,
> > > "index": false,
> > > "timeout": 0,
> > > "buffer": 0
> > > },
> > > "meters": [
> > > {
> > > "enabled": true,
> > > "allowskip": false,
> > > "interval": -1,
> > > "aggtime": -1,
> > > "aggfixedinterval": false,
> > > "channels": [
> > > {
> > > "uuid": "dfd3c5a0-acf2-11e7-a8fe-3dd93a57cad0",
> > > "identifier": "1-1:1.8.0",
> > > "api": "volkszaehler",
> > > "middleware": "<http://127.0.0.1/middleware.php>",
> > > "type": "device",
> > > "aggmode": "none",
> > > "duplicates": 0,
> > > "use_local_time": true
> > > },
> > > {
> > > "uuid": "5bb63a80-ae48-11e7-8917-1f172e0bb264",
> > > "identifier": "1-2:2.8.0",
> > > "api": "volkszaehler",
> > > "middleware": "<http://127.0.0.1/middleware.php>",
> > > "type": "device",
> > > "aggmode": "none",
> > > "duplicates": 0,
> > > "use_local_time": true
> > > }
> > > ],
> > > "protocol": "sml",
> > > "device": "/dev/ttyUSB0",
> > > "pullseq": "1B1B1B1B010101017603303062006200726500000100770101093131333131383632010101016303360076033031620062007265000007007501010101016314CB007603303262006200726500000200710163756D0000001B1B1B1B1A027241",
> > > "baudrate": 9600,
> > > "parity": "8n1"
> > > }
> > > ]
> > > }
> > >
> > > Vzlogger.log
> > > [Oct 12 07:20:01] MapContainer::quit terminating on signal 15.
> > > [Oct 12 07:20:01] Closing connections to terminate
> > > [Oct 12 07:20:01][main] MeterMap::cancel entered...
> > > [Oct 12 07:20:01][main] MeterMap::cancel wait for readingthread
> > > [Oct 12 07:20:01][main] MeterMap::cancel wait for meter::close
> > > [Oct 12 07:20:01][main] MeterMap::cancel finished.
> > > [Oct 12 07:20:01][main] MapContainer::quit finished.
> > > [Oct 12 07:20:01][] Server stopped.
> > > [Oct 12 07:20:01][] Trying to delete curlSessionProvider...
> > > [Oct 12 07:20:01][] deleted curlSessionProvider
> > > [Oct 12 07:20:01] MapContainer::quit terminating on signal 15.
> > > [Oct 12 07:20:01] Closing connections to terminate
> > > [Oct 12 07:20:01][main] MeterMap::cancel entered...
> > > [Oct 12 07:20:01][main] MeterMap::cancel wait for readingthread
> > > [Oct 12 07:20:01][main] MeterMap::cancel wait for meter::close
> > > [Oct 12 07:20:01][main] MeterMap::cancel finished.
> > > [Oct 12 07:20:01][main] MapContainer::quit finished.
> > > [Oct 12 07:20:01][] Server stopped.
> > > [Oct 12 07:20:01][] Trying to delete curlSessionProvider...
> > > [Oct 12 07:20:01][] deleted curlSessionProvider
> > > [Oct 12 07:20:17][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > > [Oct 12 07:20:17][mtr0] Creating new meter with protocol sml.
> > > [Oct 12 07:20:17][sml] pullseq len:96 found
> > > [Oct 12 07:20:17][mtr0] Meter configured, enabled.
> > > [Oct 12 07:20:17] New meter initialized (protocol=sml)
> > > [Oct 12 07:20:17] Configure channel.
> > > [Oct 12 07:20:17][chn0] New channel initialized (uuid=...57cad0 api=volkszaehler id=1-1:1.8.0)
> > > [Oct 12 07:20:17] Configure channel.
> > > [Oct 12 07:20:17][chn1] New channel initialized (uuid=...0bb264 api=volkszaehler id=1-2:2.8.0)
> > > [Oct 12 07:20:17] Have 1 meters.
> > > [Oct 12 07:20:17][main] log level is 15
> > > [Oct 12 07:20:17][main] daemon=1, local=0
> > > [Oct 12 07:20:17] Daemonize process...
> > > [Oct 12 07:20:17] Opened logfile /var/log/vzlogger.log
> > > [Oct 12 07:20:17][push] No pushDataServer defined.
> > > [Oct 12 07:20:17][] ===> Start meters
> > > [Oct 12 07:20:17][mtr0] Meter connection established
> > > [Oct 12 07:20:17][mtr0] Meter thread started
> > > [Oct 12 07:20:17][mtr0] Meter is opened. Starting channels.
> > > [Oct 12 07:20:17][chn0] Logging thread started
> > > [Oct 12 07:20:17][chn1] Logging thread started
> > > [Oct 12 07:20:17][] Startup done.
> > > [Oct 12 07:20:17][mtr0] Number of readers: 32
> > > [Oct 12 07:20:17][mtr0] Config.daemon: 1
> > > [Oct 12 07:20:17][mtr0] Config.local: 0
> > > [Oct 12 07:20:17][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:20:17][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:20:17][chn0] Using default volkszaehler api.
> > > [Oct 12 07:20:17][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:20:17][chn1] Using default volkszaehler api.
> > > [Oct 12 07:20:17][mtr0] Got 0 new readings from meter:
> > > [Oct 12 07:20:17][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:20:17][chn1] ==> number of tuples: 0
> > > [Oct 12 07:20:17][chn1] JSON request body is null. Nothing to send now.
> > > [Oct 12 07:20:17][chn0] ==> number of tuples: 0
> > > [Oct 12 07:20:17][chn0] JSON request body is null. Nothing to send now.
> > > [Oct 12 07:20:18][mtr0] Got 12 new readings from meter:
> > > [Oct 12 07:20:18][mtr0] Reading: id=0-0:96.8.0*255/ObisIdentifier:0-0:96.8.0*255 value=1432571690.00 ts=1507785618696
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.0*255/ObisIdentifier:1-1:1.8.0*255 value=20272310.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-2:2.8.0*255/ObisIdentifier:1-2:2.8.0*255 value=19486110.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.1*255/ObisIdentifier:1-1:1.8.1*255 value=20266560.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.2*255/ObisIdentifier:1-1:1.8.2*255 value=1110.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.3*255/ObisIdentifier:1-1:1.8.3*255 value=1120.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.4*255/ObisIdentifier:1-1:1.8.4*255 value=1130.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.5*255/ObisIdentifier:1-1:1.8.5*255 value=1130.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-1:1.8.6*255/ObisIdentifier:1-1:1.8.6*255 value=1260.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-2:2.8.7*255/ObisIdentifier:1-2:2.8.7*255 value=19484970.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-2:2.8.8*255/ObisIdentifier:1-2:2.8.8*255 value=1140.00 ts=143257169000
> > > [Oct 12 07:20:18][mtr0] Reading: id=1-0:96.5.5*255/ObisIdentifier:1-0:96.5.5*255 value=167840.00 ts=1507785618696
> > > [Oct 12 07:20:18][chn0] Adding reading to queue (value=20272310.00 ts=143257169000)
> > > [Oct 12 07:20:18][chn1] Adding reading to queue (value=19486110.00 ts=143257169000)
> > > [Oct 12 07:20:18][chn0] ==> number of tuples: 1
> > > [Oct 12 07:20:18][chn0] compare: 0 143257169000
> > > [Oct 12 07:20:18][chn0] copied 1/1 values for middleware transmission
> > > [Oct 12 07:20:18][chn0] JSON request body: [ [ 143257169000, 20272310 ] ]
> > > [Oct 12 07:20:18][chn0] CURL: Hostname was NOT found in DNS cache
> > > [Oct 12 07:20:18][chn0] CURL: Trying 127.0.0.1...
> > > [Oct 12 07:20:18][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:20:18][chn1] ==> number of tuples: 1
> > > [Oct 12 07:20:18][chn1] compare: 0 143257169000
> > > [Oct 12 07:20:18][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> > > [Oct 12 07:20:18][chn1] copied 1/1 values for middleware transmission
> > > [Oct 12 07:20:18][chn0] CURL: Sent 30 bytes..
> > > [Oct 12 07:20:18][chn0] CURL: Sent '[ [ 143257169000, 20272310 ] ]' bytes
> > > [Oct 12 07:20:18][chn0] CURL: upload completely sent off: 30 out of 30 bytes
> > > [Oct 12 07:20:18][mtr0] Got 0 new readings from meter:
> > > [Oct 12 07:20:18][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:20:20][chn0] CURL: Server Apache/2.4.10 (Raspbian) is not blacklisted
> > > [Oct 12 07:20:20][chn0] CURL: Closing connection 0
> > > [Oct 12 07:20:20][chn0] CURL Error from middleware: continue
> > > [Oct 12 07:20:20][chn1] JSON request body: [ [ 143257169000, 19486110 ] ]
> > > [Oct 12 07:20:20][chn0] Waiting 0 secs for next request due to previous failure
> > > [Oct 12 07:20:20][chn0] ==> number of tuples: 0
> > > [Oct 12 07:20:20][chn0] copied 1/1 values for middleware transmission
> > > [Oct 12 07:20:20][chn1] CURL: Hostname was found in DNS cache
> > > [Oct 12 07:20:20][chn1] CURL: Trying 127.0.0.1...
> > > [Oct 12 07:20:20][chn1] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#1)
> > > [Oct 12 07:20:20][chn1] CURL: Sent 30 bytes..
> > > [Oct 12 07:20:20][chn1] CURL: Sent '[ [ 143257169000, 19486110 ] ]' bytes
> > > [Oct 12 07:20:20][chn1] CURL: upload completely sent off: 30 out of 30 bytes
> > > [Oct 12 07:20:20][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > > [Oct 12 07:20:20][mtr0] Creating new meter with protocol sml.
> > > [Oct 12 07:20:20][sml] pullseq len:96 found
> > > [Oct 12 07:20:20][mtr0] Meter configured, enabled.
> > > [Oct 12 07:20:20] New meter initialized (protocol=sml)
> > > [Oct 12 07:20:20] Configure channel.
> > > [Oct 12 07:20:20][chn0] New channel initialized (uuid=...57cad0 api=volkszaehler id=1-1:1.8.0)
> > > [Oct 12 07:20:20] Configure channel.
> > > [Oct 12 07:20:20][chn1] New channel initialized (uuid=...0bb264 api=volkszaehler id=1-2:2.8.0)
> > > [Oct 12 07:20:20] Have 1 meters.
> > > [Oct 12 07:20:20][main] log level is 15
> > > [Oct 12 07:20:20][main] daemon=1, local=0
> > > [Oct 12 07:20:20] Daemonize process...
> > > [Oct 12 07:20:20] Opened logfile /var/log/vzlogger.log
> > > [Oct 12 07:20:20][push] No pushDataServer defined.
> > > [Oct 12 07:20:20][] ===> Start meters
> > > [Oct 12 07:20:20][mtr0] Meter connection established
> > > [Oct 12 07:20:20][mtr0] Meter thread started
> > > [Oct 12 07:20:20][mtr0] Meter is opened. Starting channels.
> > > [Oct 12 07:20:20][mtr0] Number of readers: 32
> > > [Oct 12 07:20:20][mtr0] Config.daemon: 1
> > > [Oct 12 07:20:20][mtr0] Config.local: 0
> > > [Oct 12 07:20:20][chn0] Logging thread started
> > > [Oct 12 07:20:20][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:20:20][chn1] Logging thread started
> > > [Oct 12 07:20:20][] Startup done.
> > > [Oct 12 07:20:20][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:20:20][chn0] Using default volkszaehler api.
> > > [Oct 12 07:20:20][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:20:20][chn1] Using default volkszaehler api.
> > > [Oct 12 07:20:21][chn1] CURL: HTTP 1.0, assume close after body
> > > [Oct 12 07:20:21][chn1] CURL: Received 26 bytes
> > > [Oct 12 07:20:21][chn1] CURL: Received '{"version":"0.3","rows":1}' bytes
> > > [Oct 12 07:20:21][chn1] CURL: Closing connection 1
> > > [Oct 12 07:20:21][chn1] CURL Request succeeded with code: 200
> > > [Oct 12 07:20:21][chn0] JSON request body: [ [ 143257169000, 20272310 ] ]
> > > [Oct 12 07:20:21][chn1] emptied all (1) values
> > > [Oct 12 07:20:21][chn1] ==> number of tuples: 0
> > > [Oct 12 07:20:21][chn1] JSON request body is null. Nothing to send now.
> > > [Oct 12 07:20:21][chn0] CURL: Hostname was found in DNS cache
> > > [Oct 12 07:20:21][chn0] CURL: Trying 127.0.0.1...
> > > [Oct 12 07:20:21][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#2)
> > > [Oct 12 07:20:21][chn0] CURL: Sent 30 bytes..
> > > [Oct 12 07:20:21][chn0] CURL: Sent '[ [ 143257169000, 20272310 ] ]' bytes
> > > [Oct 12 07:20:21][chn0] CURL: upload completely sent off: 30 out of 30 bytes
> > > [Oct 12 07:20:21][chn0] CURL: HTTP 1.0, assume close after body
> > > [Oct 12 07:20:21][chn0] CURL: Received 26 bytes
> > > [Oct 12 07:20:21][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes
> > > [Oct 12 07:20:21][chn0] CURL: Closing connection 2
> > > [Oct 12 07:20:21][chn0] CURL Request succeeded with code: 200
> > > [Oct 12 07:20:21][chn0] emptied all (1) values
> > > [Oct 12 07:21:08] MapContainer::quit terminating on signal 15.
> > > [Oct 12 07:21:08] Closing connections to terminate
> > > [Oct 12 07:21:08][main] MeterMap::cancel entered...
> > > [Oct 12 07:21:08][main] MeterMap::cancel wait for readingthread
> > > [Oct 12 07:21:08][main] MeterMap::cancel wait for meter::close
> > > [Oct 12 07:21:08][main] MeterMap::cancel finished.
> > > [Oct 12 07:21:08][main] MapContainer::quit finished.
> > > [Oct 12 07:21:08][] Server stopped.
> > > [Oct 12 07:21:08][] Trying to delete curlSessionProvider...
> > > [Oct 12 07:21:08][] deleted curlSessionProvider
> > > [Oct 12 07:21:08][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > > [Oct 12 07:21:09][mtr0] Creating new meter with protocol sml.
> > > [Oct 12 07:21:09][sml] pullseq len:96 found
> > > [Oct 12 07:21:09][mtr0] Meter configured, enabled.
> > > [Oct 12 07:21:09] New meter initialized (protocol=sml)
> > > [Oct 12 07:21:09] Configure channel.
> > > [Oct 12 07:21:09][chn0] New channel initialized (uuid=...57cad0 api=volkszaehler id=1-1:1.8.0)
> > > [Oct 12 07:21:09] Configure channel.
> > > [Oct 12 07:21:09][chn1] New channel initialized (uuid=...0bb264 api=volkszaehler id=1-2:2.8.0)
> > > [Oct 12 07:21:09] Have 1 meters.
> > > [Oct 12 07:21:09][main] log level is 15
> > > [Oct 12 07:21:09][main] daemon=1, local=0
> > > [Oct 12 07:21:09] Daemonize process...
> > > [Oct 12 07:21:09] Opened logfile /var/log/vzlogger.log
> > > [Oct 12 07:21:09][push] No pushDataServer defined.
> > > [Oct 12 07:21:09][] ===> Start meters
> > > [Oct 12 07:21:09][mtr0] Meter connection established
> > > [Oct 12 07:21:09][mtr0] Meter thread started
> > > [Oct 12 07:21:09][mtr0] Meter is opened. Starting channels.
> > > [Oct 12 07:21:09][mtr0] Number of readers: 32
> > > [Oct 12 07:21:09][mtr0] Config.daemon: 1
> > > [Oct 12 07:21:09][chn0] Logging thread started
> > > [Oct 12 07:21:09][mtr0] Config.local: 0
> > > [Oct 12 07:21:09][chn1] Logging thread started
> > > [Oct 12 07:21:09][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:21:09][] Startup done.
> > > [Oct 12 07:21:09][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:21:09][chn0] Using default volkszaehler api.
> > > [Oct 12 07:21:09][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:21:09][chn1] Using default volkszaehler api.
> > > [Oct 12 07:22:02] MapContainer::quit terminating on signal 15.
> > > [Oct 12 07:22:02] Closing connections to terminate
> > > [Oct 12 07:22:02][main] MeterMap::cancel entered...
> > > [Oct 12 07:22:02][main] MeterMap::cancel wait for readingthread
> > > [Oct 12 07:22:02][main] MeterMap::cancel wait for meter::close
> > > [Oct 12 07:22:02][main] MeterMap::cancel finished.
> > > [Oct 12 07:22:02][main] MapContainer::quit finished.
> > > [Oct 12 07:22:02][] Server stopped.
> > > [Oct 12 07:22:02][] Trying to delete curlSessionProvider...
> > > [Oct 12 07:22:02][] deleted curlSessionProvider
> > > [Oct 12 07:22:02][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > > [Oct 12 07:22:02][mtr0] Creating new meter with protocol sml.
> > > [Oct 12 07:22:02][sml] pullseq len:96 found
> > > [Oct 12 07:22:02][mtr0] Meter configured, enabled.
> > > [Oct 12 07:22:02] New meter initialized (protocol=sml)
> > > [Oct 12 07:22:02] Configure channel.
> > > [Oct 12 07:22:02][chn0] New channel initialized (uuid=...57cad0 api=volkszaehler id=1-1:1.8.0)
> > > [Oct 12 07:22:02] Configure channel.
> > > [Oct 12 07:22:02][chn1] New channel initialized (uuid=...0bb264 api=volkszaehler id=1-2:2.8.0)
> > > [Oct 12 07:22:02] Have 1 meters.
> > > [Oct 12 07:22:02][main] log level is 15
> > > [Oct 12 07:22:02][main] daemon=1, local=0
> > > [Oct 12 07:22:02] Daemonize process...
> > > [Oct 12 07:22:02] Opened logfile /var/log/vzlogger.log
> > > [Oct 12 07:22:02][push] No pushDataServer defined.
> > > [Oct 12 07:22:02][] ===> Start meters
> > > [Oct 12 07:22:02][mtr0] Meter connection established
> > > [Oct 12 07:22:02][mtr0] Meter thread started
> > > [Oct 12 07:22:02][mtr0] Meter is opened. Starting channels.
> > > [Oct 12 07:22:02][mtr0] Number of readers: 32
> > > [Oct 12 07:22:02][chn0] Logging thread started
> > > [Oct 12 07:22:02][mtr0] Config.daemon: 1
> > > [Oct 12 07:22:02][mtr0] Config.local: 0
> > > [Oct 12 07:22:02][chn1] Logging thread started
> > > [Oct 12 07:22:02][] Startup done.
> > > [Oct 12 07:22:02][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:22:02][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:22:02][chn0] Using default volkszaehler api.
> > > [Oct 12 07:22:02][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:22:02][chn1] Using default volkszaehler api.
> > > [Oct 12 07:23:01] MapContainer::quit terminating on signal 15.
> > > [Oct 12 07:23:01] Closing connections to terminate
> > > [Oct 12 07:23:01][main] MeterMap::cancel entered...
> > > [Oct 12 07:23:01][main] MeterMap::cancel wait for readingthread
> > > [Oct 12 07:23:01][main] MeterMap::cancel wait for meter::close
> > > [Oct 12 07:23:01][main] MeterMap::cancel finished.
> > > [Oct 12 07:23:01][main] MapContainer::quit finished.
> > > [Oct 12 07:23:01][] Server stopped.
> > > [Oct 12 07:23:01][] Trying to delete curlSessionProvider...
> > > [Oct 12 07:23:01][] deleted curlSessionProvider
> > > [Oct 12 07:23:01][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > > [Oct 12 07:23:01][mtr0] Creating new meter with protocol sml.
> > > [Oct 12 07:23:01][sml] pullseq len:96 found
> > > [Oct 12 07:23:01][mtr0] Meter configured, enabled.
> > > [Oct 12 07:23:01] New meter initialized (protocol=sml)
> > > [Oct 12 07:23:01] Configure channel.
> > > [Oct 12 07:23:01][chn0] New channel initialized (uuid=...57cad0 api=volkszaehler id=1-1:1.8.0)
> > > [Oct 12 07:23:01] Configure channel.
> > > [Oct 12 07:23:01][chn1] New channel initialized (uuid=...0bb264 api=volkszaehler id=1-2:2.8.0)
> > > [Oct 12 07:23:01] Have 1 meters.
> > > [Oct 12 07:23:01][main] log level is 15
> > > [Oct 12 07:23:01][main] daemon=1, local=0
> > > [Oct 12 07:23:01] Daemonize process...
> > > [Oct 12 07:23:01] Opened logfile /var/log/vzlogger.log
> > > [Oct 12 07:23:01][push] No pushDataServer defined.
> > > [Oct 12 07:23:01][] ===> Start meters
> > > [Oct 12 07:23:01][mtr0] Meter connection established
> > > [Oct 12 07:23:01][mtr0] Meter thread started
> > > [Oct 12 07:23:01][mtr0] Meter is opened. Starting channels.
> > > [Oct 12 07:23:01][mtr0] Number of readers: 32
> > > [Oct 12 07:23:01][chn0] Logging thread started
> > > [Oct 12 07:23:01][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:23:01][mtr0] Config.daemon: 1
> > > [Oct 12 07:23:01][chn1] Logging thread started
> > > [Oct 12 07:23:01][mtr0] Config.local: 0
> > > [Oct 12 07:23:01][] Startup done.
> > > [Oct 12 07:23:01][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:23:01][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:23:01][chn0] Using default volkszaehler api.
> > > [Oct 12 07:23:01][chn1] Using default volkszaehler api.
> > > [Oct 12 07:24:01] MapContainer::quit terminating on signal 15.
> > > [Oct 12 07:24:01] Closing connections to terminate
> > > [Oct 12 07:24:01][main] MeterMap::cancel entered...
> > > [Oct 12 07:24:01][main] MeterMap::cancel wait for readingthread
> > > [Oct 12 07:24:01][main] MeterMap::cancel wait for meter::close
> > > [Oct 12 07:24:01][main] MeterMap::cancel finished.
> > > [Oct 12 07:24:01][main] MapContainer::quit finished.
> > > [Oct 12 07:24:01][] Server stopped.
> > > [Oct 12 07:24:01][] Trying to delete curlSessionProvider...
> > > [Oct 12 07:24:01][] deleted curlSessionProvider
> > > [Oct 12 07:24:01][main] vzlogger v0.6.1 based on heads/master-0-gddc24a5d5c from Wed, 5 Apr 2017 05:19:12 +0200 started.
> > > [Oct 12 07:24:01][mtr0] Creating new meter with protocol sml.
> > > [Oct 12 07:24:01][sml] pullseq len:96 found
> > > [Oct 12 07:24:01][mtr0] Meter configured, enabled.
> > > [Oct 12 07:24:01] New meter initialized (protocol=sml)
> > > [Oct 12 07:24:01] Configure channel.
> > > [Oct 12 07:24:01][chn0] New channel initialized (uuid=...57cad0 api=volkszaehler id=1-1:1.8.0)
> > > [Oct 12 07:24:01] Configure channel.
> > > [Oct 12 07:24:01][chn1] New channel initialized (uuid=...0bb264 api=volkszaehler id=1-2:2.8.0)
> > > [Oct 12 07:24:01] Have 1 meters.
> > > [Oct 12 07:24:01][main] log level is 15
> > > [Oct 12 07:24:01][main] daemon=1, local=0
> > > [Oct 12 07:24:01] Daemonize process...
> > > [Oct 12 07:24:01] Opened logfile /var/log/vzlogger.log
> > > [Oct 12 07:24:01][push] No pushDataServer defined.
> > > [Oct 12 07:24:01][] ===> Start meters
> > > [Oct 12 07:24:01][mtr0] Meter connection established
> > > [Oct 12 07:24:01][mtr0] Meter thread started
> > > [Oct 12 07:24:01][mtr0] Meter is opened. Starting channels.
> > > [Oct 12 07:24:01][mtr0] Number of readers: 32
> > > [Oct 12 07:24:01][chn0] Logging thread started
> > > [Oct 12 07:24:01][mtr0] Config.daemon: 1
> > > [Oct 12 07:24:01][mtr0] Config.local: 0
> > > [Oct 12 07:24:01][chn1] Logging thread started
> > > [Oct 12 07:24:01][] Startup done.
> > > [Oct 12 07:24:01][sml] sending pullsequenz send (len:96 is:96).
> > > [Oct 12 07:24:01][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:24:01][chn0] Using default volkszaehler api.
> > > [Oct 12 07:24:01][chn1] Start logging thread for volkszaehler-api. Running as daemon: yes
> > > [Oct 12 07:24:01][chn1] Using default volkszaehler api.
> > >
> > >
> > >
> > > Von:volkszaehler-users [mailto:<volkszaehler-users-bounces at demo.volkszaehler.org>] Im Auftrag vonFrank RichterGesendet: Mittwoch, 11. Oktober 2017 23:09
> > > An: <http://volkszaehler.org> - users <<volkszaehler-users at demo.volkszaehler.org>>
> > > Betreff: Re: [vz-users] Q3C Zähler mit Weidmann Lesekopf
> > >
> > >
> > > Hallo Knut,
> > >
> > >
> > >
> > > die bei volkszaehler verwendeten Timestamps sind in Millisekunden.
> > >
> > >
> > >
> > > Ansonsten benötigen wir deine komplette Konfiguration und ein Logfile mit hoher verbosity-Einstellung, um helfen zu können.
> > >
> > >
> > >
> > > Grüße
> > >
> > > Frank
> > >
> > >
> > >
> > >
> > > Am 11.10.2017 22:27 schrieb "Knut Auffahrt" <<knut.auffahrt at t-online.de>>:
> > >
> > > > Guten Tag,
> > > >
> > > >
> > > > ich habe das Image des Volkszählers auf ein Raspi installiert. Den Zähler Q3C lese ich an der Front über einen Weidmann Kopf aus. Nach ein paar Irrwegen kommen jetzt auch Daten in der DB an. Allerdings sind noch zwei Punkte, die nicht laufen.
> > > >
> > > >
> > > > Der vzlogger kann nur Daten nach einem Neustart des Raspi empfangen. Daten senden tut er auch, wenn man den vzlogger nur neu startet. Im Augenblick habe ich es so gelöst, das der Raspi alle 10 min neu startet und so die Daten abfragt. Dies ist allerdings kein guter Zustand, da auch so die DB nicht immer über das Netz erreichbar ist und zudem werden die Daten sehr sporadisch erfasst.
> > > > Über das Vorgehen, das Weidmann im Beiblatt beschrieben hat, bekomme ich auf jede Leseaufforderung ein Antwort, unabhängig davon, ob der vzlogger läuft oder nicht.
> > > > Es sieht so aus, als ob sich ein Dienst, auf den der vzlogger zugreift, nach dem ersten lesen hängen bleibt und dann nicht mehr ans laufen kommt.
> > > >
> > > >
> > > > Habt ihr eine Idee woran das liegen könnte, ich habe die diversen Foren jetzt durch, doch leider noch keine Lösung.
> > > >
> > > >
> > > >
> > > >
> > > > Das zweite Problem ist die Timestamp des Zählers. Scheinbar liefert der Zähler einen Wert der weit in der Zukunft ist (143185238000 – müsste das Jahr 6500 sein). Die Timestamp kann natürlich nicht richtig sein. Allerdings erkennt das der vzlogger nicht, obwohl der Parameter use_local_time auf true steht.
> > > >
> > > >
> > > > Ist es möglich auch eine obere Grenze für die Timestamp zu definieren?
> > > >
> > > >
> > > >
> > > >
> > > > Gruß
> > > > Knut Auffahrt
> > > >
> > > >
> > > >
> > > >
> > > > Ich habe die Version 0.6.1 aktuell installiert.
> > > >
> > > >
> > > >
> > > >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20171012/a95779a2/attachment-0001.html>
More information about the volkszaehler-users
mailing list