<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hallo,<br>
    <br>
    kann man das Schreiben in die mySQL Datenbank auch komplett
    ausschalten, so dass man nur ca. 1 Tag im RAM hat.<br>
    Ansonsten würde ich die Daten dann zyklisch per MQTT abfragen und in
    eine InfluxDB Datenbank schreiben.<br>
    <br>
    Gruß,<br>
    Stefan<br>
    <br>
    <div class="moz-cite-prefix">Am 29.11.2022 um 05:37 schrieb
      Sebastian Blaesing:<br>
    </div>
    <blockquote type="cite"
      cite="mid:70B8A34E-C3A0-4C8B-BD69-5654C2970AFB@gmx.net">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Guten Morgen,
      <div><br>
      </div>
      <div>Du kannst dann maximal noch die Datenbank auf einen anderen
        PC/Server legen, bzw wie schon gesagt wurde - auf das NAS. Rein
        zum booten hält die SD Karte beim Pi deutlich länger, bzw fast
        ewig. Wenn du zb Daten nur alle 60 Sekunden speicherst zögerst
        du den Crash nur ein wenig raus, denke das hat kaum einen
        Effekt. Denn beim Auslesen, aufbereiten  und visualisieren der
        Daten schrubbelt der auch ordentlich auf der Karte rum. </div>
      <div><br>
      </div>
      <div>Grüße </div>
      <div>Sebastian <br>
        <br>
        <div dir="ltr">Von meinem iPhone gesendet</div>
        <div dir="ltr"><br>
          <blockquote type="cite">Am 28.11.2022 um 20:26 schrieb
            Friedrich Kessler <a class="moz-txt-link-rfc2396E" href="mailto:vz@riare.de"><vz@riare.de></a>:<br>
            <br>
          </blockquote>
        </div>
        <blockquote type="cite">
          <div dir="ltr">
            <div>Hallo Stefan,</div>
            <div>auch wenn SSD nicht „Deine“ Lösung ist.</div>
            <div>Mit der SSD hast du absolut keine Schreibaktivitäten
              auf der SD Card – und damit 0 – Stress. Es gibt für den
              Zero  Adapter mit weiteren USB Anschlüssen (ich habe einen
              Zero 2w – damit habe ich alle Anschlussmöglichkeiten – für
              ca. 17,—€).</div>
            <div>Gruss</div>
            <div>Friedrich</div>
            <div><br>
            </div>
            <span id="OLK_SRC_BODY_SECTION">
              <div style="font-family:Calibri; font-size:11pt;
                text-align:left; color:black; BORDER-BOTTOM: medium
                none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in;
                PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP:
                #b5c4df 1pt solid; BORDER-RIGHT: medium none;
                PADDING-TOP: 3pt"><span style="font-weight:bold">Von: </span>
                volkszaehler-users <<a
                  href="mailto:volkszaehler-users-bounces@demo.volkszaehler.org"
                  moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users-bounces@demo.volkszaehler.org</a>>
                on behalf of "Stefan S." <<a
                  href="mailto:shikvz@gmx.com" moz-do-not-send="true"
                  class="moz-txt-link-freetext">shikvz@gmx.com</a>><br>
                <span style="font-weight:bold">Antworten an: </span>
                "volkszaehler.org - users" <<a
                  href="mailto:volkszaehler-users@demo.volkszaehler.org"
                  moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                <span style="font-weight:bold">Datum: </span> Montag,
                28. November 2022 um 17:55<br>
                <span style="font-weight:bold">An: </span> <<a
                  href="mailto:volkszaehler-users@demo.volkszaehler.org"
                  moz-do-not-send="true" class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                <span style="font-weight:bold">Betreff: </span> Re:
                [vz-users] SD-Karten Crash<br>
              </div>
              <div><br>
              </div>
              <div>
                <meta http-equiv="Content-Type" content="text/html;
                  charset=UTF-8">
                <div> Hallo,<br>
                  <br>
                  SSD ist nicht wirklich eine Lösung da ich einen
                  Raspberry Zero W verwende.<br>
                  Wenn ich es richtig verstehe bewirkt eine "aggtime:
                  60", dass nur alle 60s in die mySQL Datenbank
                  geschrieben wird?<br>
                  Das muss doch gehen? <br>
                  <br>
                  Gruß,<br>
                  Stefan<br>
                  <br>
                  <div class="moz-cite-prefix">Am 22.11.2022 um 13:57
                    schrieb Sebastian Blaesing:<br>
                  </div>
                  <blockquote type="cite"
                    cite="mid:856CA617-5C3D-4998-A24C-27A317E3B169@gmx.net">
                    <meta http-equiv="content-type" content="text/html;
                      charset=UTF-8">
                    Ergänzend: wie Freidrich sagte, bei den Pi 2 ist
                    eine SD-Karte zum booten nötig(es sei denn man will
                    aufwendig Firmware Updates einspielen), bei den
                    neueren nicht. Da bootet er von der SSD oder USB
                    Stick, wenn keine SD Karte eingesteckt ist. Eine SSD
                    ist auf jedenfall der richtige Weg um SD-Karten-Tod
                    vorzubeugen <br>
                    <br>
                    <div dir="ltr">Von meinem iPhone gesendet</div>
                    <div dir="ltr"><br>
                      <blockquote type="cite">Am 22.11.2022 um 13:38
                        schrieb Friedrich Kessler <a
                          class="moz-txt-link-rfc2396E"
                          href="mailto:vz@riare.de"
                          moz-do-not-send="true"><vz@riare.de></a>:<br>
                        <br>
                      </blockquote>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Hallo,</div>
                        <div>Ich habe an 4 Raspis 2 seit 2015  SSD’s
                           mit allen Daten drauf. Lediglich zum Booten
                          wird die SD Card benötigt (hat aber in den 8
                          Jahren keine 10x booten müssen).</div>
                        <div>Läuft alles ohne Probleme – und eine SSD
                          ist heute keine wirkliche Investition im
                          Verhältnis zum Aufwand und Ärger.</div>
                        <div>Gruss</div>
                        <div>Friedrich</div>
                        <div><br>
                        </div>
                        <span id="OLK_SRC_BODY_SECTION">
                          <div style="font-family:Calibri;
                            font-size:11pt; text-align:left;
                            color:black; BORDER-BOTTOM: medium none;
                            BORDER-LEFT: medium none; PADDING-BOTTOM:
                            0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in;
                            BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT:
                            medium none; PADDING-TOP: 3pt"><span
                              style="font-weight:bold">Von: </span>
                            volkszaehler-users <<a
                              href="mailto:volkszaehler-users-bounces@demo.volkszaehler.org"
                              moz-do-not-send="true"
                              class="moz-txt-link-freetext">volkszaehler-users-bounces@demo.volkszaehler.org</a>>
                            on behalf of "Stefan S." <<a
                              href="mailto:shikvz@gmx.com"
                              moz-do-not-send="true"
                              class="moz-txt-link-freetext">shikvz@gmx.com</a>><br>
                            <span style="font-weight:bold">Antworten an:
                            </span> "volkszaehler.org - users" <<a
                              href="mailto:volkszaehler-users@demo.volkszaehler.org"
                              moz-do-not-send="true"
                              class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                            <span style="font-weight:bold">Datum: </span>
                            Dienstag, 22. November 2022 um 06:52<br>
                            <span style="font-weight:bold">An: </span>
                            <<a
                              href="mailto:volkszaehler-users@demo.volkszaehler.org"
                              moz-do-not-send="true"
                              class="moz-txt-link-freetext">volkszaehler-users@demo.volkszaehler.org</a>><br>
                            <span style="font-weight:bold">Betreff: </span>
                            [vz-users] SD-Karten Crash<br>
                          </div>
                          <div><br>
                          </div>
                          <div>
                            <meta http-equiv="content-type"
                              content="text/html; charset=UTF-8">
                            <div> Hallo,<br>
                              <br>
                              meine SD-Karten halten aktuell kaum länger
                              als ein Jahr. Bei mir sind inzwischen
                              schon einige zerstört.<br>
                              Kann ich an der Config noch was optimiert
                              werden, damit diese länger halten? Danke!<br>
                              <br>
                              {<br>
                                  // General settings<br>
                                  "daemon": true,        // run
                              periodically<br>
                                  "verbosity": 0,         // log
                              verbosity (0=log_alert, 1=log_error,
                              3=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": false,   // enable
                              local HTTPd for serving live readings<br>
                                      "port": 8080,       // TCP port
                              for local HTTPd<br>
                                      "index": true,      // provide
                              index listing of available channels if no
                              UUID was requested<br>
                                      "timeout": 30,      // timeout for
                              long polling comet requests in seconds (0
                              disables comet)<br>
                                      "buffer": 600        // HTTPd
                              buffer configuration for serving readings,
                              default -1<br>
                                                          //   >0:
                              number of seconds of readings to serve<br>
                                                          //   <0:
                              number of tuples to server per channel
                              (e.g. -3 will serve 3 tuples)<br>
                                  },<br>
                              <br>
                                  // realtime notification settings<br>
                                  "push": [<br>
                                      {<br>
                                          "url": <a
                                class="moz-txt-link-rfc2396E"
                                href="http://127.0.0.1:5582"
                                moz-do-not-send="true">"http://127.0.0.1:5582"</a> 
                              // notification destination, e.g. frontend
                              push-server<br>
                                      }<br>
                                  ],<br>
                                  // Meter configuration<br>
                                  "meters": [{<br>
                              <br>
                                      "enabled" : true,<br>
                                      "allowskip": false,<br>
                                      "aggtime": 60,<br>
                                      "aggfixedinterval": false,<br>
                                      "channels": [{<br>
                                              "uuid" : "",<br>
                                              "middleware" : <a
                                class="moz-txt-link-rfc2396E"
                                href="http://localhost/middleware.php"
                                moz-do-not-send="true">"http://localhost/middleware.php"</a>,<br>
                                              "identifier" :
                              "1-0:1.8.0",  //Zählerstände<br>
                                              "api": "volkszaehler",<br>
                                              "aggmode": "max"<br>
                                              }, {<br>
                                              "uuid" : "",<br>
                                              "middleware" : <a
                                class="moz-txt-link-rfc2396E"
                                href="http://localhost/middleware.php"
                                moz-do-not-send="true">"http://localhost/middleware.php"</a>,<br>
                                              "identifier" :
                              "1-0:16.7.0", // Leistungswerte<br>
                                              "api": "null",<br>
                                              "aggmode": "none" <br>
                                              }],<br>
                                      "protocol": "sml",<br>
                                      "device": "/dev/ttyUSB0",<br>
                                      "baudrate": 9600,<br>
                                      "parity": "8n1",<br>
                                      "use_local_time": true<br>
                                      },<br>
                              <br>
                              Gruß,<br>
                              Stefan<br>
                            </div>
                          </div>
                        </span> </div>
                    </blockquote>
                  </blockquote>
                  <br>
                </div>
              </div>
            </span>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>