[vz-users] Frage wegen Frontend, vzlogger und Allgemeine Frage

Michael Baer mibaer at web.de
Thu Feb 7 21:16:02 CET 2013


Hallo,

hier das geleiche Problem - das Script habe ich gestern abend 
eingebunden.

Direktverbrauch hat keine Werte im Frontend (und in der Datenbank)!
Gesamtverbrauch hat heute Mittag im Frontend überwiegend negative 
Werte angezeigt!

Bild ist angehängt.


> > so sieht es bei mir aus (ca 20 Uhr, also keine PV Anlage)
> > 
> >  php /var/www/volkszaehler.org/htdocs/direktverbrauch.php
> > 
> > ddfea5f0-713c-11e2-8667-8d4b408bc4f7 / Bezug: 0
> > <br>f7998900-713c-11e2-ada2-795d327a9fd6 / Lieferung: 0
> > <br>0e2c3850-713d-11e2-a384-4bda743e342c / Erzeugung: 0
> > <br>Gesamtverbrauch = Bezug + Erzeugung - Lieferung: 0
> > <br>http://localhost/middleware.php/data/c28860c0-713c-11e2-b372-
> > bb9dc25e9aa0.json?operation=add&value=0&ts=1360262064359
> > <br>Direktverbrauch = Erzeugung - Lieferung : 0
> 
> wenn _alle_ werte null sind:
> das script hat soweit ich das sehe keinerlei fehlerpruefung.
> vermutlich ist die middleware url falsch o.ae.,
> alle php-fehlermeldungen werden unterdrueckt,
> und alle berechnugen die fehlschlagen liefern null.
> 
> versuche mal im script einzubauen (bei den anderen setopts):
> curl_setopt($c, CURLOPT_VERBOSE, 1);

Eingebaut - und hier das Ergebnis:

* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /middleware.php/data/d97478e0-6b03-11e2-
af05-41b6fa14facf.json?from=30%20seconds%20ago HTTP/1.1
Host: localhost
Accept: */*

* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Thu, 07 Feb 2013 20:01:39 GMT
< Server: Apache/2.2.22 (Debian)
< X-Powered-By: PHP/5.4.4-11
< Content-Length: 623
< Content-Type: application/json
< 
* Connection #0 to host localhost left intact
* Closing connection #0
Array
(
    [0] => 1360267296583
    [1] => 530.452
    [2] => 1
)
d97478e0-6b03-11e2-af05-41b6fa14facf / Bezug: 530.452
<br>* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /middleware.php/data/6ae8ff30-6c68-11e2-
a771-7f9dc9fe7e41.json?from=30%20seconds%20ago HTTP/1.1
Host: localhost
Accept: */*

* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Thu, 07 Feb 2013 20:01:39 GMT
< Server: Apache/2.2.22 (Debian)
< X-Powered-By: PHP/5.4.4-11
< Content-Length: 154
< Content-Type: application/json
< 
* Connection #0 to host localhost left intact
* Closing connection #0
6ae8ff30-6c68-11e2-a771-7f9dc9fe7e41 / Lieferung: 0
<br>* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /middleware.php/data/f8d69db0-6ad4-11e2-9092-
d93a36681377.json?from=30%20seconds%20ago HTTP/1.1
Host: localhost
Accept: */*

* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Thu, 07 Feb 2013 20:01:39 GMT
< Server: Apache/2.2.22 (Debian)
< X-Powered-By: PHP/5.4.4-11
< Content-Length: 145
< Content-Type: application/json
< 
* Connection #0 to host localhost left intact
* Closing connection #0
Array
(
    [0] => 0
    [1] => 
    [2] => 1
)
f8d69db0-6ad4-11e2-9092-d93a36681377 / Erzeugung: 
<br>Gesamtverbrauch = Bezug + Erzeugung - Lieferung: 530.452 
<br>* About to connect() to localhost port 80 (#0)
*   Trying 127.0.0.1...
* connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET /middleware.php/data/d39721d0-707f-11e2-8d22-
b9590da26554.json?operation=add&value=530.452&ts=680133649687 HTTP/1.1
Host: localhost
Accept: */*

* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Date: Thu, 07 Feb 2013 20:01:39 GMT
< Server: Apache/2.2.22 (Debian)
< X-Powered-By: PHP/5.4.4-11
< Content-Length: 17
< Content-Type: application/json
< 
* Connection #0 to host localhost left intact
* Closing connection #0
http://localhost/middleware.php/data/d39721d0-707f-11e2-8d22-
b9590da26554.json?operation=add&value=530.452&ts=680133649687 
<br>Direktverbrauch = Erzeugung - Lieferung : 0 



-- 


Gruss,
	Michael

GnuPG-ID 0x1E4ED700  http://pgpkeys.pca.dfn.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gesamt-frontend.jpeg
Type: image/jpeg
Size: 166609 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130207/85612e8f/attachment-0001.jpeg>


More information about the volkszaehler-users mailing list