[vz-users] New user, can't even get the basics working....
fiets fietsenwiel
fietsenwiel at gmail.com
Mon Sep 12 08:25:52 CEST 2016
Hi all,
I am a new user of volkszaehler, trying to get it to work.
But I don't succeed at all.
My SQL database keeps empty, no data is received.
My config file is this:
{
"retry" : 30, /* how long to sleep between failed
requests, in seconds */
"daemon": true, /* run periodically */
"verbosity" : 15, /* between 0 and 15 */
"log" : "/var/log/vzlogger.log",/* path to logfile, optional */
"local" : {
"enabled" : false, /* should we start the local HTTPd for
serving live readings? */
"port" : 8080, /* the TCP port for the local HTTPd */
"index" : true, /* should we provide a index listing of
available channels? */
"timeout" : 30, /* timeout for long polling comet requests,
0 disables comet, in seconds */
"buffer" : 600 /* how long to buffer readings for the
local interface, in seconds */
},
"meters" : [{
"enabled" : true, /* disabled meters will be ignored */
"allowskip": false,
"interval": 1,
"aggtime": -1,
"channels": [
{
"uuid": "753d5410-c9ba-11e5-bb2d-6de8b5138a4e",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://localhost/middleware.php",
"aggmode": "none",
"duplicates": 0
}
],
"aggfixedinterval": false,
"protocol": "s0",
"device": "",
"gpio": 4,
"gpio_dir": -1,
"configureGPIO": true,
"resolution": 1,
"send_zero": false,
"debounce_delay": 30,
"nonblocking_delay": 100000
}
]}
running sudo vzlogger -c /etc/vzloggertest.conf shows:
[Sep 12 08:21:56][main] vzlogger v0.5.1 based on
heads/master-0-g7e79f4c700-dirty from Fri, 5 Feb 2016 18:03:28 +0100
started.
[Sep 12 08:21:56][mtr0] Creating new meter with protocol s0.
[Sep 12 08:21:56][mtr0] Meter configured, enabled.
[Sep 12 08:21:56] New meter initialized (protocol=s0)
[Sep 12 08:21:56] Configure channel.
[Sep 12 08:21:56][chn0] New channel initialized (uuid=...138a4e
api=volkszaehler id=Impulse)
[Sep 12 08:21:56] Have 1 meters.
[Sep 12 08:21:56][main] log level is 15
[Sep 12 08:21:56][main] daemon=1, local=0
[Sep 12 08:21:56] Daemonize process...
And the logfile shows:
[Sep 12 08:24:14][s0] Reading S0 - returning 2 readings (n=1 n_neg = 0)
[Sep 12 08:24:14][mtr0] Got 2 new readings from meter:
[Sep 12 08:24:14][mtr0] Reading: id=Power/StringItentifier: value=604432.50
ts=1473661453679
[Sep 12 08:24:14][mtr0] Reading: id=Impulse/StringItentifier: value=1.00
ts=1473661453679
[Sep 12 08:24:14][chn0] Adding reading to queue (value=1.00
ts=1473661453679)
[Sep 12 08:24:14][chn0] Buffer dump (size=1): {1.0000,}
[Sep 12 08:24:14][mtr0] Next reading in 1 seconds
[Sep 12 08:24:14][chn0] ==> number of tuples: 1
[Sep 12 08:24:14][chn0] compare: 1473661447723 1473661453679
[Sep 12 08:24:14][chn0] JSON request body: [ [ 1473661453679, 1 ] ]
[Sep 12 08:24:14][chn0] CURL: Hostname was found in DNS cache
[Sep 12 08:24:14][chn0] CURL: Trying ::1...
[Sep 12 08:24:14][chn0] CURL: Connected to localhost (::1) port 80 (#19460)
[Sep 12 08:24:14][chn0] CURL: Sent 24 bytes..
[Sep 12 08:24:14][chn0] CURL: Sent '[ [ 1473661453679, 1 ] ]' bytes
[Sep 12 08:24:14][chn0] CURL: upload completely sent off: 24 out of 24 bytes
[Sep 12 08:24:14][chn0] CURL: Sent 24 bytes..
[Sep 12 08:24:14][chn0] CURL: Sent '[ [ 1473661453679, 1 ] ]' bytes
[Sep 12 08:24:14][chn0] CURL: upload completely sent off: 24 out of 24 bytes
[Sep 12 08:24:14][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:14][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:14][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:14][chn0] CURL: HTTP 1.0, assume close after body
[Sep 12 08:24:14][chn0] CURL: HTTP 1.0, assume close after body
[Sep 12 08:24:14][chn0] CURL: Received 139 bytes
[Sep 12 08:24:14][chn0] CURL: Received
'{"version":"0.3","exception":{"message":"No entity found with UUID:
'753d5410-c9ba-11e5-bb2d-6de8b5138a4e'","type":"Exception","code":404}}'
bytes
[Sep 12 08:24:14][chn0] CURL: Received 139 bytes
[Sep 12 08:24:14][chn0] CURL: Received
'{"version":"0.3","exception":{"message":"No entity found with UUID:
'753d5410-c9ba-11e5-bb2d-6de8b5138a4e'","type":"Exception","code":404}}'
bytes
[Sep 12 08:24:14][chn0] CURL: Closing connection 19460
[Sep 12 08:24:14][chn0] CURL Request succeeded with code: 200
[Sep 12 08:24:14][chn0] CURL: Closing connection 22
[Sep 12 08:24:14][chn0] CURL Request succeeded with code: 200
[Sep 12 08:24:15][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:15][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:15][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:16][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:16][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:16][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:17][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:18][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:19][S0] MeterS0:HWIF_GPIO:first poll returned 0
[Sep 12 08:24:19][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Sep 12 08:24:19][S0] MeterS0:HWIF_GPIO:first poll returned 1
[Sep 12 08:24:19][S0] MeterS0:HWIF_GPIO:first poll returned 1
Does anyone can point me to the right direction to get it to work?
Thanks in advance...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20160912/a0d017fe/attachment.html>
More information about the volkszaehler-users
mailing list