<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Am 27.02.2013 23:21, schrieb Heiko W.:<br>
    </div>
    <blockquote cite="mid:DUB002-W58FE1770C9248544671AE3C7FD0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hallo <br>
        <br>
        da ich mir ja den Volkszähler (pi usw) zugelegt habe .. um
        meinen 'direktverbrauch' etwas genauer im Blick zu haben <br>
        und zu Optimieren .. was mir denke ich schon gut gelingt :) .. <br>
        <br>
        würde ich nun gerne wissen ob man die in der DB liegen den Daten
        auswerten kann ( nun kommt sicher die Antwort sicher geht das )
        <br>
        und zwar würde ich gerne Monatsweise meinen 'Direktverbrauch'
        wissen .. <br>
        <br>
        also z.b. Email an mich .. am 2 des desrauffolgenden Monats .. <br>
        <br>
        mit dem Inhalt: letzen Monat hast Du .... kwh Verbraucht<br>
        (am liebsten noch mit ner gegenüberstellung von dem 'kompletten'
        Verbrauch ..) <br>
        <br>
        wer könnte mir so eine 'Abfrage' basteln ? <br>
        und was müste ich für einen Cron Anlegen damit ich am 'stichtag'
        so eine Mail bekomme ?? <br>
        <br>
        würde mich freuen wenn mir das jemand Basteln könnte .. <br>
        <br>
        für Fragen oder zugriff auf meinem Pi steh ich natürlich immer
        zur Verfügung ;) <br>
        <br>
        <br>
        <br>
        Mit freundlichen Grüßen<br>
        Heiko W.<br>
      </div>
    </blockquote>
    <br>
    <br>
    <font size="+1">Se<font size="+1">lbermachen? <font size="+1">Sowas
          <font size="+1">ist in vielleich<font size="+1">t 50 Z<font
                size="+1">eilen Perl programmiert<font size="+1">. Das
                  fertige Programm hängst Du da<font size="+1">nn <font
                      size="+1">mit<br>
                      <br>
                      <font size="+1">0    0    1    *    *        /w<font
                          size="+1">oa<font size="+1">uchimmer</font></font>/<font
                          size="+1">monatsverbra<font size="+1">uc<font
                              size="+1">h.p<font size="+1">l<br>
                                <br>
                                <font size="+1">in <font size="+1">cr<font
                                      size="+1">on e<font size="+1">in
                                        (zur 0. Min<font size="+1">ute,
                                          zur 0. Stunde, am 1<font
                                            size="+1">. Tag, <font
                                              size="+1">egal welche<font
                                                size="+1">r</font></font>
                                            Monat, egal welcher Woc<font
                                              size="+1">hentag)</font></font></font></font></font></font></font><br>
                              </font></font></font></font></font></font></font><br>
                  <font size="+1">- <font size="+1">Timestamp</font> <font
                      size="+1">vom <font size="+1">01.<font size="+1">
                          des Monats 00:00 berechnen<br>
                          <font size="+1">- <font size="+1">Time<font
                                size="+1">stamp</font> des letzten Tages
                              des Monats um 23:59:59 berechnen<br>
                              <font size="+1"><font size="+1">- <font
                                    size="+1">aus der Datenbank <font
                                      size="+1">Anza<font size="+1">hl
                                        der Impul<font size="+1">se pr<font
                                            size="+1">o kW<font
                                              size="+1">h rausholen<br>
                                              <font size="+1">- Anzahl
                                                der gezählten Impulse
                                                von<font size="+1">
                                                  Timestamp bis Ti<font
                                                    size="+1">mes<font
                                                      size="+1">ta<font
                                                        size="+1">mp</font></font></font>
                                                  <font size="+1">aus DB
                                                    ra<font size="+1">usholen
                                                      <font size="+1">u<font
                                                          size="+1">nd
                                                          durch Impu<font
                                                          size="+1">lse/kWh
                                                          t<font
                                                          size="+1">eilen</font></font></font></font><br>
                                                      <font size="+1"><font
                                                          size="+1">- <font
                                                          size="+1">Email
                                                          komp<font
                                                          size="+1">onieren
                                                          und wegschicke<font
                                                          size="+1">n.<br>
                                                          <br>
                                                          <font
                                                          size="+1">Bei
                                                          der
                                                          Gelegenheit
                                                          kann man das
                                                          gleich über
                                                          das ganze Jahr
                                                          iterieren<font
                                                          size="+1"> und
                                                          <font
                                                          size="+1">nach
                                                          Lust und Laune
                                                          auch
                                                          Tagesprofile
                                                          usw. machen.<br>
                                                          <br>
                                                          <font
                                                          size="+1">We<font
                                                          size="+1">n<font
                                                          size="+1">n Du
                                                          Hilfe brau<font
                                                          size="+1">c<font
                                                          size="+1">h</font>st,
                                                          <font
                                                          size="+1">laut
                                                          schre<font
                                                          size="+1">ien.<br>
                                                          <br>
                                                          <font
                                                          size="+1">Martin</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
                            </font></font></font></font></font></font></font></font></font></font></font></font></font>
  </body>
</html>