[vz-users] Anfängerfrage

Andreas Goetz cpuidle at gmail.com
So Apr 19 21:36:56 CEST 2020


Öffne mal localhost/api im Browser- geht das? Geht es ohne /api?

Viele Grüße, Andreas


> On 19. Apr 2020, at 21:22, Karl-Otto Feger <karl-otto.feger at smuldom.de> wrote:
> 
> Hallo Alle,
> ich habe die ersten Schritte mit VZ gemacht und das RasPi-Image (7.7.2019) benutzt. Damit läuft vzlogger 0.8.0, das Frontend funktioniert.
> Mein Zähler liefert sml mit den ObisIDs 1.8.0, 1.8.1, 1.8.2 … und, der interessiert mich zuerst, 16.7.0. Im log stehen folgende Daten (Auszug):
>> [Apr 19 20:50:15][mtr0] Got 7 new readings from meter:
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=796802.80 ts=2797728000
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=433872.20 ts=2797728000
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=362930.60 ts=2797728000
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=0.00 ts=2797728000
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=0.00 ts=2797728000
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=2797728000
> [Apr 19 20:50:15][mtr0] Reading: id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=1234.00 ts=1587322215556
> [Apr 19 20:50:15][chn0] Adding reading to queue (value=1234.00 ts=1587322215556)
> [Apr 19 20:50:15][MAX]  1234.000000 @ 1587322215556
> [Apr 19 20:50:15][MAX]  RESULT 1234.000000 @ 1587322215556
> [Apr 19 20:50:15][chn0] ==> number of tuples: 1
>> Der eintrag „RESULT“ sagt mir (glaube ich..), dass meine .conf das macht, was ich möchte. Allerdings tauchen die Daten nicht im Frontend auf, denn auch im Log steht folgende Fehlermeldung:
>> [Apr 19 20:50:15][chn0] CURL: Received '<?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>">
> <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml>" xml:lang="en" lang="en">
> <head>
>   <title>404 Not Found</title>
> </head>
> <body>
>   <h1>404 Not Found</h1>
> </body>
> </html>
> ' bytes
> [Apr 19 20:50:15][chn0] CURL: Closing connection 11
> [Apr 19 20:50:15][chn0] CURL Error from middleware: unexpected character
> [Apr 19 20:50:15][chn0] Waiting 0 secs for next request due to previous failure
>  
> Ich habe keine Idee und auch nichts gefunden, was den Fehler aus der Middleware erklärt.
> Hier meine .conf:
> ***************************************
> {
>   "retry": 0,
>   "daemon": false,
>   "verbosity": 15,
>   "log": "/home/pi/haus1.log",
>   "local": {
>     "enabled": false,
>     "port": 8080,
>     "index": false,
>     "timeout": 0,
>     "buffer": 0
>   },
> "meters" : [{
>                 "protocol" : "sml",
>                 "enabled" : true,
>                 "device" : "/dev/lesekopf0",
>                 "parity" : "8N1",
>                 "baudrate" : 9600,
>                 "aggtime" : -1,
>                 "aggfixedinterval" : true,
>                 "channels": [{
>                                "uuid" : "6a98c1a0-825b-11ea-b2ab-b5242325867d",
>                                "middleware" : "http://localhost/api <http://localhost/api>",
>                                "identifier" : "1-0:16.7.0",
>                                "aggmode" : "MAX"
>                                }]
>                 }
> ]
> }
> *************************************************
> Vielleicht eine dumme Frage. Wenn ja, dann verzeiht einem Anfänger.
> ottO

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20200419/60a7c97b/attachment-0001.html>


More information about the volkszaehler-users mailing list