[vz-dev] vzlogger c++ y-Port Meter1 Problem

2013-04-03 Thread Marcus Fries
Hallo Zusammen,
in der von mir verwendeten Version 0.3.4  werden anscheinen keine Daten vom 
2ten Meter eingelesen.
Folgende Konfiguration wird verwendet und laut log auch ohne Probleme geladen.

Per Telnet werden von beiden Ports Daten gesendet.
Auch hatte ich schon den 1ten Meter deaktiviert, was keine Änderung brachte.

Hat jemand eine IDEE??


"meters" : [{
"enabled" : true,   /* disabled meters will be ignored */
"protocol" : "sml", /* see 'vzlogger -h' for list of available 
protocols */
   "host" : "192.168.0.177:7970",/* 
Bezugszaehler ueber yport */
"device" : "",
"channels": [{
"uuid" : "7598cf90-9c4b-11e2-af52-09ea1585fb60", /*OK*/
"middleware" : "http://localhost/middleware.php";,
"identifier" : "1-0:16.7.0" /* Bezugszaehler Wirkleistung 
Summe*/
}, {
   "uuid" : "6875f9c0-9c3a-11e2-b610-27e51fabb05f", 
 /*ok mit Summe stimmt noch nicht */
   "middleware" : "http://localhost/middleware.php";,
   "identifier" : "1-0:1.8.0*255" /* Bezugszaehler 
Stand  Total*/

}, {
   "uuid" :  
"13bbbfb0-9c63-11e2-ad5b-2fb5bc3d1f57",  
/*9779b9c0-9ba5-11e2-ac8f-3fed0862983b*/
   "middleware" : "http://localhost/middleware.php";,
   "identifier" : "1-0:2.8.0*255" /* Einspeise 
Zaehler Total */
   }]
 }, {
"enabled" : true,
"protocol" : "sml",
   "host" : "192.168.0.177:7980",/* HAGER PV 
Zaehler ueber yPort*/
"device" : "",
"channels" : [{
   "uuid" : "b1b176b0-96d1-11e2-b497-35f2ec9325a4",
   "middleware" : "http://localhost/middleware.php";,
 "identifier" : "1-0:16.7.0*255" /* Wirkleistung Total PV-Anlage */
}, {
   "uuid" : "7d020740-9c37-11e2-814d-41311effe063",
   "middleware" : "http://localhost/middleware.php";,
   "identifier" : "1-0:2.8.0*255" /* Gesamtertrag 
PV Anlage */
   }]
}



Marcus Fries
Mail : marcus.fr...@cutweb.de



Re: [vz-dev] Error executing grouped queries

2013-04-03 Thread Andreas Goetz

Hallo Jakob,

habe mir das jetzt nochmal in Ruhe angeschaut.



>mal möchte ich Dir aber ein kleines "goodie" zeigen dass Dich vielleicht
>interessieren wird- nämlich ein kleines Dashboard für meine PV-Anlage
>das ich als iPhone-WebApp zusammengedübelt habe:
>
>Wenn's da Interesse gibt kann ich gerne Code beitragen. Die Widgets sind
>aus dem emoncms und auf jQuery widgets umgebaut...

Sieht gut aus, bringt mir mit meinen Android-Geräten allerdings nix,
oder?
Ist alles HTML+JS- läuft überall. Die Widgets sind von emoncms.org 
ausgeborgt und für jQuery angepasst.

>Komisch- da from&to den gleichen Wert haben, aber anders angegeben
>waren! Damit glaube ich, dass mindestens noch ein weiteres Problem
>besteht- sobald "from" gesetzt ist, wird dieses nämlich in der Abfrage
>von "to" als now() gesetzt- die Abfragen sind also counterintuitiv
>_immer_  relativ zueinander.

Ja, die Logik in Interpreter ist da etwas kaputt. Ich hab das jetzt mal
gefixt.
Wäre Klasse wenn der Fix es in die offizielle Version schaffen würde 
(mit Update der Doku..)- die Logik ist wirklich krank :/

>Die Gruppierung läuft allerdings weiter nicht- auch nicht mit:
>http://localhost/vz/middleware.php/data/8f20eb60-60df-11e2-81a1-3d3ab836429e.json?from=1.1.2013&to=1.4.2013&group=month

Das hab ich gerade mal mit meinem Test-Channel probiert, das
funktioniert problemlos:

$ curl
'http://localhost/vzdemo/middleware.php/data/x.csv?tsfmt=sql&from=1.1.2013&to=1.4.2013&group=month'
# source: volkszaehler.org
# version: 0.2
# uuid: x
# from: 2013-03-31 23:59:28
# to: 2013-04-01 00:01:29
# min: 2013-03-31 23:59:28 => 297,892
# max: 2013-03-31 23:59:28 => 297,892
# average: 297,892
# consumption: 10
# rows: 2
2013-03-31 23:59:28;297,892;2

Mhm. Bei mir tatsächlich nicht. Ohne group:

{"version":"0.2","data":{"uuid":"8f20eb60-60df-11e2-81a1-3d3ab836429e","from":136408770,"to":136476780,"min":[136412340,-7040],"max":[136408770,0],"average":-1070.666,"consumption":-202266.667,"rows":2266,"tuples":[...[136447140,-480,1],[136447170,-640,1],[136447200,-800,1],[136447230,-640,1],[136447260,-800,1],[136447290,-640,1],[136447320,-960,1],[136447350,-800,1],[136447380,-640,1],[136447410,-480,1],[136447440,-320,1],[136447470,-480,1],[136447500,-640,1],[136447530,-640,1],[136447560,-800,1],[136447590,-640,1],[136447620,-800,1],[136447650,-640,1],[136447680,-800,1],[136447710,-1440,1],[136447740,-1600,1],[136447770,-1280,1],[136447800,-1440,1],[136447830,-1120,1],[136447860,-1120,1],[136447890,-1120,1],[136447920,-960,1],[136447950,-800,1],[136447980,-640,1],[136448010,-320,1],[136448040,-640,1],[136448070,-800,1],[136448100,-800,1],[136448130,-640,1],[136448160,-640,1],[136448190,-800,1],[136448220,-800,1],[136448250,-640,1],[136448280,-640,1],[136448310,-640,1],[136448340,-640,1],[136448370,-800,1],[136448400,-800,1],[136448430,-640,1],[136448460,-640,1],[136448490,-480,1],[136448520,-480,1],[136448550,-480,1],[136448580,-320,1],[136448610,-320,1],[136448640,-160,1],[136448670,-160,1],[136448700,-160,1],[136448730,-320,1],[136448760,-160,1],[136448790,-320,1],[136448820,-160,1],[136448850,-160,1],[136448880,-160,1],[136448910,-160,1],[136448940,-160,1],[136448970,-160,1],[136449000,0,1],[136449030,0,1],[136449060,0,1],[136449090,-160,1],[136449120,0,1],[136449150,0,1],[136449180,0,1],[136449210,0,1],[136449240,0,1],[136449270,0,1],[136449300,0,1],[136449330,0,1],[136449360,0,1],[136449390,0,1],[136449420,0,1],[136449450,0,1],[136449480,0,1],[136449510,0,1],[136449540,0,1],[136449570,0,1],[136449600,0,1],[136449630,0,1],[136449660,0,1],[136449690,0,1],[136449720,0,1],[136449750,0,1],[136449780,0,1],[136449810,0,1],[136449840,0,1],[136449870,0,1],[136449900,0,1],[136449930,0,1],[136449960,0,1],[136449990,0,1],[136450020,0,1],[136450050,0,1],[136450080,0,1],[136450110,0,1],[136450140,0,1],[136450170,0,1],[136450200,0,1],[136450230,0,1],[136450260,0,1],[136450290,0,1],[136450320,0,1],[136450350,0,1],[136450380,0,1],[136450410,0,1],[136450440,0,1],[136450470,0,1],[136450500,0,1],[136450530,0,1],[136450560,0,1],[136450590,0,1],[136450620,0,1],[136450650,0,1],[136450680,0,1],[136450710,0,1],[136450740,0,1],[136450770,0,1],[136450800,0,1],[136450830,0,1],[136450860,0,1],[136450890,0,1],[136450920,0,1],[136450950,0,1],[136450980,0,1],[136451010,0,1],[136451040,0,1],[136451070,0,1],[136451100,0,1],[136451130,0,1],[136451160,0,1],[136451190,0,1],[136451220,0,1],[136451250,0,1],[136451280,0,1],[1364513100

Re: [vz-dev] Alternative Implementierung für vzcompress

2013-04-03 Thread Daniel Lauckner
Abend,


Florian Knodt schrieb:
>Getestet (im Sinne von es sind noch Daten da die stimmen könnten) ist
>das Ganze gegen MySQL und SensorInterpreter, andere Sensoren sollten
>funktionieren,

Bei mir leider nicht, ich hab 3  Kanäle vom Typ electric meter und 2
power sensor.

Gekürzte Ausgabe:

Processing Sensor ID 9...
PHP Warning:  Invalid argument supplied for foreach() in 
/home/pi/bin/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type electric meter in 
/home/pi/bin/vzcompress2.php on line 161
Processing Sensor ID 10...
PHP Warning:  Invalid argument supplied for foreach() in 
/home/pi/bin/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type powersensor in 
/home/pi/bin/vzcompress2.php on line 161
Done. Purged  Datapoints from 5 Channels in 0 Seconds



mfg Daniel Lauckner



Re: [vz-dev] Alternative Implementierung für vzcompress

2013-04-03 Thread bernd

Hallo!

On Wed, 3 Apr 2013 23:51:44 +0200, Daniel Lauckner  
wrote:

Abend,


Florian Knodt schrieb:

Getestet (im Sinne von es sind noch Daten da die stimmen könnten) ist
das Ganze gegen MySQL und SensorInterpreter, andere Sensoren sollten
funktionieren,


Bei mir leider nicht, ich hab 3  Kanäle vom Typ electric meter und 2
power sensor.



Bei mir leider auch nicht:

Ungekürzte Ausgabe:

pi@raspberrypi /var/www/volkszaehler.org/misc/tools $ php 
vzcompress2.php

Processing Sensor ID 6...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type powersensor in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 8...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type gas in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 9...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type water in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 10...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type powersensor in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 13...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 18...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 19...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 20...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 21...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 22...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 23...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Processing Sensor ID 24...
PHP Warning:  Invalid argument supplied for foreach() in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 154
PHP Warning:  Could not detect inperpreter for type temperature in 
/var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 161

Done. Purged  Datapoints from 12 Channels in 0 Seconds

Hier noch die entities:
id  uuidtypeclass
6   635481a0-6fcd-11e2-8587-... powersensor channel
8   8102dbc0-6fcd-11e2-a8b7-... gas channel
9   89a19f80-6fcd-11e2-be46-... water   channel
10  ebb9c9b0-7058-11e2-b5ed-... powersensor channel
13  fc73fdb0-831f-11e2-ab63-... temperature channel
15  a10a70a0-8390-11e2-9181-... group   aggregator
16  5ac74c10-8391-11e2-967f-... group   aggregator
17  a2484840-83fa-11e2-94eb-... group   aggregator
18  27fd1e00-89c9-11e2-bc92-... temperature channel
19  3a513760-89c9-11e2-8948-... temperature channel
20  3c391a00-8a11-11e2-92ec-... temperature channel
21  1e6e25a0-8a11-11e2-96be-... temperature channel
22  2414a2e0-8a11-11e2-8319-... temperature channel
23  2dd2cb00-8a11-11e2-b8a9-... temperature channel
24  16a5a410-8a11-11e2-bfb5-... temperature channel

Hier noch die Properties:

id  entity_id   pkeyvalue
30  6 [->]   resolution