[vz-users] S0-Zähler ziert sich noch
Erich Hagen
erich.hagen at gmx.com
Sat Oct 10 16:57:20 CEST 2015
Hallo,
ich glaub, ich hab noch einen kleinen "Bug" in meinem vzlogger.config.
Wenn ich den random aktiviere, erhalte ich das Ergebnis auf dem Client.
Die Daten vom S0-Zähler sehe ich aber nicht.
Was habe ich noch vergessen/übersehen?
Über einen Hinweis würde ich mich freuen.
Schöne Grüße
Erich Hagen
{
"retry": 1,
"meters": [
{
"enabled": false,
"allowskip": false,
"interval": -1,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "...620a",
"identifier": "",
"api": "volkszaehler",
"middleware": " <http://localhost/middleware.php> http://localhost/middleware.php",
"secretKey": "",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
}
],
"protocol": "random",
"min": 0.0,
"max": 10.0,
"device": "",
"gpio": -1,
"mmap": "",
"gpio_dir": -1,
"configureGPIO": false,
"resolution": 1000,
"send_zero": false,
"debounce_delay": 30,
"nonblocking_delay": 100000
},
{
"enabled": true,
"allowskip": false,
"interval": -1,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "...ea8df",
"identifier": "",
"api": "volkszaehler",
"middleware": " <http://localhost/middleware.php> http://localhost/middleware.php",
"secretKey": "",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
}
],
"protocol": "s0",
"device": "1.8.1",
"gpio": 4,
"mmap": "",
"gpio_dir": -1,
"configureGPIO": true,
"identifier":"impulse",
"resolution": 1600,
"send_zero": false,
"debounce_delay": 30,
"nonblocking_delay": 100000
}
]
}
==========================================================
pi at raspberrypi ~ $ sudo vzlogger -v 15 -c /etc/vzlogger.conf -o /var/log/vzlogger.log [Oct 10 10:20:37][main] vzlogger v0.4.4 based on
heads/master-0-g084fa52872 from Mon, 3 Aug 2015 23:00:48 +0200 started.
[Oct 10 10:20:37] Start parsing configuration from /etc/vzlogger.conf
[Oct 10 10:20:37][mtr0] Creating new meter with protocol random.
[Oct 10 10:20:37][mtr0] Interval has to be set and positive!
[Oct 10 10:20:37][mtr0] Meter configured, disabled.
[Oct 10 10:20:37] New meter initialized (protocol=random)
[Oct 10 10:20:37] Configure channel.
[Oct 10 10:20:37][chn0] New channel initialized (uuid=...78620a api=volkszaehler id=) [Oct 10 10:20:37][mtr1] Creating new meter with protocol s0.
[Oct 10 10:20:37][s0] unknown option for mmap (). Falling back to
normal gpio.
[Oct 10 10:20:37][mtr1] Meter configured, enabled.
[Oct 10 10:20:37] New meter initialized (protocol=s0)
[Oct 10 10:20:37] Configure channel.
[Oct 10 10:20:37][chn1] New channel initialized (uuid=...3ea8df api=volkszaehler id=)
[Oct 10 10:20:37] Have 2 meters.
[Oct 10 10:20:37][main] log level is 15
[Oct 10 10:20:37][main] daemon=0, local=0
[Oct 10 10:20:37] Process not daemonized...
[Oct 10 10:20:37] Opened logfile /var/log/vzlogger.log
[Oct 10 10:20:37][push] No pushDataServer defined.
[Oct 10 10:20:37][] ===> Start meters
[Oct 10 10:20:37][mtr0] Meter for protocol 'random' is disabled. Skipping.
[Oct 10 10:20:37][s0] counter_thread created
[Oct 10 10:20:37][s0] Counter thread started with blocking hwif
[Oct 10 10:20:37][mtr1] Meter connection established
[Oct 10 10:20:37][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:37][mtr1] Meter thread started [Oct 10 10:20:37][mtr1] Number of readers: 4 [Oct 10 10:20:37][mtr1] Meter is opened. Starting channels.
[Oct 10 10:20:37][mtr1] Config.daemon: 0 [Oct 10 10:20:37][mtr1] Config.local: 0 [Oct 10 10:20:37][chn1] Logging thread started [Oct 10 10:20:37][chn1] Start logging thread for volkszaehler-api.
Running as daemon: no
[Oct 10 10:20:37][] Startup done.
[Oct 10 10:20:37][chn1] Using default volkszaehler api.
[Oct 10 10:20:38][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:38][s0] Reading S0 - returning 2 readings (n=2 n_neg = 0)
[Oct 10 10:20:38][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:38][mtr1] Reading: id=Power/StringItentifier:
value=1124.89 ts=1444465238923
[Oct 10 10:20:38][mtr1] Reading: id=Impulse/StringItentifier: value=2.00
ts=1444465238923
[Oct 10 10:20:38][chn1] Buffer dump (size=0): {} [Oct 10 10:20:38][chn1] ==> number of tuples: 0 [Oct 10 10:20:38][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:39][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:39][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:39][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:39][mtr1] Reading: id=Power/StringItentifier:
value=2249.77 ts=1444465239923
[Oct 10 10:20:39][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465239923
[Oct 10 10:20:39][chn1] Buffer dump (size=0): {} [Oct 10 10:20:39][chn1] ==> number of tuples: 0 [Oct 10 10:20:39][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:40][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:40][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:40][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:40][mtr1] Reading: id=Power/StringItentifier:
value=2249.74 ts=1444465240923
[Oct 10 10:20:40][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465240923
[Oct 10 10:20:40][chn1] Buffer dump (size=0): {} [Oct 10 10:20:40][chn1] ==> number of tuples: 0 [Oct 10 10:20:40][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:41][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:41][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:41][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:41][mtr1] Reading: id=Power/StringItentifier:
value=2249.69 ts=1444465241923
[Oct 10 10:20:41][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465241923
[Oct 10 10:20:41][chn1] Buffer dump (size=0): {} [Oct 10 10:20:41][chn1] ==> number of tuples: 0 [Oct 10 10:20:41][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:43][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:43][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:43][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:43][mtr1] Reading: id=Power/StringItentifier:
value=1124.94 ts=1444465243923
[Oct 10 10:20:43][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465243923
[Oct 10 10:20:43][chn1] Buffer dump (size=0): {} [Oct 10 10:20:43][chn1] ==> number of tuples: 0 [Oct 10 10:20:43][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:44][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:44][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:44][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:44][mtr1] Reading: id=Power/StringItentifier:
value=2249.77 ts=1444465244923
[Oct 10 10:20:44][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465244923
[Oct 10 10:20:44][chn1] Buffer dump (size=0): {} [Oct 10 10:20:44][chn1] ==> number of tuples: 0 [Oct 10 10:20:44][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:45][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:45][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:45][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:45][mtr1] Reading: id=Power/StringItentifier:
value=2249.77 ts=1444465245923
[Oct 10 10:20:45][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465245923
[Oct 10 10:20:45][chn1] Buffer dump (size=0): {} [Oct 10 10:20:45][chn1] ==> number of tuples: 0 [Oct 10 10:20:45][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:46][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:46][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:46][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:46][mtr1] Reading: id=Power/StringItentifier:
value=2249.77 ts=1444465246923
[Oct 10 10:20:46][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465246923
[Oct 10 10:20:46][chn1] Buffer dump (size=0): {} [Oct 10 10:20:46][chn1] ==> number of tuples: 0 [Oct 10 10:20:46][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:47][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:47][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:47][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:47][mtr1] Reading: id=Power/StringItentifier:
value=2249.71 ts=1444465247924
[Oct 10 10:20:47][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465247924
[Oct 10 10:20:47][chn1] Buffer dump (size=0): {} [Oct 10 10:20:47][chn1] ==> number of tuples: 0 [Oct 10 10:20:47][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:49][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:49][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:49][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:49][mtr1] Reading: id=Power/StringItentifier:
value=1124.94 ts=1444465249924
[Oct 10 10:20:49][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465249924
[Oct 10 10:20:49][chn1] Buffer dump (size=0): {} [Oct 10 10:20:49][chn1] ==> number of tuples: 0 [Oct 10 10:20:49][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:50][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Oct 10 10:20:50][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Oct 10 10:20:50][mtr1] Got 2 new readings from meter:
[Oct 10 10:20:50][mtr1] Reading: id=Power/StringItentifier:
value=2249.77 ts=1444465250924
[Oct 10 10:20:50][mtr1] Reading: id=Impulse/StringItentifier: value=1.00
ts=1444465250924
[Oct 10 10:20:50][chn1] Buffer dump (size=0): {} [Oct 10 10:20:50][chn1] ==> number of tuples: 0 [Oct 10 10:20:50][chn1] JSON request body is null. Nothing to send now.
[Oct 10 10:20:51][S0] MeterS0:HWIF_GPIO:first poll returned 1
^C[Oct 10 10:20:51] terminating on signal 2.
[Oct 10 10:20:51] Closing connections to terminate
*** glibc detected *** vzlogger: free(): corrupted unsorted chunks:
0x00a14fc8 ***
pi at raspberrypi ~ $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20151010/a1dee8e4/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 26977 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20151010/a1dee8e4/attachment-0001.jpg>
More information about the volkszaehler-users
mailing list