[vz-users] Fwd: Re: Erweiterung installieren - RPI
Matthias Behr
mbehr at mcbehr.de
Sun Oct 18 08:02:47 CEST 2015
Hast du im Frontend alle uuids konfiguriert? Du hast ja 6 x S0 konfiguriert.
> Am 18.10.2015 um 07:56 schrieb News <news at spider-wolf.de>:
>
> Hallo,
>
> habe keine Rückantwort erhalten. Hat niemand eine Idee wo mein Fehler ist??
>
> Mit freundlichen Grüßen
>
> Daniel
>
> Am 14.10.2015 um 14:55 schrieb News <news at spider-wolf.de <mailto:news at spider-wolf.de>>:
>
>> Hallo,
>>
>> meine rc.local:
>>
>> #!/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.
>>
>> # Print the IP address
>> _IP=$(hostname -I) || true
>> if [ "$_IP" ]; then
>> printf "My IP address is %s\n" "$_IP"
>> fi
>>
>> # Part of DS2482 I2C 1-Wire Master to Volkszaehler 'RaspberryPI deamon'.
>> echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device
>> # echo ds2482 0x19 > /sys/bus/i2c/devices/i2c-1/new_device
>> # echo ds2482 0x1a > /sys/bus/i2c/devices/i2c-1/new_device
>>
>> # Register I2C RTC, nur bei großer Erweiterung
>> # echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-1/new_device
>>
>> # Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz', nur bei alter große Erweiterung
>> # echo 17 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio17/edge
>> # echo 18 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio18/edge
>> # echo 22 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio22/edge
>> # echo 23 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio23/edge
>> # echo 24 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio24/edge
>> # echo 27 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio27/edge
>>
>> # Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz_new', nur bei neuer große Erweiterung
>> # echo 4 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio4/edge
>> # echo 18 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio18/edge
>> # echo 17 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio17/edge
>> # echo 23 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio23/edge
>> # echo 27 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio27/edge
>> # echo 22 > /sys/class/gpio/export && echo "rising" > /sys/class/gpio/gpio22/edge
>>
>> # GPIOs exportieren und Datenrichtung einstellen, 'Schaltausgang_new'
>> # echo 24 > /sys/class/gpio/export
>> # echo 25 > /sys/class/gpio/export
>> # echo out > /sys/class/gpio/gpio24/direction
>> # echo out > /sys/class/gpio/gpio25/direction
>>
>> # GPIOs exportieren und Datenrichtung einstellen, 'Schaltausgang'
>> echo 9 > /sys/class/gpio/export
>> echo 11 > /sys/class/gpio/export
>> echo out > /sys/class/gpio/gpio9/direction
>> echo out > /sys/class/gpio/gpio11/direction
>>
>> # 1wirevz starten
>> #/etc/init.d/1wirevz restart
>>
>> #s0vz starten
>> #sudo s0vz
>> #sudo s0vz_new
>>
>> #vzlogger starten
>> sudo vzlogger -d
>>
>> #Set Systemtime from RTC
>> # sudo hwclock -s
>>
>> exit 0
>>
>>
>>
>> und hier die vzlogger.conf:
>> {
>> "retry": 0,
>> "daemon": true,
>> "verbosity": 15,
>> "log": "/var/log/vzlogger.log",
>> // "push": [],
>> "local": {
>> "enabled": false,
>> "port": 8080,
>> "index": false,
>> "timeout": 0,
>> "buffer": 0
>> },
>> "meters": [
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "e6f572e0-56d1-11e5-a2e3-9309764087d9",
>> "identifier": "Impulse",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "s0",
>> "gpio": 24,
>> "resolution": 1000,
>> "configureGPIO": true,
>> "debounce_delay": 0
>> },
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "b9a4f840-5607-11e5-bd7e-b5567e690b9d",
>> "identifier": "Impulse",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "s0",
>> "gpio": 10,
>> "resolution": 1000,
>> "configureGPIO": true,
>> "debounce_delay": 0
>> },
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "079e4d60-f03a-11e4-a1f2-8ba3458b66ed",
>> "identifier": "Impulse",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "s0",
>> "gpio": 17,
>> "resolution": 1000,
>> "configureGPIO": true,
>> "debounce_delay": 0
>> },
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "14d79bd0-f03a-11e4-85e9-edfdbad8043f",
>> "identifier": "Impulse",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "s0",
>> "gpio": 23,
>> "resolution": 1000,
>> "configureGPIO": true,
>> "debounce_delay": 0
>> },
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "24ef24a0-f03a-11e4-8653-2f3eb496bfb8",
>> "identifier": "Impulse",
>> "api": "volkszaehler",
>> "middleware": "http://localhost/middleware.php" <http://localhost/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "s0",
>> "gpio": 27,
>> "resolution": 1000,
>> "configureGPIO": true,
>> "debounce_delay": 0
>> },
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "777a37c0-56d2-11e5-b180-2f8252896f04",
>> "identifier": "Impulse",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "s0",
>> "gpio": 22,
>> "resolution": 1000,
>> "configureGPIO": true,
>> "debounce_delay": 0
>> },
>> {
>> "enabled": true,
>> "allowskip": false,
>> "interval": -1,
>> "aggtime": -1,
>> "aggfixedinterval": false,
>> "channels": [
>> {
>> "uuid": "68102e10-ef7c-11e4-a495-7f0a84de0257",
>> "identifier": "28-000004508eec",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> },
>> {
>> "uuid": "9bee5e60-ef7c-11e4-80af-6b56ff429c5f",
>> "identifier": "28-00000450a4cc",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> },
>> {
>> "uuid": "c6cb4b20-ef7c-11e4-8fd6-972990841f29",
>> "identifier": "28-00000450cbbd",
>> "api": "volkszaehler",
>> "middleware": "http://127.0.0.1/middleware.php" <http://127.0.0.1/middleware.php>,
>> "secretKey": "",
>> "type": "device",
>> "scaler": 1,
>> "aggmode": "none",
>> "duplicates": 0
>> }
>> ],
>> "protocol": "w1therm"
>> }
>> ]
>> }
>>
>> Im Frontend habe ich drei S0 Kanäle erstellt die an den eingängen 3,4 und 5 an der Erweiterung angeklemmt wurden.
>>
>>
>> Gruß
>>
>> Daniel
>>
>>
>>
>>
>>
>> Am 06.10.2015 um 16:24 schrieb Udo1:
>>> Hallo Daniel,
>>>
>>> Am 06.10.2015 um 14:18 schrieb News:
>>>> ich bekomme keinen Chart angezeigt. Hier mal ein Auszug aus der /var/log/vzlogger.log
>>>
>>> Ich wiederhole mich:
>>>
>>>> Poste mal deine jetzige komplette /etc/rc.local und /etc/vzlogger.conf.
>>>> Was für einen Typ von Kanäle hast du im Frontend erstellt?
>>>
>>> Gruß
>>> Udo
>>>
>>
Gruß
Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20151018/869c74d1/attachment-0001.html>
More information about the volkszaehler-users
mailing list