<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Danke. Kannst du noch einen Log schicken? Ideal wäre der, wo die 15 Ids gleich nach Start geschickt wurden. (Falls der Log Level da auf 10 oder 15 stand.)<br><br>Gruß<div>Matthias </div><div><br></div><div>Sent from a mobile device.</div></div><div><br>Am 28.04.2015 um 17:23 schrieb Viper <<a href="mailto:viper@viper1.de">viper@viper1.de</a>>:<br><br></div><blockquote type="cite"><div>
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    Hallo Matthias,<br>
    <br>
    genaue Version: <br>
    0.4.0<br>
     based on git version: heads/master-0-g0be995bdf6<br>
    <br>
    Gruß Andre<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 27.04.2015 um 21:05 schrieb Matthias
      Behr:<br>
    </div>
    <blockquote cite="mid:C83AD665-161F-4CF3-B4E4-1397AE3CAF31@mcbehr.de" type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      kannst du mal die genaue Version schicken? (vzlogger -V sollte
      mehr Ausgabe bringen)
      <div class=""><br class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">Am 27.04.2015 um 20:20 schrieb Viper <<a moz-do-not-send="true" href="mailto:viper@viper1.de" class="">viper@viper1.de</a>>:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="Content-Type" content="text/html;
                charset=utf-8" class="">
              <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;" class="">Hallo
                Matthias, <br class="">
                vzlogger Version 0.4.0<br class="">
                <br class="">
                Und mein Stromzähler liefert unter dem Identifier
                1-0:1.8.1*255 den Zählerstand. <br class="">
                <br class="">
                Gruß Andre <br class="">
                <br class="">
                <div class="gmail_quote">Am 27. April 2015 19:58:38
                  MESZ, schrieb Matthias Behr <<a moz-do-not-send="true" href="mailto:mbehr@mcbehr.de" class="">mbehr@mcbehr.de</a>>:
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">
                    Hallo,
                    <div class=""><br class="">
                    </div>
                    <div class="">welche Version nutzt du? (vzlogger -V)</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Bist du sicher, dass du den identifier
                      1-0:1.8.1*255 brauchst? (Und nicht z.B.
                      1-0:1.8.1*0?) In früheren Versionen war *255 eine
                      Wildcard und einige Logger schicken als *1, *2,…
                      die Historiendaten mit.)</div>
                    <div class=""><br class="">
                      <div class="">
                        <blockquote type="cite" class="">
                          <div class="">Am 27.04.2015 um 19:49 schrieb
                            Viper <<a moz-do-not-send="true" href="mailto:viper@viper1.de" class="">viper@viper1.de</a>>:</div>
                          <br class="Apple-interchange-newline">
                          <div class="">
                            <div bgcolor="#FFFFFF" text="#000000" class=""> Hallo Andreas,<br class="">
                              <br class="">
                              danke für deine Antwort. Ich habe gestern
                              um 16Uhr wie du angeraten hast alle Daten
                              in der Datenbank gelöscht. Dafür hatte ich
                              vzlogger gestoppt die Daten gelöscht und
                              vzlogger gestartet.<br class="">
                              Nach dem Start wurden direkt 15 Datensätze
                              übertragen!? Eigentlich sollte nur alle
                              30s ein Datensatz eingetragen werden.
                              Daher kommt auch der Peak direkt am
                              Anfang.<br class="">
                              Der zweite Peak gegen 19Uhr kommt daher
                              das ich beim Starten von vzlogger eine
                              Fehlermeldung wegen eines unbekannten
                              Identifier bekam und ich deshalb die
                              vzlogger.conf mehrmals bearbeitet habe und
                              dafür auch vzlogger mehrmals gestoppt und
                              wieder gestartet habe.<br class="">
                              Habe aus der vzlogger.conf jetzt alle
                              Beispielzähler gelöscht und der Fehler ist
                              weg.<br class="">
                              <br class="">
                              Ich vermute das die Peaks daher kommen das
                              auf einmal mehrere Datensätze übertragen
                              werden.<br class="">
                              <br class="">
                              Vielleicht kommt die Verzögerung auch
                              durch falsche Einstellungen in der
                              vzlogger.conf. Kann da einer mal bitte
                              einen Blick drauf werfen:<br class="">
                              <br class="">
                              /**<br class="">
                               * vzlogger configuration<br class="">
                               *<br class="">
                               * use proper encoded JSON with javascript
                              comments<br class="">
                               *<br class="">
                               * take a look at the wiki for detailed
                              information:<br class="">
                               * <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.volkszaehler.org/software/controller/vzlogger#configuration">http://wiki.volkszaehler.org/software/controller/vzlogger#configuration</a><br class="">
                              */<br class="">
                              <br class="">
                              {<br class="">
                                  "retry": 30,            // how long to
                              sleep between failed requests, in seconds<br class="">
                                  "daemon": true,        // run
                              periodically<br class="">
                                  "verbosity": 1,         // between 0
                              and 15<br class="">
                                  "log": "/var/log/vzlogger.log",     //
                              path to logfile, optional<br class="">
                              <br class="">
                                  "local": {<br class="">
                                      "enabled": false,   // should we
                              start the local HTTPd for serving live
                              readings?<br class="">
                                      "port": 8080,       // the TCP
                              port for the local HTTPd<br class="">
                                      "index": true,      // should we
                              provide a index listing of available
                              channels if no UUID was requested?<br class="">
                                      "timeout": 30,      // timeout for
                              long polling comet requests, 0 disables
                              comet, in seconds<br class="">
                                      "buffer": 600       // how long to
                              buffer readings for the local interface,
                              in seconds<br class="">
                                  },<br class="">
                              <br class="">
                                  "meters": [<br class="">
                               {<br class="">
                                          "enabled": true,              
                              // disabled meters will be ignored
                              (default)<br class="">
                                          "skip":
                              false,                  // if enabled,
                              errors when opening meter will lead to
                              meter being ignored<br class="">
                                          "protocol":
                              "d0",               // see 'vzlogger -h'
                              for list of available protocols<br class="">
                                          "device": "/dev/ttyAMA0",<br class="">
                              //          "dump_file":
                              "/var/log/dumpD0.txt", // optional, if set
                              logs all received/transmitted data to this
                              file<br class="">
                              //          "read_timeout": 10, //
                              optional, default 10s. Timeout value in
                              secs between single bytes received from
                              device<br class="">
                              //          "baudrate_change_delay": 400,
                              // optional, default none. Delay value in
                              ms after ACKSEQ send before baudrate
                              change<br class="">
                                          "parity":
                              "7E1",                // 7E1 oder 8N1<br class="">
                                          "baudrate":
                              9600,               // 9600moder 300<br class="">
                              //          "pullseq":
                              "2F3F210D0A",        // Pullsequenz in
                              'hex'<br class="">
                              //          "ackseq":
                              "063030300d0a",       // optional
                              (default: keine Antwortsequenz auf
                              Zaehlerantwort) kann entweder feste
                              hex-Sequenz sein (z.B. 063035300d0a für
                              mode C mit 9600bd oder 063030300d0a =
                              300bd) oder kann auf "auto" gesetzt
                              werden, damit die Sequenz autom. berechnet
                              wird und autom. auf die max. Baudrate
                              umgeschaltet wird (baudrate_read wird dann
                              ignoriert)<br class="">
                              //          "baudrate_read":
                              300,           // Baudratenumschaltung auf
                              gewünschte Baudrate, abhängig von
                              Zählerantwort<br class="">
                                          "aggtime":
                              30,                  // in Sekunden<br class="">
                                          "aggmode":
                              "MAX",               //  AVG Mittelwert
                              für Leistung, "MAX" für Zähler, "SUM" für
                              Counter<br class="">
                                          "interval":
                              30,                  // Wartezeit in
                              Sekunden bis neue Werte in die middleware
                              übertragen werden<br class="">
                                          "channel":
                              {                    // Beispiel-channel<br class="">
                                              "uuid":
                              "c2cafa00-c502-11e4-9********",<br class="">
                                              "middleware": <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="http://*****/middleware.php">"http://*****/middleware.php"</a>,<br class="">
                                              "identifier":
                              "1-0:1.8.1*255"   // alias for
                              '1-0:1.8.1', see 'vzlogger -h' for list of
                              available aliases<br class="">
                                          },<br class="">
                                      }<br class="">
                                  ]<br class="">
                              }<br class="">
                              <br class="">
                              <span id="cid:part1.01000605.07030002@viper1.de" class=""><gdichfhd.png></span><br class="">
                              <br class="">
                              <div class="moz-cite-prefix">Am 26.04.2015
                                um 11:28 schrieb Andreas Goetz:<br class="">
                              </div>
                              <blockquote cite="mid:CAD+a8MhRFZgvCgfgqmXS194RCzxkbjUQ9-PFedPZwAbopo0efA@mail.gmail.com" type="cite" class="">
                                <div dir="ltr" class="">Moin,<br class="">
                                  <div class="gmail_extra"><br class="">
                                    <div class="gmail_quote">2015-04-23
                                      19:53 GMT+02:00 Viper <span dir="ltr" class=""><<a moz-do-not-send="true" href="mailto:viper@viper1.de" target="_blank" class="">viper@viper1.de</a>></span>:<br class="">
                                      <blockquote class="gmail_quote" style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div bgcolor="#FFFFFF" text="#000000" class="">
                                          Hallo,<br class="">
                                          <br class="">
                                          seitdem ich die Daten und die
                                          Anzeige bei meinem Webspace
                                          (Strato) mache scheint die
                                          Anzeige des Stromverbrauchs
                                          eine 4 stündige Verspätung zu
                                          haben. <br class="">
                                          So muss der z.B. der Peak um
                                          kurz nach 10 Uhr der
                                          Wasserkocher sein welcher kurz
                                          nach 6 Uhr betätigt wurde und
                                          der höhere Verbrauch um 16 Uhr
                                          der Herd gegen 12 Uhr. <br class="">
                                          Als ich dies noch lokal auf
                                          meinem Raspi gemacht habe
                                          hatte ich schon das Gefühl das
                                          es eine einstündige Verspätung
                                          gab.<br class="">
                                        </div>
                                      </blockquote>
                                      <div class=""><br class="">
                                      </div>
                                      <div class="">Ich hab jetzt mal
                                        reingeschaut:<br class="">
                                      </div>
                                      <div class="">- Zeitanzeige im FE
                                        ist ok, was auch nicht wunder da
                                        timezone=browser ja immer
                                        stimmen sollte<br class="">
                                      </div>
                                      <div class="">- Wenn ich das
                                        Frontend anweise Daten aus der
                                        Zukunft anzuzeigen
                                        (&to=xxxx) dann kommen keine
                                        zusätzlichen, vorher versteckten
                                        Daten.<br class="">
                                        <br class="">
                                      </div>
                                      <div class="">Heißt für mich: die
                                        letzten Daten die gespeichert
                                        sind sind die Daten für die
                                        aktuelle Zeit- insofern ist
                                        keine Verschiebung zu erkennen.<br class="">
                                      </div>
                                      <div class=""> <br class="">
                                      </div>
                                      <blockquote class="gmail_quote" style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div bgcolor="#FFFFFF" text="#000000" class=""> Auf
                                          dem Raspi ergibt der Befehl
                                          Date, dass die Zeit stimmt.
                                          Bei meinem Webspace habe ich
                                          nur einen FTP Zugang so das
                                          ich nicht weiß wie ich die
                                          Zeit dort abfragen kann.<br class="">
                                        </div>
                                      </blockquote>
                                      <div class=""><br class="">
                                      </div>
                                      <div class="">Du könntest Dir ein
                                        kleines HPP Skript schreiben das
                                        time() oder eine andere Funktion
                                        ausgibt.<br class="">
                                         <br class="">
                                      </div>
                                      <blockquote class="gmail_quote" style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div bgcolor="#FFFFFF" text="#000000" class=""> Wenn
                                          ich mir den letzten Timestamp
                                          aus der Datenbank anschaue
                                          stimmt dieser auch.<br class="">
                                          <br class="">
                                          Hat jemand eine Idee was da
                                          schief läuft?<br class="">
                                        </div>
                                      </blockquote>
                                      <div class=""><br class="">
                                      </div>
                                      <div class="">Ehrlich gesagt- ich
                                        glaube gar nichts. Um zu testen
                                        ob Du Dich einfach irrst würde
                                        ich vorschlagen:<br class="">
                                        <br class="">
                                      </div>
                                      <div class="">- backup<br class="">
                                      </div>
                                      <div class="">- alle Daten des
                                        Kanales löschen (delete from
                                        data where channel_id = xyz,
                                        analog für aggregate falls Du
                                        das nutzt)<br class="">
                                      </div>
                                      <div class="">- Daten erfassen<br class="">
                                      </div>
                                      <div class="">- Ins Frontend
                                        schauen: tauchen die neuen Daten
                                        sofort auf? Dann sind es auch
                                        die aktuellen und es gibt keien
                                        Verschiebung ;)<br class="">
                                      </div>
                                      <div class=""> <br class="">
                                      </div>
                                      <div class="">Viele Grüße,<br class="">
                                      </div>
                                      <div class="">Andreas<br class="">
                                        <br class="">
                                      </div>
                                      <blockquote class="gmail_quote" style="margin:0 0 0
                                        .8ex;border-left:1px #ccc
                                        solid;padding-left:1ex">
                                        <div bgcolor="#FFFFFF" text="#000000" class=""> <br class="">
                                          Gruß Andre<br class="">
                                          <br class="">
                                          <span id="cid:part3.02060000.01020303@viper1.de" class=""><Mail-Anhang.png></span><br class="">
                                        </div>
                                      </blockquote>
                                    </div>
                                    <br class="">
                                  </div>
                                </div>
                              </blockquote>
                              <br class="">
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br class="">
                      <div class="">
                        <span class="Apple-style-span" style="border-collapse: separate; font-family:
                          Helvetica; font-style: normal; font-variant:
                          normal; font-weight: normal; letter-spacing:
                          normal; line-height: normal; orphans: 2;
                          text-indent: 0px; text-transform: none;
                          white-space: normal; widows: 2; word-spacing:
                          0px; border-spacing: 0px;
                          -webkit-text-decorations-in-effect: none;
                          -webkit-text-stroke-width: 0px;">
                          <div style="word-wrap: break-word;
                            -webkit-nbsp-mode: space;
                            -webkit-line-break: after-white-space;" class="">
                            <div class="">Gruß</div>
                            <div class=""><br class="">
                            </div>
                            <div class="">Matthias</div>
                          </div>
                        </span>
                      </div>
                      <br class="">
                    </div>
                  </blockquote>
                </div>
                <br class="">
                -- <br class="">
                Diese Nachricht wurde von meinem Android-Mobiltelefon
                mit K-9 Mail gesendet.</div>
            </div>
          </blockquote>
        </div>
        <br class="">
        <div class="">
          <span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-indent: 0px; text-transform: none;
            white-space: normal; widows: 2; word-spacing: 0px;
            border-spacing: 0px; -webkit-text-decorations-in-effect:
            none; -webkit-text-stroke-width: 0px;">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space;" class="">
              <div class="">Gruß</div>
              <div class=""><br class="">
              </div>
              <div class="">Matthias</div>
            </div>
          </span>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br>
  

</div></blockquote></body></html>