[vz-users] Middelware gibt falsche Werte wiederwieder

Atila Ülger uelger at googlemail.com
Mon Mar 19 23:22:06 CET 2018


Danke für die schnelle Hilfe Udo. Jetzt zeigt das Middelware wieder Werte
an. Allerdings liege ich beim aktuellen Verbrauch bei 632 kW. Was stimmt
denn hier nicht? Meine Verbaucher? Oder eher der vzlogger? :)


Am 19. März 2018 um 23:02 schrieb Udo1 <udo1 at gmx.net>:

> Änder mal die /etc/vzlogger.conf:
>
> {
>   "retry": 0,
>   "daemon": true,
>   "verbosity": 15,
>   "log": "/var/log/vzlogger.log",
>   "local": {
>     "enabled": false,
>     "port": 8080,
>     "index": false,
>     "timeout": 0,
>     "buffer": 0
>   },
>   "meters": [
>     {
>       "enabled": true,
>       "allowskip": false,
>       "interval": -1,
>       "aggtime": -1,
>       "aggfixedinterval": false,
>       "channels": [
>         {
>           "api": "volkszaehler",
>           "uuid": "hier deine, beim Erstellen des Kanals im Frontend
> erhaltene UUID, eintragen",
>           "identifier": "1-0:1.8.0",
>           "middleware": "http://localhost/middleware.php",
>           "aggmode": "none",
>           "duplicates": 0
>         }
>       ],
>       "protocol": "d0",
>       "device": "/dev/ttyUSB0",
>       "baudrate": 9600,
>       "parity": "7e1"
>     }
>   ]
> }
>
> Achte darauf, dass hinter dem letzten Zeichen kein Leerzeichen oder Zeile
> ist.
> Nach Änderung der vzlogger.conf immer ein 'sudo restart vzlogger'.
>
> Danach prüfen mit 'sudo systemctl status vzlogger' ob vzlogger auch läuft.
>
>
>
> Am 19.03.2018 um 22:43 schrieb Atila Ülger:
>
>>
>> /**
>>   * vzlogger configuration
>>   *
>>   * Use properly encoded JSON with javascript comments
>>   *
>>   * Take a look at the wiki for detailed information:
>>   * http://wiki.volkszaehler.org/software/controller/vzlogger#co
>> nfiguration
>>   *
>>   * For an online configuration editor refer to:
>>   * http://volkszaehler.github.io/vzlogger/
>>   */
>>
>>
>> {
>>    "retry" : 0,                   /* 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 if no UUID was requested?$
>>          "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,
>>            "allowskip": false,
>>            "interval": -1,
>>            "aggtime": -1,
>>            "aggfixedinterval": false,
>>            "channels": [
>>              {
>>                "uuid": "1e2a2af0-2bb8-11e8-8291-b3e818c6520d",
>>                "identifier": "1.8.0",
>>                "api": "volkszaehler",
>>                "middleware": "http://localhost/middleware.php",
>>                "aggmode": "none",
>>                "duplicates": 0
>>              }
>>            ],
>>          {
>>          "protocol" : "d0",
>>          "baudrate" : 9600,
>>          "device" : "/dev/ttyUSB0",
>>          "parity" : "7E1",
>>          "pullseq" : "2f3f210d0a", // nur wenn Aufforderung notwendig,
>> sonst auskommentieren.
>>          "interval" : 30, // Wartezeit bis zum nächsten Pull, NUR wenn
>> Aufforderung notwendig. Sonst auskommentieren.
>>          }
>>       ]
>> }
>>
>>
>>
>> Am 19. März 2018 um 22:38 schrieb Udo1 <udo1 at gmx.net <mailto:udo1 at gmx.net
>> >>:
>>
>>
>>
>>     Am 19.03.2018 um 22:13 schrieb Atila Ülger:
>>
>>         Hier habe ich jetzt nochmal deine verlinkte bespieldatei
>>         eingefügt und den rest auskommentiert.
>>
>>     Zeig mal deine /etc/vzlogger.conf
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20180319/2d0b70ec/attachment.html>


More information about the volkszaehler-users mailing list