From 0f209edc9731d21cea08e6d663362fcbc754d229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20=C3=96hrstr=C3=B6m?= Date: Sun, 8 Aug 2021 17:16:52 +0200 Subject: [PATCH] Update README, CHANGES and man page. --- CHANGES | 19 +++++++++++++++++-- README.md | 22 +++++----------------- src/cmdline.cc | 12 ------------ src/config.cc | 21 +-------------------- src/config.h | 3 +-- src/main.cc | 5 ++--- src/meters.cc | 14 +++++++------- src/meters.h | 3 +-- src/meters_common_implementation.h | 7 +++++-- src/printer.cc | 5 ++--- src/printer.h | 2 +- wmbusmeters.1 | 4 +--- 12 files changed, 43 insertions(+), 74 deletions(-) diff --git a/CHANGES b/CHANGES index 102f086..37296d2 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,21 @@ -Added the field timestamp_ut to print the existing timestamp field -using unix timestamp seconds since 1970-01-01. +You can now add constant fields using --field_extra_info=floor54 and +--selectfields=....,extra_info,.... to print constant values into +the fields format. --field_xxx=yyy is the new name for --json_xxx=yyy. +The old --json_xxx=yyy continues to work for backwards compatibility. + +The timestamp field/key is the time registered by wmbusmeters +when the telegram was received. (The telegram itself sometimes +contain another timestamp when the telegram was sent.) + +This timestamp field is encoded using the local time when used +in hr/fields (ie "2021-01-01 12:15.00") but UTC time within json +(ie "2021-01-01T10:15.00Z"). + +This will stay the same. However now you can explicitly select +the timestamp format for the selected fields. Select timestamp_ut +to print the timestamp as a unix timestamp (ie seconds since 1970-01-01). +Select timestamp_utc for the timestamp in UTC and timestamp_lt for local time. Daniel Glaser added support for the Aventies water meter! Thanks Daniel! diff --git a/README.md b/README.md index e7780af..1a49d82 100644 --- a/README.md +++ b/README.md @@ -214,9 +214,7 @@ As you can use: --nodeviceexit if no wmbus devices are found, then exit immediately --oneshot wait for an update from each meter, then quit --resetafter=