<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hallo,<div><br></div><div>einfacher ist die Daten direct an die middleware zu schicken.<br><br><div dir="ltr">Thomas </div><div dir="ltr"><br><blockquote type="cite">Am 22.02.2022 um 14:26 schrieb René W <tylonhh@gmail.com>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Im config Editor (<a href="https://volkszaehler.github.io/vzlogger/">https://volkszaehler.github.io/vzlogger/</a>) sind ja ein paar Hinweise zu files:</div><div>
<p class="gmail-help-inline">optional format string. Supports $v for value, $i
 for identifier and $t for timestamp. E.g. $i:$v. If empty just a value 
is read from each line of the file</p><p class="gmail-help-inline"><br></p><p class="gmail-help-inline">Demnach müsste ich versuchen die File zeilenweise mit Timestamps zu füllen. Und auch irgendwann zu leeren, oder?</p><p class="gmail-help-inline">Leider reichen dafür meine Copy&Paste und Google Skills nicht mehr aus. Vielleicht mag mir wer helfen. So sieht mein Script(?) zur Zeit aus:</p><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p class="gmail-help-inline">#! /bin/sh<br># Aktionen<br>case "$1" in<br>    start)<br>        /usr/local/bin/stromzaehler &<br>#        /opt/beispiel start<br>        ;;<br>    stop)<br>        killall stromzaehler<br>#        /opt/beispiel stop<br>        ;;<br>    restart)<br>        killall stromzaehler<br>        /usr/local/bin/stromzaehler &<br>#        /opt/beispiel restart<br>        ;;<br>esac<br> <br>exit 0</p></blockquote><div>Wie sollte die auszulesende file nun aussehen und wie der format string in der vzlogger.conf?</div><div>Ich vermute eine zeilenweise file mit timestamp und value (und optional identifier) wäre das richtige $i:$t:$v</div><div><br></div><div>Wie man verhindert dass die File überläuft.... keine Ahnung.</div><div><br></div><div>Gruß <br></div>

</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 22. Feb. 2022 um 13:41 Uhr schrieb René Warsow <<a href="mailto:tylonhh@gmail.com">tylonhh@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="DE"><div class="gmail-m_-5614696502345677660WordSection1"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Hallo,</p><p class="MsoNormal">ich habe es endlich geschafft einen S0 mit Interrupt und WiringPi auszulesen. Nun habe ich eine file /var/strom/stromcounter wo forlaufend hochgezählt wird bei jedem Impuls auf S0. Sprich ich sehe dort immer die Anzahl der Impulse. So weit so gut.</p><p class="MsoNormal">Wie bekomme ich nun diesen „Zähler“ in die vzlogger.conf?</p><p class="MsoNormal"><br>Gruß</p></div></div>
</blockquote></div>
</div></blockquote></div></body></html>