Ein "Hallo" an alle hier.
Trotz eingehender Suche hier im Forum und im Mailverteiler komme ich nicht weiter.
Ausgangslage:
Banana Pro
Bananian 16.4
Alle eingaben als root
S0 Ausgang von einem Eltako Wechselstromzähler
WSZ12D-32A
Möchte einfach meinen Stromzähler auslesen um zu sehen wie der bedarf sich über den Tag verteilt.
Middelware funktioniert (liest Daten aus eine 0-Linie ist vorhanden)
Vzlogger lässt sich starten und arbeitet
Problem:
Ich bekomme jedoch keine signale von den GPIO pin - egal ob 3;17;oder 18
mit wiringpi sind sie da
Hier meine vzlogger.conf
[code]{
"retry": 0,
"daemon": true,
"verbosity": 15,
"log": "/tmp/vzlogger.log",
"push": [],
"local": {
"enabled": false,
"port": 8080,
"index": false,
"timeout": 0,
"buffer": 0
},
"meters": [
{
"enabled": true,
"allowskip": false,
"interval": -1,
"aggtime": 5,
"aggfixedinterval": true,
"channels": [
{
"uuid": "5545f8e0-76c2-11e6-a9ef-f5d17139cbd8",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"secretKey": "",
"type": "device",
"scaler": 1,
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"device": "",
"gpio": 3,
"mmap": "rpi2",
"gpio_dir": -1,
"configureGPIO": true,
"resolution": 2000,
"send_zero": true,
"debounce_delay": 0,
"nonblocking_delay": 100000
}
]
}
/code]
und meine rc.local
[code]#!/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.
# grüne LED aus
echo none > /sys/class/leds/green\:ph24\:led1/trigger
exit 0
/code]
im Log sagt vzlogger immer
[code][Sep 11 14:34:14][mtr0] Got 4 new readings from meter:
[Sep 11 14:34:14][mtr0] Reading: id=Power/StringIdentifier: value=0.00 ts=1473597254832
[Sep 11 14:34:14][mtr0] Reading: id=Impulse/StringIdentifier: value=0.00 ts=1473597254832
[Sep 11 14:34:14][mtr0] Reading: id=Power_neg/StringIdentifier: value=0.00 ts=1473597254832
[Sep 11 14:34:14][mtr0] Reading: id=Impulse_neg/StringIdentifier: value=0.00 ts=1473597254832
[Sep 11 14:34:14][chn0] Adding reading to queue (value=0.00 ts=1473597254832)
[Sep 11 14:34:15][s0] Reading S0 - returning 4 readings (n=0 n_neg = 0)
[Sep 11 14:34:15][mtr0] Got 4 new readings from meter:
[Sep 11 14:34:15][mtr0] Reading: id=Power/StringIdentifier: value=0.00 ts=1473597255832
[Sep 11 14:34:15][mtr0] Reading: id=Impulse/StringIdentifier: value=0.00 ts=1473597255832
[Sep 11 14:34:15][mtr0] Reading: id=Power_neg/StringIdentifier: value=0.00 ts=1473597255832
[Sep 11 14:34:15][mtr0] Reading: id=Impulse_neg/StringIdentifier: value=0.00 ts=1473597255832
[Sep 11 14:34:15][chn0] Adding reading to queue (value=0.00 ts=1473597255832)
[Sep 11 14:34:16][s0] Reading S0 - returning 4 readings (n=0 n_neg = 0)
[Sep 11 14:34:16][mtr0] Got 4 new readings from meter:
[Sep 11 14:34:16][mtr0] Reading: id=Power/StringIdentifier: value=0.00 ts=1473597256832
[Sep 11 14:34:16][mtr0] Reading: id=Impulse/StringIdentifier: value=0.00 ts=1473597256832
[Sep 11 14:34:16][mtr0] Reading: id=Power_neg/StringIdentifier: value=0.00 ts=1473597256832
[Sep 11 14:34:16][mtr0] Reading: id=Impulse_neg/StringIdentifier: value=0.00 ts=1473597256832
[Sep 11 14:34:16][chn0] Adding reading to queue (value=0.00 ts=1473597256832)
[Sep 11 14:34:16][SUM] 0.000000 @ 1473597252832
[Sep 11 14:34:16][SUM] 0.000000 @ 1473597253832
[Sep 11 14:34:16][SUM] 0.000000 @ 1473597254832
[Sep 11 14:34:16][SUM] 0.000000 @ 1473597255832
[Sep 11 14:34:16][SUM] 0.000000 @ 1473597256832
[Sep 11 14:34:16][SUM] RESULT 0.000000 @ 1473597256832
[Sep 11 14:34:16][chn0] ==> number of tuples: 1
[Sep 11 14:34:16][chn0] compare: 1473597250000 1473597255000
[Sep 11 14:34:16][chn0] copied 1/1 values for middleware transmission
[Sep 11 14:34:16][chn0] JSON request body: [ [ 1473597255000, 0 ] ]
[Sep 11 14:34:16][chn0] CURL: Hostname was found in DNS cache
[Sep 11 14:34:16][chn0] CURL: Trying 127.0.0.1...
[Sep 11 14:34:16][chn0] CURL: Connected to 127.0.0.1 (127.0.0.1) port 80 (#1)
[Sep 11 14:34:16][chn0] CURL: Sent 24 bytes..
[Sep 11 14:34:16][chn0] CURL: Sent '[ [ 1473597255000, 0 ] ]' bytes
[Sep 11 14:34:16][chn0] CURL: upload completely sent off: 24 out of 24 bytes
[Sep 11 14:34:16][chn0] CURL: HTTP 1.0, assume close after body
[Sep 11 14:34:16][chn0] CURL: Received 26 bytes
[Sep 11 14:34:16][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes
[Sep 11 14:34:16][chn0] CURL: Closing connection 1
[Sep 11 14:34:16][chn0] CURL Request succeeded with code: 200
[Sep 11 14:34:16][chn0] emptied all (1) values
[Sep 11 14:34:17][s0] Reading S0 - returning 4 readings (n=0 n_neg = 0)
[Sep 11 14:34:17][mtr0] Got 4 new readings from meter:
[Sep 11 14:34:17][mtr0] Reading: id=Power/StringIdentifier: value=0.00 ts=1473597257832
[Sep 11 14:34:17][mtr0] Reading: id=Impulse/StringIdentifier: value=0.00 ts=1473597257832
[Sep 11 14:34:17][mtr0] Reading: id=Power_neg/StringIdentifier: value=0.00 ts=1473597257832
[Sep 11 14:34:17][mtr0] Reading: id=Impulse_neg/StringIdentifier: value=0.00 ts=1473597257832
[Sep 11 14:34:17][chn0] Adding reading to queue (value=0.00 ts=1473597257832)
[Sep 11 14:34:17] MapContainer::quit terminating on signal 15.
[Sep 11 14:34:17] Closing connections to terminate
[Sep 11 14:34:17][main] MeterMap::cancel entered...
[Sep 11 14:34:17][main] MeterMap::cancel wait for readingthread
[Sep 11 14:34:17][main] MeterMap::cancel wait for meter::close
[Sep 11 14:34:17][s0] Counter thread stopped with 0 imp
[Sep 11 14:34:17][main] MeterMap::cancel finished.
[Sep 11 14:34:17][main] MapContainer::quit finished.
[Sep 11 14:34:17][] Server stopped.
[Sep 11 14:34:17][] Trying to delete curlSessionProvider...
[Sep 11 14:34:17][] deleted curlSessionProvider/code]
Kann mir jemand helfen?