[vz-dev] FW: VZ installation
zeitvertreib.wissing at web.de
zeitvertreib.wissing at web.de
Tue Jul 5 18:45:35 CEST 2016
Hallo in die Runde!
Andreas hat mir empfohlen hier nochmal zu Posten.
So nun habe ich einen Kanal am laufen. Kann von einem Taster einlesen.
Dazu habe ich die vzlogger.conf vom Image verwendet. Ich habe die erste "meter" Konfiguration für GPIO 4 übernommen und enable auf true gesetzt. Alle anderen meter auf false.
Das läuft.
Will ich weitere Kanäle aktivieren, das klappt nicht.
Ich habe den laufenden Kanal kopiert und die noch vorhandenen auf False gesetzt.
Im Betrieb fällt auf, dass GPIO 4 High ist, während alle anderen low sind. Klappt da etwa die GPIO initialisierung nicht?
Welche GPIO werden mit "configureGPIO" initialisiert? braucht das ein Argument?
Gruß
Heimo
"meters": [
{
// NW1 DG 150 Imp/kWh
"enabled": true,
"allowskip": true,
"interval": 1,
"aggtime": 5,
"aggfixedinterval": false,
"channels": [
{
"uuid": "09a98c10-403d-11e6-a484-7352b5943772",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 4,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
// NW1 1_OG_li 75 Imp/kWh
"enabled": false,
"allowskip": true,
"interval": 1,
"aggtime": 5,
"aggfixedinterval": false,
"channels": [
{
"uuid": "d7c907c0-40a2-11e6-a2da-4329860fdd6d",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 17,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
// NW1 1_OG_re 1000 Imp/kWh
"enabled": true,
"allowskip": true,
"interval": 1,
"aggtime": 5,
"aggfixedinterval": false,
"channels": [
{
"uuid": "09a98c10-403d-11e6-a484-7352b5943772",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"aggmode": "sum",
"duplicates": 0
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 18,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
// NW1 Allgemein 75 Imp/kWh
"enabled": false,
"allowskip": true,
"interval": 1,
"aggtime": 5,
"aggfixedinterval": false,
"channels": [
{
"uuid": "09a98c10-403d-11e6-a484-7352b5943772",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 27,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
// Residuen aus Originaldatei
{
"enabled": false,
"allowskip": true,
"interval": -1,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "ed680f20-d6f8-11e5-a2c1-9f734e627180",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 17,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
"enabled": false,
"allowskip": true,
"interval": -1,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "0b9a3980-ba3e-11e5-8080-a1ea28a372d7",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 23,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
"enabled": false,
"allowskip": true,
"interval": -1,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "26011b40-ba3e-11e5-b07a-670dc9090fca",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://localhost/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 27,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
"enabled": false,
"allowskip": true,
"interval": -1,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "489a1550-ba3e-11e5-8269-39fd3291824d",
"identifier": "Impulse",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "sum",
"duplicates": 0
}
],
"protocol": "s0",
"gpio": 22,
"send_zero": false,
"configureGPIO": true,
"debounce_delay": 0
},
{
"enabled": false,
"allowskip": true,
"interval": 15,
"aggtime": -1,
"aggfixedinterval": false,
"channels": [
{
"uuid": "686ddd80-d8e5-11e5-ad83-53bf00b58bfd",
"identifier": "28-000004508eec",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
},
{
"uuid": "798ea430-d8e5-11e5-990c-3bcd5a553d85",
"identifier": "28-00000450a4cc",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
},
{ {
"uuid": "8957db10-d8e5-11e5-a568-075a4f799e40",
"identifier": "28-00000450cbbd",
"api": "volkszaehler",
"middleware": "http://127.0.0.1/middleware.php",
"type": "device",
"scaler": 1,
"aggmode": "none",
"duplicates": 0
}
],
"protocol": "w1therm"
}
]
}
(END)
More information about the volkszaehler-dev
mailing list