<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Das Easymeter gibt nun mal SML aus, das kann ich ja nicht ändern.<br>
    <br>
    Wäre es möglich einen "Korrektur-Faktor" mit einzubauen, für falsch
    gestellte Uhren ?<br>
    <br>
    An einer falsch gestellen Uhr im Stromzähler kann man als Kunde
    nichts ändern.<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 12.02.2016 um 17:34 schrieb Matthias
      Behr:<br>
    </div>
    <blockquote
      cite="mid:A733C509-251B-44BA-AA43-E9B32C7B3423@mcbehr.de"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Ah. Du nutzt MeterSML. Ja da ist das so. Hintergrund ist, dass
      dort die Einträge oft relativ lange in den Metern gepuffert werden
      und nur selten übertragen. Da würde die lokale Empfangszeit wenig
      Sinn machen.
      <div class=""><br class="">
      </div>
      <div class="">
        <div class="">
          <div class=""><span class="Apple-tab-span" style="white-space:pre">         </span>struct
            timeval tv;</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">         </span>if
            (entry->val_time) { /* use time from meter */</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">                 </span>tv.tv_sec
            = *entry->val_time->data.timestamp;</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">                 </span>tv.tv_usec
            = 0;</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">         </span>}</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">         </span>else
            {</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">                 </span>gettimeofday(&tv,
            NULL); /* use local time */</div>
          <div class=""><span class="Apple-tab-span" style="white-space:pre">         </span><br>
          </div>
        </div>
        <div class=""><br class="">
        </div>
        <div class=""><br class="">
        </div>
        <div class="">Kann man natürlich leicht abschalten. Am besten
          wäre eine Config-Option? (wobei wir die immer vermeiden
          wollen, weil wir eh schon so viele haben…).</div>
        <div class=""><br class="">
        </div>
        <div>
          <blockquote type="cite" class="">
            <div class="">Am 12.02.2016 um 16:46 schrieb Volker <<a
                moz-do-not-send="true" href="mailto:waldbox77@gmail.com"
                class=""><a class="moz-txt-link-abbreviated" href="mailto:waldbox77@gmail.com">waldbox77@gmail.com</a></a>>:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta content="text/html; charset=utf-8"
                http-equiv="Content-Type" class="">
              <div bgcolor="#FFFFFF" text="#000000" class=""> Ich habe
                jetzt die richtige Zeit und auch einen Graphen.<br
                  class="">
                <br class="">
                Das ist so wie ich schon vermutet habe, der vzlogger
                nimmt die Zeit vom SML-Meter,<br class="">
                in meinem Fall vom Easymeter. (Steht auch so in der
                MeterSML)<br class="">
                <br class="">
                Der Installateur von den Stadtwerken hat die Uhr aber
                nicht gestellt,<br class="">
                sondern  nur den Zähler angeklemmt. Ich denke mal das
                wird häufiger vorkommen.<br class="">
                <br class="">
                <br class="">
                Wäre es nicht sinnvoll für solche Fälle dem vzlogger
                sagen zu können, er soll die lokale Zeit nehmen ?<br
                  class="">
                <br class="">
                Leider stammen meine rudimentären c++ Kenntnisse aus dem
                vorigen Jahrhundert und sind limitiert.<br class="">
                <br class="">
                <br class="">
                Gruß Volker<br class="">
                <br class="">
                <br class="">
                <div class="moz-cite-prefix">Am 09.02.2016 um 21:48
                  schrieb Matthias Behr:<br class="">
                </div>
                <blockquote
                  cite="mid:3C9BE0B2-7064-4307-A8CD-858AABF6DF41@mcbehr.de"
                  type="cite" class="">
                  <meta http-equiv="Content-Type" content="text/html;
                    charset=utf-8" class="">
                  Kannst du mal deine Config und kompletten Log (mit
                  Loglevel 15) schicken?
                  <div class=""><br class="">
                  </div>
                  <div class="">Das ist total komisch.</div>
                  <div class=""><br class="">
                  </div>
                  <div class="">Welche Version nutzt du? (vzlogger -V)</div>
                  <div class=""><br class="">
                    <div class="">
                      <blockquote type="cite" class="">
                        <div class="">Am 09.02.2016 um 21:02 schrieb
                          Volker <<a moz-do-not-send="true"
                            class="moz-txt-link-abbreviated"
                            href="mailto:waldbox77@gmail.com">waldbox77@gmail.com</a>>:</div>
                        <br class="Apple-interchange-newline">
                        <div class="">
                          <meta content="text/html; charset=utf-8"
                            http-equiv="Content-Type" class="">
                          <div bgcolor="#FFFFFF" text="#000000" class="">
                            Es handelt sich um "richtigen Log"<br
                              class="">
                            <br class="">
                            Der erste Timestamp 1454402544996 ist die
                            Zeit vom rpi (stimmt ja auch mit der Logzeit
                            überein)<br class="">
                            <br class="">
                            Die 121440397000 ist ebenfalls real und wird
                            bei den folgenden Logs jede Minute um 600
                            hochgezählt, deswegen meine Vermutung es
                            handelt sich um eine Uhr, die nicht gestellt
                            wurde und somit am 1.1.1970 begann zu
                            laufen. (Der Zähler wurde vor ca 48 Monaten
                            installiert)<br class="">
                            <br class="">
                            <br class="">
                            <br class="">
                            <div class="moz-cite-prefix">Am 09.02.2016
                              um 20:35 schrieb Matthias Behr:<br
                                class="">
                            </div>
                            <blockquote
                              cite="mid:880AEA34-0144-49AD-A3B0-745008B05426@mcbehr.de"
                              type="cite" class="">
                              <meta http-equiv="Content-Type"
                                content="text/html; charset=utf-8"
                                class="">
                              Die Zeit wird immer auf die Empfangszeit
                              vom vzlogger (Host) gesetzt:
                              <div class="">
                                <div class=""><br class="">
                                </div>
                                <div class=""><span class="Apple-tab-span" style="white-space:pre">                                           </span>ReadingIdentifier


                                  *rid(new ObisIdentifier(obis));</div>
                                <div class=""><span class="Apple-tab-span" style="white-space:pre">                                           </span>rds[number_of_tuples].identifier(rid);</div>
                                <div class=""><span class="Apple-tab-span" style="white-space:pre">                                           </span>rds[number_of_tuples].time();</div>
                                <div class=""><br class="">
                                </div>
                                <div class=""><br class="">
                                </div>
                                <div class="">D.h. wenn die Zeit falsch
                                  ist, einfach den rpi,… korrekte Zeit
                                  stellen. (ntpdate,…)</div>
                                <div class=""><br class="">
                                </div>
                                <div class="">Natürlich liesse sich auf
                                  die Zeit aus dem 96.8.0 übernehmen. Da
                                  müsste ich mir mal die Spec anschauen
                                  für was die dann gilt, …</div>
                                <div class="">Aber ist das notwendig?
                                  Wie stark weicht die Zeit ab? Wie oft
                                  schickt der die Daten?</div>
                                <div class=""><br class="">
                                </div>
                                <div class=""><br class="">
                                </div>
                                <div class="">
                                  <blockquote type="cite" class="">
                                    <div class="">Am 09.02.2016 um 10:33
                                      schrieb Volker <<a
                                        moz-do-not-send="true"
                                        class="moz-txt-link-abbreviated"
href="mailto:waldbox77@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:waldbox77@gmail.com">waldbox77@gmail.com</a></a>>:</div>
                                    <br
                                      class="Apple-interchange-newline">
                                    <div class="">
                                      <meta http-equiv="content-type"
                                        content="text/html;
                                        charset=utf-8" class="">
                                      <div bgcolor="#FFFFFF"
                                        text="#000000" class=""> Hallo,<br
                                          class="">
                                        <br class="">
                                        ich habe das Problem, daß der
                                        vzlogger einen Wert aus meinem
                                        Easymeter Q3C liest und diesen
                                        dann als Zeitstempel nimmt.<br
                                          class="">
                                        Wenn das eine Uhr im Easymeter
                                        ist, hat leider jemand vergessen
                                        sie zu stellen.<br class="">
                                        Der erste Zeitstempel von
                                        "0-0:96.8.0" hat die richtige
                                        Zeit.<br class="">
                                        Der eingelesene Wert entspricht
                                        grob geschätzt der Anzahl an
                                        Millisekunden seit
                                        Inbetriebnahme des Stromzählers.<br
                                          class="">
                                        <br class="">
                                        [Feb 02 09:42:24][sml] sending
                                        pullsequenz send (len:96 is:96).<br
                                          class="">
                                        [Feb 02 09:42:24][mtr1] Got 12
                                        new readings from meter:<br
                                          class="">
                                        [Feb 02 09:42:24][mtr1] Reading:
                                        id=0-0:96.8.0*255/ObisItentifier:0-0:96.8.0*255

                                        value=<b class="">1214403970.00</b>
                                        ts=1454402544996<br class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.0*255/ObisItentifier:1-1:1.8.0*255

                                        value=7289640.00 ts=<b class="">121440397000</b><br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-2:2.8.0*255/ObisItentifier:1-2:2.8.0*255

                                        value=45190.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.1*255/ObisItentifier:1-1:1.8.1*255

                                        value=7283990.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.2*255/ObisItentifier:1-1:1.8.2*255

                                        value=1130.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.3*255/ObisItentifier:1-1:1.8.3*255

                                        value=1110.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.4*255/ObisItentifier:1-1:1.8.4*255

                                        value=1100.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.5*255/ObisItentifier:1-1:1.8.5*255

                                        value=1110.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-1:1.8.6*255/ObisItentifier:1-1:1.8.6*255

                                        value=1200.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-2:2.8.7*255/ObisItentifier:1-2:2.8.7*255

                                        value=44080.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-2:2.8.8*255/ObisItentifier:1-2:2.8.8*255

                                        value=1110.00 ts=121440397000<br
                                          class="">
                                        [Feb 02 09:42:25][mtr1] Reading:
                                        id=1-0:96.5.5*255/ObisItentifier:1-0:96.5.5*255

                                        value=167840.00 ts=1454402544996<br
                                          class="">
                                        <br class="">
                                        Gibt es irgendeine Möglichkeit
                                        den vzlogger dazu zu bringen,
                                        den ersten Timestamp zu
                                        verwenden.<br class="">
                                        <br class="">
                                        <br class="">
                                        Gruß Volker </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br class="">
                                <div class=""> <span
                                    class="Apple-style-span"
                                    style="border-collapse: separate;
                                    line-height: normal; border-spacing:
                                    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 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>
                <br class="">
              </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>
  </body>
</html>