<div dir="ltr">Hallo Johannes,<div><br></div><div>wo läuft deine middleware, auf dem gleichen Gerät wie vzlogger (dann wäre die <a href="http://127.0.0.1">http://127.0.0.1</a> richtig, die in der channel-Definition steht) oder auf einem anderen Rechner (vermute ich, da du bei push <a href="http://192.168.0.101/" rel="noreferrer" target="_blank" style="font-size:12.8px">http://192.168.0.101</a> eingetragen hast)?</div><div>push ist nur für Live-Updates, umgeht aber die middleware und somit auch die Datenbank. Lass die push Sache erstmal weg (auskommentieren), das ist die Kür wenn alles andere läuft...</div><div><br></div><div>Grüße</div><div>Frank </div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-06 18:17 GMT+01:00 johannes <span dir="ltr"><<a href="mailto:johannes.wimmer006@gmail.com" target="_blank">johannes.wimmer006@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hallo,<br>
<br>
Hier nun die gleiche Anfrage noch einmal etwas Verändert bitte diesen Thread verwenden. Danke!<div><div class="h5"><br>
<br>
<br>
ich bräuchte bitte kurz Hilfe, lese einen OSM Zähler aus, aber im<br>
Volkszähler-Frontend werden keine Werte angezeigt. Den Kanal habe ich im<br>
Frontend erstellt.<br>
<br>
<br>
Wenn ich als "push-url" <a href="http://192.168.0.101/push/data.json" rel="noreferrer" target="_blank">http://192.168.0.101/push/data<wbr>.json</a> verwende<br>
bekomme ich Fehler 404 zurück und mit meiner aktuellen Einstellung 200<br>
was ok sein sollte aber trozdem kommen keine Werte im Frontend an.<br>
<br>
<br>
Meine Config ist die aktuelle vzlogger.conf.OSMmeter Datei an mein<br>
System angepasst:<br>
<br>
// General settings<br>
"daemon": false, // run periodically<br>
"verbosity":15, // log verbosity (0=log_error and<br>
log_warning, 5=log_info, 10=log_debug, 15=log_finest)<br>
"log": "/var/log/vzlogger.log", // log file, optional<br>
"retry": 30, // http retry delay in seconds<br>
<br>
// Build-in HTTP server<br>
"local": {<br>
"enabled": true, // enable local HTTPd for serving live readings<br>
"port": 8080, // TCP port for local HTTPd<br>
"index": true, // provide index listing of available<br>
channels if no UUID was requested<br>
"timeout": 30, // timeout for long polling comet requests<br>
in seconds (0 disables comet)<br>
"buffer": -1 // HTTPd buffer configuration for serving<br>
readings, default -1<br>
// >0: number of seconds of readings to serve<br>
// <0: number of tuples to server per<br>
channel (e.g. -3 will serve 3 tuples)<br>
},<br>
<br>
// realtime notification settings<br>
"push": [<br>
{<br>
"url": "<a href="http://192.168.0.101" rel="noreferrer" target="_blank">http://192.168.0.101</a>" // notification destination,<br>
e.g. frontend push-server<br>
}<br>
],<br>
<br>
// Meter configuration<br>
<br>
"meters": [<br>
// example for OMS (M-Bus based) meter<br>
{<br>
"enabled" : true,<br>
"skip": false,<br>
"interval": -1,<br>
"aggtime": -60,<br>
"aggfixedinterval": true,<br>
"protocol": "oms",<br>
"device": "/dev/ttyUSB0",<br>
"baudrate": 9600, // optional default 9600<br></div></div>
"key": "zensiert", // AES key<div class="HOEnZb"><div class="h5"><br>
in hex without spaces. Needs to be exactly 32 chars<br>
"mbus_debug": false, // optional provide additional<br>
debug output from libmbus on the console/stderr/stdout<br>
<br>
"channel": { // example channel.<br>
multiple channels supported as well<br>
"api": "volkszaehler",<br>
"uuid": "072d3960-b230-11e6-b31e-292a8<wbr>27213ce",<br>
"middleware": "<a href="http://127.0.0.1/middleware.php" rel="noreferrer" target="_blank">http://127.0.0.1/middleware.p<wbr>hp</a>",<br>
"identifier": "1.7.0" // currently 1.7.0, 1.8.0,<br>
2.7.0, 2.8.0 supported<br>
}<br>
<br>
}<br>
]<br>
}<br>
<br>
und das ist meine Log-datei:<br>
<br>
[Dec 06 17:45:10][main] vzlogger v0.6.0 based on<br>
heads/master-0-g462c3077bd from Sun, 30 Oct 2016 15:07:12 +0100 started.<br>
[Dec 06 17:45:10][mtr0] Creating new meter with protocol oms.<br>
[Dec 06 17:45:10][oms] Using libmbus version 0.8.0<br>
[Dec 06 17:45:10][mtr0] Meter configured, enabled.<br>
[Dec 06 17:45:10] New meter initialized (protocol=oms)<br>
[Dec 06 17:45:10] Configure channel.<br>
[Dec 06 17:45:10][chn0] New channel initialized (uuid=...7213ce<br>
api=volkszaehler id=1.7.0)<br>
[Dec 06 17:45:10] Have 1 meters.<br>
[Dec 06 17:45:10][main] log level is 15<br>
[Dec 06 17:45:10][main] daemon=0, local=1<br>
[Dec 06 17:45:10] Process not daemonized...<br>
[Dec 06 17:45:10] Opened logfile /var/log/vzlogger.log<br>
[Dec 06 17:45:10][push] pushdata_thread created.<br>
[Dec 06 17:45:10][] ===> Start meters<br>
[Dec 06 17:45:10][push] Start push_data_thread<br>
[Dec 06 17:45:10][mtr0] Meter connection established<br>
[Dec 06 17:45:10][mtr0] Meter thread started<br>
[Dec 06 17:45:10][mtr0] Meter is opened. Starting channels.<br>
[Dec 06 17:45:10][chn0] Logging thread not started<br>
[Dec 06 17:45:10][http] Starting local interface HTTPd on port 8080<br>
[Dec 06 17:45:10][] Startup done.<br>
[Dec 06 17:45:10][mtr0] Number of readers: 100<br>
[Dec 06 17:45:10][mtr0] Config.daemon: 0<br>
[Dec 06 17:45:10][mtr0] Config.local: 1<br>
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:<br>
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:<br>
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:<br>
[Dec 06 17:45:10][mtr0] Got 0 new readings from meter:<br>
[Dec 06 17:45:10][oms] got valid mbus frame with len=95, type=4<br>
control=73 controlinfo=5b address=f0<br>
[Dec 06 17:45:10][oms] got SND_UD without SND_NKE<br>
[Dec 06 17:45:10][oms] got SND_UD packet<br>
[Dec 06 17:45:10][oms] control_word = 0x550<br>
[Dec 06 17:45:10][oms] AES with dyn. init. vector for 5 16-byte blocks<br>
plus 3 unencrypted data bytes<br>
[Dec 06 17:45:10][oms] successfully decrypted a frame<br>
[Dec 06 17:45:10][oms] got 10 data records: active mbus_debug for<br>
detail infos<br>
[Dec 06 17:45:10][oms] DIF=06, NDIFE=00, DIFE1=00, VIF=6d, NVIFE=00<br>
VIFE1=00 VIFE2=00<br>
[Dec 06 17:45:10][oms] time=2016-12-06 17:45:16<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=03, NVIFE=00<br>
VIFE1=00 VIFE2=00<br>
[Dec 06 17:45:10][oms] Obis 1.8.0 102505.000000 Energy (Wh)<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=83, NVIFE=01<br>
VIFE1=3c VIFE2=00<br>
[Dec 06 17:45:10][oms] Obis 2.8.0 7956.000000 Energy (Wh)<br>
[Dec 06 17:45:10][oms] DIF=84, NDIFE=01, DIFE1=10, VIF=fb, NVIFE=02<br>
VIFE1=82 VIFE2=73<br>
[Dec 06 17:45:10][oms] DIF=84, NDIFE=01, DIFE1=10, VIF=fb, NVIFE=03<br>
VIFE1=82 VIFE2=f3<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=2b, NVIFE=00<br>
VIFE1=00 VIFE2=00<br>
[Dec 06 17:45:10][oms] Obis 1.7.0 2018.000000 Power (W)<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=ab, NVIFE=01<br>
VIFE1=3c VIFE2=00<br>
[Dec 06 17:45:10][oms] Obis 2.7.0 0.000000 Power (W)<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=fb, NVIFE=01<br>
VIFE1=14 VIFE2=00<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=fb, NVIFE=02<br>
VIFE1=94 VIFE2=3c<br>
[Dec 06 17:45:10][oms] DIF=04, NDIFE=00, DIFE1=00, VIF=83, NVIFE=02<br>
VIFE1=ff VIFE2=04<br>
[Dec 06 17:45:10][mtr0] Got 4 new readings from meter:<br>
[Dec 06 17:45:11][mtr0] Reading:<br>
id=255-255:1.8.0*255/ObisIdent<wbr>ifier:255-255:1.8.0*255 value=102505.00<br>
ts=1481042716000<br>
[Dec 06 17:45:11][mtr0] Reading:<br>
id=255-255:2.8.0*255/ObisIdent<wbr>ifier:255-255:2.8.0*255 value=7956.00<br>
ts=1481042716000<br>
[Dec 06 17:45:11][mtr0] Reading:<br>
id=255-255:1.7.0*255/ObisIdent<wbr>ifier:255-255:1.7.0*255 value=2018.00<br>
ts=1481042716000<br>
[Dec 06 17:45:11][mtr0] Reading:<br>
id=255-255:2.7.0*255/ObisIdent<wbr>ifier:255-255:2.7.0*255 value=0.00<br>
ts=1481042716000<br>
[Dec 06 17:45:11][chn0] Adding reading to queue (value=2018.00<br>
ts=1481042716000)<br>
[Dec 06 17:45:11][push] push: { "data": [ { "uuid":<br>
"072d3960-b230-11e6-b31e-292a8<wbr>27213ce", "tuples": [ [ 1481042716000,<br>
2018 ] ] } ] }<br>
[Dec 06 17:45:11][push] added to uuid 072d3960-b230-11e6-b31e-292a82<wbr>7213ce<br>
[Dec 06 17:45:11][push] CURL Request to <a href="http://192.168.0.101" rel="noreferrer" target="_blank">http://192.168.0.101</a> succeeded<br>
with code: 200<br>
[Dec 06 17:45:11][push] send ok to url <a href="http://192.168.0.101" rel="noreferrer" target="_blank">http://192.168.0.101</a><br>
<br>
<br>
<br>
<br>
kann mir da bitte Jemand weiter helfen.<br>
lg Johannes<br>
<br>
</div></div></blockquote></div><br></div></div>