<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hallo,<br>
<br>
tut mir Leid damit ich mich schon wieder melde aber ich habe heute
mal wieder Zeit um mich um die Problemlösung zu kümmern.<br>
<br>
rc.local habe ich wie im Beispiel eingestellt<br>
<br>
in der vzlogger.conf habe ich noch meine Probleme. <br>
<br>
in der Vorherigen s0vz.cfg stand folgendes:<small><i><br>
</i><i>#################################################################################</i><i><br>
</i><i>#</i><i><br>
</i><i># S0/Impulse to Volkszaehler 'RaspberryPI deamon'.</i><i><br>
</i><i>#</i><i><br>
</i><i># <a class="moz-txt-link-freetext" href="https://github.com/w3llschmidt/s0vz.git">https://github.com/w3llschmidt/s0vz.git</a></i><i><br>
</i><i># <a class="moz-txt-link-freetext" href="https://github.com/volkszaehler/volkszaehler.org.git">https://github.com/volkszaehler/volkszaehler.org.git</a></i><i><br>
</i><i>#</i><i><br>
</i><i># Henrik Wellschmidt <a class="moz-txt-link-rfc2396E" href="mailto:w3llschmidt@gmail.com"><w3llschmidt@gmail.com></a></i><i><br>
</i><i>#</i><i><br>
</i><i># This program is free software: you can redistribute it
and/or modify</i><i><br>
</i><i># it under the terms of the GNU General Public License as
published by</i><i><br>
</i><i># the Free Software Foundation, either version 3 of the
License, or</i><i><br>
</i><i># (at your option) any later version.</i><i><br>
</i><i>#</i><i><br>
</i><i># This program is distributed in the hope that it will be
useful,</i><i><br>
</i><i># but WITHOUT ANY WARRANTY; without even the implied
warranty of</i><i><br>
</i><i># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the</i><i><br>
</i><i># GNU General Public License for more details.</i><i><br>
</i><i>#</i><i><br>
</i><i># You should have received a copy of the GNU General Public
License</i><i><br>
</i><i># along with this program. If not, see
<a class="moz-txt-link-rfc2396E" href="http://www.gnu.org/licenses/"><http://www.gnu.org/licenses/></a>.</i><i><br>
</i><i>#</i><i><br>
</i><i>###############################################################################</i><i><br>
</i><i><br>
</i><i>/* Hostname, FQDN or IP of your VZ - normaly this should be
'localhost' */</i><i><br>
</i><i>vzserver = "localhost"</i><i><br>
</i><i><br>
</i><i>/* Path to the VZ middleware.php script, WITHOUT preposed
and trailing slash */</i><i><br>
</i><i>vzpath = "middleware.php"</i><i><br>
</i><i><br>
</i><i>/* HTTP Port of your VZ */</i><i><br>
</i><i>vzport = 80</i><i><br>
</i><i><br>
</i><i>/* Define S0 inputs here, use these types in volkszaehler
frontend */</i><i><br>
</i><i>/* Channel type: Strom_messer for S0 PowerMeters */</i><i><br>
</i><i>/* Gas for Gas-Meters via reed sensor or direct (Style:
steps) */</i><i><br>
</i><i>/* GPIO0 = Input S0/0, GPIO1 = Input S0/1 and so on...
*/</i><i><br>
</i><i>GPIO0 = "eins"</i><i><br>
</i><i>GPIO1 = "zwei"</i><i><br>
</i><i>GPIO2 = "drei"</i><i><br>
</i><i>GPIO3 = "6610c520-c0e1-11e3-b408-9591c51af738"</i><i><br>
</i><i>GPIO4 = "7d1a5530-c0e1-11e3-9581-6f3a912763c8"</i><i><br>
</i><i>GPIO5 = "a125e060-c0e2-11e3-8983-37187861e54c"</i></small><br>
<br>
<br>
dies war ziemlich einfach da GPIO5 der 5. Anschluss auf der
Erweiterung ist. <br>
<br>
In der Anleitung ist eine andere Zuordnung:<br>
<br>
<table class="inline">
<tbody>
<tr class="row0">
<th class="col0"><small><i>Klemme</i></small></th>
<th class="col1"><small><i>Signal</i></small></th>
<th class="col2"><small><i>GPIO</i></small></th>
</tr>
<tr class="row1">
<td class="col0"><small><i>1Wire_Data</i></small></td>
<td class="col1"><small><i> I2C1_SDA/SCL</i></small></td>
<td class="col2"><small><i>GPIO2/3</i></small></td>
</tr>
<tr class="row2">
<td class="col0"><small><i>RXD</i></small></td>
<td class="col1"><small><i>UART0_RXD</i></small></td>
<td class="col2"><small><i>GPIO15</i></small></td>
</tr>
<tr class="row3">
<td class="col0"><small><i>TXD</i></small></td>
<td class="col1"><small><i>UART0_TXD</i></small></td>
<td class="col2"><small><i>GPIO14</i></small></td>
</tr>
<tr class="row4">
<td class="col0"><small><i>S0/0</i></small></td>
<td class="col1"><small><i>S0</i></small></td>
<td class="col2"><small><i>GPIO17</i></small></td>
</tr>
<tr class="row5">
<td class="col0"><small><i>S0/1</i></small></td>
<td class="col1"><small><i>S0</i></small></td>
<td class="col2"><small><i>GPIO18</i></small></td>
</tr>
<tr class="row6">
<td class="col0"><small><i>S0/2</i></small></td>
<td class="col1"><small><i>S0</i></small></td>
<td class="col2"><small><i>GPIO23</i></small></td>
</tr>
<tr class="row7">
<td class="col0"><small><i>S0/3</i></small></td>
<td class="col1"><small><i>S0</i></small></td>
<td class="col2"><small><i>GPIO22</i></small></td>
</tr>
<tr class="row8">
<td class="col0"><small><i>S0/4</i></small></td>
<td class="col1"><small><i>S0</i></small></td>
<td class="col2"><small><i>GPIO24</i></small></td>
</tr>
<tr class="row9">
<td class="col0"><small><i>S0/5</i></small></td>
<td class="col1"><small><i>S0</i></small></td>
<td class="col2"><small><i>GPIO10</i></small></td>
</tr>
</tbody>
</table>
<br>
Was ist nun richtig und muss ich dies so in der rc.local eintragen
wenn ich den S0/4 ansteuern will? (die UUID muss ich natürlich
anpassen)<br>
<br>
<i><small>{<br>
"enabled": true,<br>
"allowskip": false,<br>
"interval": -1,<br>
"aggtime": -1,<br>
"aggfixedinterval": false,<br>
"channels": [<br>
{<br>
<b><font color="#ff0000">"uuid":
"e6f572e0-56d1-11e5-a2e3-9309764087d9",</font></b><br>
"identifier": "Impulse",<br>
"api": "volkszaehler",<br>
"middleware": <a class="moz-txt-link-rfc2396E" href="http://127.0.0.1/middleware.php">"http://127.0.0.1/middleware.php"</a>,<br>
"secretKey": "",<br>
"type": "device",<br>
"scaler": 1,<br>
"aggmode": "none",<br>
"duplicates": 0<br>
}<br>
],<br>
"protocol": "s0",<br>
"gpio": <font color="#ff0000"><b>24,</b></font><br>
"resolution": 1000,<br>
"configureGPIO": true,<br>
"debounce_delay": 0<br>
},<br>
</small></i><br>
<br>
Danke<br>
<br>
Daniel<br>
<br>
<br>
<div class="moz-cite-prefix">Am 14.09.2015 um 16:21 schrieb Udo1:<br>
</div>
<blockquote cite="mid:55F6D7CD.1030802@gmx.net" type="cite">Hallo
Daniel,
<br>
<br>
Am 14.09.2015 um 15:23 schrieb News:
<br>
<blockquote type="cite">Ob das die neue oder die alte Erweiterung
ist habe ich keine Ahnung bzw. welche!!! </blockquote>
Nach meinen Unterlagen hast du diese:
<br>
<a class="moz-txt-link-freetext" href="http://wiki.volkszaehler.org/hardware/controllers/raspberry_pi_erweiterung_mit_schaltausgaengen">http://wiki.volkszaehler.org/hardware/controllers/raspberry_pi_erweiterung_mit_schaltausgaengen</a>
<br>
<br>
Editier die rc.local wie im Beispiel auf der Seite aufgeführt.
Alles andere fliegt raus.
<br>
<br>
Auch die vzlogger.conf musst du anhand des Beispiels editieren. Da
ich jetzt nicht weiß was du alles an der Erweiterung bzw. Raspi
hängen hast, kann ich dir dazu nichts sagen.
<br>
<br>
Gruß
<br>
Udo
<br>
</blockquote>
<br>
</body>
</html>