[vz-users] Push-Server sendet keine Null-Werte

applicationMGR applicationMGR at ecoCuyo.de
So Apr 9 11:48:44 CEST 2023


Hallo Daniel,

hab endlich Zeit gehabt, Deinen Tip zu testen:

$ git pull
	Hinweis: Es wird davon abgeraten zu Pullen, ohne anzugeben, wie mit abweichenden
	Hinweis: Branches umgegangen werden soll. Sie können diese Nachricht unterdrücken,
	Hinweis: indem Sie einen der folgenden Befehle ausführen, bevor der nächste Pull
	Hinweis: ausgeführt wird:
	Hinweis: 
	Hinweis:   git config pull.rebase false  # Merge (Standard-Strategie)
	Hinweis:   git config pull.rebase true   # Rebase
	Hinweis:   git config pull.ff only       # ausschließlich Vorspulen
	Hinweis: 
	Hinweis: Sie können statt "git config" auch "git config --global" nutzen, um
	Hinweis: einen Standard für alle Repositories festzulegen. Sie können auch die
	Hinweis: Option --rebase, --no-rebase oder --ff-only auf der Kommandozeile nutzen,
	Hinweis: um das konfigurierte Standardverhalten pro Aufruf zu überschreiben.
	remote: Enumerating objects: 19, done.
	remote: Counting objects: 100% (19/19), done.
	remote: Compressing objects: 100% (12/12), done.
	remote: Total 19 (delta 7), reused 11 (delta 6), pack-reused 0
	Entpacke Objekte: 100% (19/19), 5.37 KiB | 117.00 KiB/s, fertig.
	Von https://github.com/volkszaehler/vzlogger
	   d0d27ea..7ab8642  master     -> origin/master
	Aktualisiere d0d27ea..7ab8642
	Fast-forward
	 README.InfluxDB.md           | 12 ++++++++++++
	 debian/vzlogger.examples     |  4 ++++
	 debian/vzlogger.install      |  1 +
	 etc/logrotate.d/vzlogger     |  8 ++++++++
	 modules/FindJson.cmake       |  2 +-
	 modules/FindMicroHttpd.cmake |  5 ++---
	 src/protocols/MeterS0.cpp    |  7 ++++++-
	 7 files changed, 34 insertions(+), 5 deletions(-)
	 create mode 100644 debian/vzlogger.examples
	 create mode 100644 etc/logrotate.d/vzlogger
$ git fetch origin pull/476/head:direction_from_status
$ git checkout direction_from_status
	Zu Branch 'direction_from_status' gewechselt
