<div dir="ltr"><div><div><div><div><div class="" id="LC28"> <i><span class="">CCALERT</span> <span class="">is</span> <span class="">intended</span> <span class="">to</span> <span class="">operate</span> <span class="">as</span> <span class="">a</span> <span class="">cronjob</span> <span class="">and </span><span class="">monitors</span> <span class="">the</span> <span class="">cost</span> <span class="">(</span><span class="">current</span> <span class="">consumption</span><span class="">)</span> <span class="">for</span> <span class="">a</span> <span class="">particular</span> <span class="">UUID</span> <span class="">'Strommesser',</span> </i></div>
<div class="" id="LC29"><i><span class="">based</span> <span class="">on</span> <span class="">the</span> <span class="">configured</span> <span class="">costs</span> <span class="">of</span> <span class="">the</span> <span class="">channel</span> <span class="">and </span><span class="">the</span> <span class="">consumption</span> <span class="">within</span> <span class="">the</span> <span class="">configured</span> <span class="">interval</span><span class="">.</span></i></div>
<i><br></i><a href="https://github.com/w3llschmidt/volkszaehler.org/blob/master/misc/tools/ccalert">https://github.com/w3llschmidt/volkszaehler.org/blob/master/misc/tools/ccalert</a><br><br></div>Als CRON-JOB -><br><br>
<font size="1"><span style="font-family:courier new,monospace">59 23 * * * root /usr/sbin/ccalert -u d427acc0-8f3e-11e2-b809-67096d51198d -c 1.90 | mail -r 'Mein VZ <dont@reply>' -s 'Stromverbrauch zu hoch!' <a href="mailto:user@host.de">user@host.de</a></span></font><br>
<br></div><span class="">Man erhält dann eine Warnmail, wenn man (Beispiel) am zurückliegenden Tage mehr als 1.90 EUR verbraucht hat.<br></span></div><span class="">Der Intervall ist festglegt auf 24h (kann mit -i überschrieben werden)<br>
<br></span></div><div><span class="">Nicht vergessen die eigene VZ-URL im Script anzupassen!<br></span></div><div><span class=""><br></span></div><span class="">Have Fun!<br><br></span></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">Am 17. Juli 2013 00:00 schrieb W3ll Schmidt <span dir="ltr"><<a href="mailto:w3llschmidt@gmail.com" target="_blank">w3llschmidt@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Es wird :)<br><br><font size="4"><span style="font-family:courier new,monospace">pi@vz:~$ ./vzmonitor<br>Tagesverbrauch war zu hoch!<br>16.42 kWh (4.20 Euro)</span></font><br><div><div class="gmail_extra"><br>
</div><div class="gmail_extra">Ergebniss lege ich in mein GIT.<br></div><div class="gmail_extra"><br><div class="gmail_quote">Am 15. Juli 2013 23:23 schrieb W3ll Schmidt <span dir="ltr"><<a href="mailto:w3llschmidt@gmail.com" target="_blank">w3llschmidt@gmail.com</a>></span>:<div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Lässt sich auch auf den Vebrauch und die Kosten der Abgefragten Periode zugreifen?!<br>
<br><pre><div><font size="4"><b><span style="font-family:courier new,monospace"><span>?kosten?</span> <span>=</span> <span>json_decoded</span><span>[</span><span>'data</span><span>'</span><span>][</span><span>'?costs?</span><span>'</span><span>]</span></span></b></font></div>
</pre><br></div>
</blockquote></div></div><br></div></div></div>
</blockquote></div><br></div>