[vz-users] Keine Daten im Frontend

Frank Richter frank.richter83 at gmail.com
Sat Feb 9 20:33:10 CET 2019


Hallo Sebastian,

an deiner Config fällt mir

"api": "null",

auf. Versuch's mal mit "volkszaehler" oder lass die Zeile ganz weg.

Allerdings kann ich spontan nicht erklären, warum dein Log trotzdem
curl-Aufrufe zeigt und wie die angeblich leere DB und die genannten 2000
tuples zusammen passen.
Hast du vielleicht ursprünglich ohne use_local_time geloggt? Dann liegen
deine Daten irgendwo bei 1970...

Grüße
Frank

Am Sa., 9. Feb. 2019, 20:20 hat Sebastian Pricker <mail at pricker.net>
geschrieben:

> Guten Abend,
> ich ganz neu bei Volkszähler und habe heute den PI aufgesetzt. Am MT175
> mit SML Protokoll ist der Lesekopf angschlossen.
> Das Log sieht ganz gut aus, die Zählerstände werden richtig interpretiert
> aber ich glaube, sie werden nicht an die MW übertragen. Das Frontend zeigt
> keine Daten an. Legiglich bei UDID e75c6140-2c76-11e9-be8e-a1ac0e5ff9e8
> <http://192.168.178.78/middleware.php/entity/e75c6140-2c76-11e9-be8e-a1ac0e5ff9e8.json> kann
> ich unter Kanal und Daten 2000 Tuples sehen. Das Frontend zeigt aber 0W,
> bzw. 0Wh.
>
> Die MYSQL DB ist leer. Ich gehe aktuell davon aus, dass keine Daten zur MW
> übertragen werden.
>
> Ich freue mich über eure Hilfe!
> Es folgt die conf Datei und ein Auszug aus dem LOG:
>
> {
> "retry" : 3,
> "daemon": true,
> "verbosity" : 15,
> "log" : "/var/log/vzlogger.log",
>
> "local" : {
>          "enabled" : false,
>          "port" : 8080,
>          "index" : false,
>          "timeout" : 30,
>          "buffer" : 600
> },
>
> "meters" : [{
>          "protocol" : "sml",
> "use_local_time" : true,
>          "enabled" : true,
>          "device" : "/dev/ttyUSB0",
>          "parity" : "8N1",
>          "baudrate" : 9600,
>          "aggtime" : -1,
>          "aggfixedinterval" : false,
>          "channels": [{
>                  "uuid" : "e75c6140-2c76-11e9-be8e-a1ac0e5ff9e8",
>                  "middleware" : "http://localhost/middleware.php",
>                  "identifier" : "1-0:2.8.0*255",
>                  "aggmode" : "MAX"
>           },
>         {
>           "api": "null",
>           "uuid": "fe6f0620-2c95-11e9-abb8-07ce4b65064e",
>           "identifier": "1-0:16.7.0*255"
>         },
>         {
>           "api": "null",
>           "uuid": "92364c20-2c97-11e9-9f61-f93411e23967",
>           "identifier": "1-0:2.8.0*255",
> "aggmode": "max"
>         }
> ]
>      }]
> }
>
>
>
> [Feb 09 20:06:22][mtr0] Got 10 new readings from meter:
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=12682126.50
> ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=12682126.50
> ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=12631235.30
> ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=12631235.30
> ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=356.00
> ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=0.00 ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=99.00 ts=1549739182149
> [Feb 09 20:06:22][mtr0] Reading:
> id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=256.00
> ts=1549739182149
> [Feb 09 20:06:22][chn0] Adding reading to queue (value=12631235.30
> ts=1549739182149)
> [Feb 09 20:06:22][chn1] Adding reading to queue (value=356.00
> ts=1549739182149)
> [Feb 09 20:06:22][chn2] Adding reading to queue (value=12631235.30
> ts=1549739182149)
> [Feb 09 20:06:22][MAX]  12631235.300000 @ 1549739182149
> [Feb 09 20:06:22][MAX]  RESULT 12631235.300000 @ 1549739182149
> [Feb 09 20:06:22][chn0] ==> number of tuples: 1
> [Feb 09 20:06:22][chn0] compare: 1549739180163 1549739182149
> [Feb 09 20:06:22][chn0] copied 1/1 values for middleware transmission
> [Feb 09 20:06:22][chn0] JSON request body: [ [ 1549739182149,
> 12631235.300000001 ] ]
> [Feb 09 20:06:22][chn0] CURL: Hostname localhost was found in DNS cache
> [Feb 09 20:06:22][chn0] CURL:   Trying ::1...
> [Feb 09 20:06:22][chn0] CURL: TCP_NODELAY set
> [Feb 09 20:06:22][chn0] CURL: Connected to localhost (::1) port 80 (#230)
> [Feb 09 20:06:22][chn0] CURL: Sent 41 bytes..
> [Feb 09 20:06:22][chn0] CURL: Sent '[ [ 1549739182149, 12631235.300000001
> ] ]' bytes
> [Feb 09 20:06:22][chn0] CURL: upload completely sent off: 41 out of 41
> bytes
> [Feb 09 20:06:22][chn0] CURL: HTTP 1.0, assume close after body
> [Feb 09 20:06:22][chn0] CURL: Received 26 bytes
> [Feb 09 20:06:22][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes
> [Feb 09 20:06:22][chn0] CURL: Curl_http_done: called premature == 0
> [Feb 09 20:06:22][chn0] CURL: Closing connection 230
> [Feb 09 20:06:22][chn0] CURL Request succeeded with code: 200
> [Feb 09 20:06:22][chn0] emptied all (1) values
> [Feb 09 20:06:23][mtr0] Got 10 new readings from meter:
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=12682126.60
> ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=12682126.60
> ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=12631235.30
> ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=12631235.30
> ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=369.00
> ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=-2.00 ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=102.00
> ts=1549739183142
> [Feb 09 20:06:23][mtr0] Reading:
> id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=268.00
> ts=1549739183142
> [Feb 09 20:06:23][chn0] Adding reading to queue (value=12631235.30
> ts=1549739183142)
> [Feb 09 20:06:23][chn1] Adding reading to queue (value=369.00
> ts=1549739183142)
> [Feb 09 20:06:23][chn2] Adding reading to queue (value=12631235.30
> ts=1549739183142)
> [Feb 09 20:06:23][MAX]  12631235.300000 @ 1549739183142
> [Feb 09 20:06:23][MAX]  RESULT 12631235.300000 @ 1549739183142
> [Feb 09 20:06:23][chn0] ==> number of tuples: 1
> [Feb 09 20:06:23][chn0] compare: 1549739182149 1549739183142
> [Feb 09 20:06:23][chn0] copied 1/1 values for middleware transmission
> [Feb 09 20:06:23][chn0] JSON request body: [ [ 1549739183142,
> 12631235.300000001 ] ]
> [Feb 09 20:06:23][chn0] CURL: Hostname localhost was found in DNS cache
> [Feb 09 20:06:23][chn0] CURL:   Trying ::1...
> [Feb 09 20:06:23][chn0] CURL: TCP_NODELAY set
> [Feb 09 20:06:23][chn0] CURL: Connected to localhost (::1) port 80 (#231)
> [Feb 09 20:06:23][chn0] CURL: Sent 41 bytes..
> [Feb 09 20:06:23][chn0] CURL: Sent '[ [ 1549739183142, 12631235.300000001
> ] ]' bytes
> [Feb 09 20:06:23][chn0] CURL: upload completely sent off: 41 out of 41
> bytes
> [Feb 09 20:06:23][chn0] CURL: HTTP 1.0, assume close after body
> [Feb 09 20:06:23][chn0] CURL: Received 26 bytes
> [Feb 09 20:06:23][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes
> [Feb 09 20:06:23][chn0] CURL: Curl_http_done: called premature == 0
> [Feb 09 20:06:23][chn0] CURL: Closing connection 231
> [Feb 09 20:06:23][chn0] CURL Request succeeded with code: 200
> [Feb 09 20:06:23][chn0] emptied all (1) values
> [Feb 09 20:06:25][mtr0] Got 10 new readings from meter:
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=12682126.80
> ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=12682126.80
> ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=12631235.30
> ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=12631235.30
> ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=521.00
> ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=0.00 ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=101.00
> ts=1549739185159
> [Feb 09 20:06:25][mtr0] Reading:
> id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=402.00
> ts=1549739185159
> [Feb 09 20:06:25][chn0] Adding reading to queue (value=12631235.30
> ts=1549739185159)
> [Feb 09 20:06:25][chn1] Adding reading to queue (value=521.00
> ts=1549739185159)
> [Feb 09 20:06:25][chn2] Adding reading to queue (value=12631235.30
> ts=1549739185159)
> [Feb 09 20:06:25][MAX]  12631235.300000 @ 1549739185159
> [Feb 09 20:06:25][MAX]  RESULT 12631235.300000 @ 1549739185159
> [Feb 09 20:06:25][chn0] ==> number of tuples: 1
> [Feb 09 20:06:25][chn0] compare: 1549739183142 1549739185159
> [Feb 09 20:06:25][chn0] copied 1/1 values for middleware transmission
> [Feb 09 20:06:25][chn0] JSON request body: [ [ 1549739185159,
> 12631235.300000001 ] ]
> [Feb 09 20:06:25][chn0] CURL: Hostname localhost was found in DNS cache
> [Feb 09 20:06:25][chn0] CURL:   Trying ::1...
> [Feb 09 20:06:25][chn0] CURL: TCP_NODELAY set
> [Feb 09 20:06:25][chn0] CURL: Connected to localhost (::1) port 80 (#232)
> [Feb 09 20:06:25][chn0] CURL: Sent 41 bytes..
> [Feb 09 20:06:25][chn0] CURL: Sent '[ [ 1549739185159, 12631235.300000001
> ] ]' bytes
> [Feb 09 20:06:25][chn0] CURL: upload completely sent off: 41 out of 41
> bytes
> [Feb 09 20:06:25][chn0] CURL: HTTP 1.0, assume close after body
> [Feb 09 20:06:25][chn0] CURL: Received 26 bytes
> [Feb 09 20:06:25][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes
> [Feb 09 20:06:25][chn0] CURL: Curl_http_done: called premature == 0
> [Feb 09 20:06:25][chn0] CURL: Closing connection 232
> [Feb 09 20:06:25][chn0] CURL Request succeeded with code: 200
> [Feb 09 20:06:25][chn0] emptied all (1) values
> [Feb 09 20:06:26][mtr0] Got 10 new readings from meter:
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=12682127.00
> ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=12682127.00
> ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=12631235.30
> ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=12631235.30
> ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:2.8.2*255/ObisIdentifier:1-0:2.8.2*255 value=0.00 ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:16.7.0*255/ObisIdentifier:1-0:16.7.0*255 value=504.00
> ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:36.7.0*255/ObisIdentifier:1-0:36.7.0*255 value=-1.00 ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:56.7.0*255/ObisIdentifier:1-0:56.7.0*255 value=100.00
> ts=1549739186567
> [Feb 09 20:06:26][mtr0] Reading:
> id=1-0:76.7.0*255/ObisIdentifier:1-0:76.7.0*255 value=412.00
> ts=1549739186567
> [Feb 09 20:06:26][chn0] Adding reading to queue (value=12631235.30
> ts=1549739186567)
> [Feb 09 20:06:26][chn1] Adding reading to queue (value=504.00
> ts=1549739186567)
> [Feb 09 20:06:26][chn2] Adding reading to queue (value=12631235.30
> ts=1549739186567)
> [Feb 09 20:06:26][MAX]  12631235.300000 @ 1549739186567
> [Feb 09 20:06:26][MAX]  RESULT 12631235.300000 @ 1549739186567
> [Feb 09 20:06:26][chn0] ==> number of tuples: 1
> [Feb 09 20:06:26][chn0] compare: 1549739185159 1549739186567
> [Feb 09 20:06:26][chn0] copied 1/1 values for middleware transmission
> [Feb 09 20:06:26][chn0] JSON request body: [ [ 1549739186567,
> 12631235.300000001 ] ]
> [Feb 09 20:06:26][chn0] CURL: Hostname localhost was found in DNS cache
> [Feb 09 20:06:26][chn0] CURL:   Trying ::1...
> [Feb 09 20:06:26][chn0] CURL: TCP_NODELAY set
> [Feb 09 20:06:26][chn0] CURL: Connected to localhost (::1) port 80 (#233)
> [Feb 09 20:06:26][chn0] CURL: Sent 41 bytes..
> [Feb 09 20:06:26][chn0] CURL: Sent '[ [ 1549739186567, 12631235.300000001
> ] ]' bytes
> [Feb 09 20:06:26][chn0] CURL: upload completely sent off: 41 out of 41
> bytes
> [Feb 09 20:06:26][chn0] CURL: HTTP 1.0, assume close after body
> [Feb 09 20:06:26][chn0] CURL: Received 26 bytes
> [Feb 09 20:06:26][chn0] CURL: Received '{"version":"0.3","rows":1}' bytes
> [Feb 09 20:06:26][chn0] CURL: Curl_http_done: called premature == 0
> [Feb 09 20:06:26][chn0] CURL: Closing connection 233
> [Feb 09 20:06:26][chn0] CURL Request succeeded with code: 200
> [Feb 09 20:06:26][chn0] emptied all (1) values
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20190209/0360f416/attachment-0001.html>


More information about the volkszaehler-users mailing list