$ cd /var/www/volkszaehler.org <http://volkszaehler.org/>
$ composer update
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Lock file operations: 0 installs, 22 updates, 0 removals
  - Upgrading myclabs/deep-copy (1.11.0 => 1.11.1)
  - Upgrading nikic/php-parser (v4.15.3 => v4.15.4)
  - Upgrading phpstan/phpstan (1.9.18 => 1.10.11)
  - Upgrading phpunit/php-code-coverage (9.2.24 => 9.2.26)
  - Upgrading phpunit/phpunit (9.6.3 => 9.6.6)
  - Upgrading psr/http-message (1.0.1 => 1.1)
  - Upgrading symfony/cache (v5.4.19 => v5.4.22)
  - Upgrading symfony/console (v5.4.19 => v5.4.22)
  - Upgrading symfony/error-handler (v5.4.19 => v5.4.21)
  - Upgrading symfony/event-dispatcher (v5.4.19 => v5.4.22)
  - Upgrading symfony/filesystem (v5.4.19 => v5.4.21)
  - Upgrading symfony/finder (v5.4.19 => v5.4.21)
  - Upgrading symfony/http-foundation (v5.4.20 => v5.4.22)
  - Upgrading symfony/http-kernel (v5.4.20 => v5.4.22)
  - Upgrading symfony/options-resolver (v5.4.19 => v5.4.21)
  - Upgrading symfony/process (v5.4.19 => v5.4.22)
  - Upgrading symfony/routing (v5.4.19 => v5.4.22)
  - Upgrading symfony/stopwatch (v5.4.19 => v5.4.21)
  - Upgrading symfony/string (v5.4.19 => v5.4.22)
  - Upgrading symfony/var-dumper (v5.4.19 => v5.4.22)
  - Upgrading symfony/var-exporter (v5.4.19 => v5.4.21)
  - Upgrading symfony/yaml (v5.4.19 => v5.4.21)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 22 updates, 0 removals
  - Downloading symfony/yaml (v5.4.21)
  - Downloading symfony/string (v5.4.22)
  - Downloading symfony/console (v5.4.22)
  - Downloading psr/http-message (1.1)
  - Downloading symfony/routing (v5.4.22)
  - Downloading symfony/http-foundation (v5.4.22)
  - Downloading symfony/stopwatch (v5.4.21)
  - Downloading symfony/process (v5.4.22)
  - Downloading symfony/options-resolver (v5.4.21)
  - Downloading symfony/finder (v5.4.21)
  - Downloading symfony/filesystem (v5.4.21)
  - Downloading symfony/event-dispatcher (v5.4.22)
  - Downloading symfony/var-dumper (v5.4.22)
  - Downloading symfony/error-handler (v5.4.21)
  - Downloading symfony/http-kernel (v5.4.22)
  - Downloading phpstan/phpstan (1.10.11)
  - Downloading nikic/php-parser (v4.15.4)
  - Downloading phpunit/php-code-coverage (9.2.26)
  - Downloading myclabs/deep-copy (1.11.1)
  - Downloading phpunit/phpunit (9.6.6)
  - Downloading symfony/var-exporter (v5.4.21)
  - Downloading symfony/cache (v5.4.22)
  - Upgrading symfony/yaml (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/string (v5.4.19 => v5.4.22): Extracting archive
  - Upgrading symfony/console (v5.4.19 => v5.4.22): Extracting archive
  - Upgrading psr/http-message (1.0.1 => 1.1): Extracting archive
  - Upgrading symfony/routing (v5.4.19 => v5.4.22): Extracting archive
  - Upgrading symfony/http-foundation (v5.4.20 => v5.4.22): Extracting archive
  - Upgrading symfony/stopwatch (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/process (v5.4.19 => v5.4.22): Extracting archive
  - Upgrading symfony/options-resolver (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/finder (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/filesystem (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/event-dispatcher (v5.4.19 => v5.4.22): Extracting archive
  - Upgrading symfony/var-dumper (v5.4.19 => v5.4.22): Extracting archive
  - Upgrading symfony/error-handler (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/http-kernel (v5.4.20 => v5.4.22): Extracting archive
  - Upgrading phpstan/phpstan (1.9.18 => 1.10.11): Extracting archive
  - Upgrading nikic/php-parser (v4.15.3 => v4.15.4): Extracting archive
  - Upgrading phpunit/php-code-coverage (9.2.24 => 9.2.26): Extracting archive
  - Upgrading myclabs/deep-copy (1.11.0 => 1.11.1): Extracting archive
  - Upgrading phpunit/phpunit (9.6.3 => 9.6.6): Extracting archive
  - Upgrading symfony/var-exporter (v5.4.19 => v5.4.21): Extracting archive
  - Upgrading symfony/cache (v5.4.19 => v5.4.22): Extracting archive
Package influxdb/influxdb-php is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
80 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
$ sudo systemctl restart vzlogger

Log-Level 15 wirft folgendes aus:

[Apr 09 11:17:36][main] vzlogger v0.8.1 based on heads/master-0-gd0d27eaa72 from Thu, 9 Feb 2023 00:51:22 +0100 started.
[Apr 09 11:17:36][mqtt] MqttClient::MqttClient called
[Apr 09 11:17:36][mqtt] using libmosquitto 2.0.11
[Apr 09 11:17:36][mqtt] ~MqttClient called
[Apr 09 11:17:36][mqtt] mqtt client not configured. stopped.
[Apr 09 11:17:36][mtr0] Creating new meter with protocol sml.
[Apr 09 11:17:36][mtr0] Meter configured, enabled.
[Apr 09 11:17:36]       New meter initialized (protocol=sml)
[Apr 09 11:17:36]       Configure channel.
[Apr 09 11:17:36][chn0] New channel initialized (uuid=...20d33d api=volkszaehler id=1-0:2.8.0)
[Apr 09 11:17:36]       Configure channel.
[Apr 09 11:17:36][chn1] New channel initialized (uuid=...4a2f7b api=volkszaehler id=1-0:15.7.0)
[Apr 09 11:17:36][mtr1] Creating new meter with protocol sml.
[Apr 09 11:17:36][mtr1] Meter configured, enabled.
[Apr 09 11:17:36]       New meter initialized (protocol=sml)
[Apr 09 11:17:36]       Configure channel.
[Apr 09 11:17:36][chn2] New channel initialized (uuid=...963ed8 api=volkszaehler id=1-0:1.8.0)
[Apr 09 11:17:36]       Configure channel.
[Apr 09 11:17:36][chn3] New channel initialized (uuid=...a8ff52 api=volkszaehler id=1-0:2.8.0)
[Apr 09 11:17:36]       Configure channel.
[Apr 09 11:17:36][chn4] New channel initialized (uuid=...443697 api=volkszaehler id=1-0:15.7.0)
[Apr 09 11:17:36]       Have 2 meters.
[Apr 09 11:17:36][main] log level is 15
[Apr 09 11:17:36][main] local=1
[Apr 09 11:17:36]       Daemonize process...
[Apr 09 11:17:36]       Opened logfile /var/log/vzlogger/vzlogger.log
[Apr 09 11:17:36][push] pushdata_thread created.
[Apr 09 11:17:36][push] Start push_data_thread
[Apr 09 11:17:36][]     ===> Start meters
[Apr 09 11:17:36][mtr0] Meter connection established
[Apr 09 11:17:36][mtr0] Meter thread started
[Apr 09 11:17:36][mtr0] Meter is opened. Starting channels.
[Apr 09 11:17:36][mtr0] Number of readers: 32
[Apr 09 11:17:36][mtr0] Config.local: 1
[Apr 09 11:17:36][chn0] Logging thread started
[Apr 09 11:17:36][chn0] Start logging thread for volkszaehler-api.
[Apr 09 11:17:36][chn1] Logging thread started
[Apr 09 11:17:36][chn1] Start logging thread for volkszaehler-api.
[Apr 09 11:17:36][chn1] Using default volkszaehler api.
[Apr 09 11:17:36][chn0] Using default volkszaehler api.
[Apr 09 11:17:36][mtr1] Meter connection established
[Apr 09 11:17:36][mtr1] Meter thread started
[Apr 09 11:17:36][mtr1] Meter is opened. Starting channels.
[Apr 09 11:17:36][mtr1] Number of readers: 32
[Apr 09 11:17:36][mtr1] Config.local: 1
[Apr 09 11:17:36][chn2] Logging thread started
[Apr 09 11:17:36][chn2] Start logging thread for volkszaehler-api.
[Apr 09 11:17:36][chn3] Logging thread started
[Apr 09 11:17:36][chn3] Start logging thread for volkszaehler-api.
[Apr 09 11:17:36][chn2] Using default volkszaehler api.
[Apr 09 11:17:36][chn4] Logging thread started
[Apr 09 11:17:36][chn4] Start logging thread for volkszaehler-api.
[Apr 09 11:17:36][http] Starting local interface HTTPd on port 8081
[Apr 09 11:17:36][chn3] Using default volkszaehler api.
[Apr 09 11:17:36][chn4] Using default volkszaehler api.
[Apr 09 11:17:36][]     Startup done.
[Apr 09 11:17:37][mtr1] Got 6 new readings from meter:
[Apr 09 11:17:37][mtr1] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=17947195.30 ts=1681031857007
[Apr 09 11:17:37][mtr1] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=62391818.60 ts=1681031857007
[Apr 09 11:17:37][mtr1] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=17947195.30 ts=1681031857007
[Apr 09 11:17:37][mtr1] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=62391818.60 ts=1681031857007
[Apr 09 11:17:37][mtr1] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1681031857007
[Apr 09 11:17:37][mtr1] Reading: id=1-0:15.7.0*255/ObisIdentifier:1-0:15.7.0*255 value=1017.40 ts=1681031857007
[Apr 09 11:17:37][chn2] Adding reading to queue (value=17947195.30 ts=1681031857007)
[Apr 09 11:17:37][push] added to uuid b9693e00-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:37][chn3] Adding reading to queue (value=62391818.60 ts=1681031857007)
[Apr 09 11:17:37][push] added to uuid ec7c7360-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:37][push] push: { "data": [ { "uuid": "b9693e00-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031857007, 17947195.300000001 ] ] } ] }
[Apr 09 11:17:37][chn4] Adding reading to queue (value=1017.40 ts=1681031857007)
[Apr 09 11:17:37][push] added to uuid 61d5d350-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:37][push] CURL Request to http://127.0.0.1:5582 succeeded with code: 200
[Apr 09 11:17:37][push] send ok to url http://127.0.0.1:5582
[Apr 09 11:17:37][push] push: { "data": [ { "uuid": "61d5d350-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031857007, 1017.4000000000001 ] ] }, { "uuid": "ec7c7360-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031857007, 62391818.600000001 ] ] } ] }
[Apr 09 11:17:37][push] CURL Request to http://127.0.0.1:5582 succeeded with code: 200
[Apr 09 11:17:37][push] send ok to url http://127.0.0.1:5582
[Apr 09 11:17:38][mtr0] Got 3 new readings from meter:
[Apr 09 11:17:38][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=74669536.50 ts=1681031858059
[Apr 09 11:17:38][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=74669536.50 ts=1681031858059
[Apr 09 11:17:38][mtr0] Reading: id=1-0:15.7.0*255/ObisIdentifier:1-0:15.7.0*255 value=5301.40 ts=1681031858059
[Apr 09 11:17:38][chn0] Adding reading to queue (value=74669536.50 ts=1681031858059)
[Apr 09 11:17:38][push] added to uuid 8c4d02b0-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:38][chn1] Adding reading to queue (value=5301.40 ts=1681031858059)
[Apr 09 11:17:38][push] push: { "data": [ { "uuid": "8c4d02b0-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031858059, 74669536.5 ] ] } ] }
[Apr 09 11:17:38][push] added to uuid 6c9c10a0-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:38][push] CURL Request to http://127.0.0.1:5582 succeeded with code: 200
[Apr 09 11:17:38][push] send ok to url http://127.0.0.1:5582
[Apr 09 11:17:38][push] push: { "data": [ { "uuid": "6c9c10a0-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031858059, 5301.4000000000005 ] ] } ] }
[Apr 09 11:17:38][push] CURL Request to http://127.0.0.1:5582 succeeded with code: 200
[Apr 09 11:17:38][push] send ok to url http://127.0.0.1:5582
[Apr 09 11:17:38][mtr1] Got 6 new readings from meter:
[Apr 09 11:17:38][mtr1] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=17947195.30 ts=1681031858424
[Apr 09 11:17:38][mtr1] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=62391819.00 ts=1681031858424
[Apr 09 11:17:38][mtr1] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=17947195.30 ts=1681031858424
[Apr 09 11:17:38][mtr1] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=62391819.00 ts=1681031858424
[Apr 09 11:17:38][mtr1] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1681031858424
[Apr 09 11:17:38][mtr1] Reading: id=1-0:15.7.0*255/ObisIdentifier:1-0:15.7.0*255 value=1009.20 ts=1681031858424
[Apr 09 11:17:38][chn2] Adding reading to queue (value=17947195.30 ts=1681031858424)
[Apr 09 11:17:38][push] push: { "data": [ { "uuid": "b9693e00-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031858424, 17947195.300000001 ] ] } ] }
[Apr 09 11:17:38][push] added to uuid b9693e00-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:38][chn3] Adding reading to queue (value=62391819.00 ts=1681031858424)
[Apr 09 11:17:38][push] added to uuid ec7c7360-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:38][chn4] Adding reading to queue (value=1009.20 ts=1681031858424)
[Apr 09 11:17:38][push] added to uuid 61d5d350-xxxx-xxxx-xxxx-xxxxxxxxxxxx
[Apr 09 11:17:38][push] CURL Request to http://127.0.0.1:5582 succeeded with code: 200
[Apr 09 11:17:38][push] send ok to url http://127.0.0.1:5582
[Apr 09 11:17:38][push] push: { "data": [ { "uuid": "61d5d350-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031858424, 1009.2 ] ] }, { "uuid": “ec7c7360-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "tuples": [ [ 1681031858424, 62391819 ] ] } ] }
[Apr 09 11:17:38][push] CURL Request to http://127.0.0.1:5582 succeeded with code: 200
[Apr 09 11:17:38][push] send ok to url http://127.0.0.1:5582

Das sieht gut aus, nur ist weiterhin kein Vorzeichen am Leistungswert des Zwei-Richtungszählers: Im Bild sind mehrere Richtungswechsel Bezug/Lieferung zu sehen, aber die Wirkleistung Summenpunkt bleibt positiv.



Muss ich einen neuen Kanal anlegen, der die momentane Leistung mit Vorzeichen wiedergibt?
Was habe ich sonst übersehen?

Vielen Dank schon mal & frohe Ostern,
Armin



> Am 02.04.2023 um 18:26 schrieb Daniel Lauckner <vz at jahp.de>:
> 
> Hallo,
> 
> 
> am Sonntag, 2. April 2023 um 18:16 hat Daniel Lauckner geschrieben:
>> Es gibt einen älteren PR für vzlogger in dem die Richtungsangabe des Zähler ausgewertet wird und der Leistung das nötige Vorzeichen verpasst.
> 
> Bevor die Frage aufkommt welcher? https://github.com/volkszaehler/vzlogger/pull/476
> Und dazu: https://wiki.volkszaehler.org/howto/git#ein_pull-request_koennte_mein_lokales_problem_loesen_wie_kann_ich_ihn_testen
> 
> 
> mfg Daniel
> 

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20230409/c8f98654/attachment-0001.html>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : PastedGraphic-1.tiff
Dateityp    : image/tiff
Dateigröße  : 183730 bytes
Beschreibung: nicht verfügbar
URL         : <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20230409/c8f98654/attachment-0001.tiff>


Mehr Informationen über die Mailingliste volkszaehler-users