[vz-users] Erweiterung installieren - RPI

News news at spider-wolf.de
Wed Sep 23 13:11:11 CEST 2015


Hallo,

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.

rc.local habe ich wie im Beispiel eingestellt

in der vzlogger.conf habe ich noch meine Probleme.

in der Vorherigen s0vz.cfg stand folgendes:/
//#################################################################################//
//#//
//# S0/Impulse to Volkszaehler 'RaspberryPI deamon'.//
//#//
//# https://github.com/w3llschmidt/s0vz.git//
//# https://github.com/volkszaehler/volkszaehler.org.git//
//#//
//# Henrik Wellschmidt <w3llschmidt at gmail.com>//
//#//
//# This program is free software: you can redistribute it and/or modify//
//# it under the terms of the GNU General Public License as published by//
//# the Free Software Foundation, either version 3 of the License, or//
//# (at your option) any later version.//
//#//
//# This program is distributed in the hope that it will be useful,//
//# but WITHOUT ANY WARRANTY; without even the implied warranty of//
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the//
//# GNU General Public License for more details.//
//#//
//# You should have received a copy of the GNU General Public License//
//# along with this program. If not, see <http://www.gnu.org/licenses/>.//
//#//
//###############################################################################//
//
///* Hostname, FQDN or IP of your VZ - normaly this should be 
'localhost' *///
//vzserver = "localhost"//
//
///* Path to the VZ middleware.php script, WITHOUT preposed and trailing 
slash *///
//vzpath = "middleware.php"//
//
///* HTTP Port of your VZ *///
//vzport = 80//
//
///* Define S0 inputs here, use these types in volkszaehler frontend *///
///* Channel type: Strom_messer for S0 PowerMeters *///
///* Gas for Gas-Meters via reed sensor or direct (Style: steps) *///
///* GPIO0 = Input S0/0, GPIO1 = Input S0/1 and so on... *///
//GPIO0 = "eins"//
//GPIO1 = "zwei"//
//GPIO2 = "drei"//
//GPIO3 = "6610c520-c0e1-11e3-b408-9591c51af738"//
//GPIO4 = "7d1a5530-c0e1-11e3-9581-6f3a912763c8"//
//GPIO5 = "a125e060-c0e2-11e3-8983-37187861e54c"/


dies war ziemlich einfach da GPIO5 der 5. Anschluss auf der Erweiterung 
ist.

In der Anleitung ist eine andere Zuordnung:

/Klemme/ 	/Signal/ 	/GPIO/
/1Wire_Data/ 	/I2C1_SDA/SCL/ 	/GPIO2/3/
/RXD/ 	/UART0_RXD/ 	/GPIO15/
/TXD/ 	/UART0_TXD/ 	/GPIO14/
/S0/0/ 	/S0/ 	/GPIO17/
/S0/1/ 	/S0/ 	/GPIO18/
/S0/2/ 	/S0/ 	/GPIO23/
/S0/3/ 	/S0/ 	/GPIO22/
/S0/4/ 	/S0/ 	/GPIO24/
/S0/5/ 	/S0/ 	/GPIO10/


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)

/{
       "enabled": true,
       "allowskip": false,
       "interval": -1,
       "aggtime": -1,
       "aggfixedinterval": false,
       "channels": [
         {
*"uuid": "e6f572e0-56d1-11e5-a2e3-9309764087d9",*
           "identifier": "Impulse",
           "api": "volkszaehler",
           "middleware": "http://127.0.0.1/middleware.php",
           "secretKey": "",
           "type": "device",
           "scaler": 1,
           "aggmode": "none",
           "duplicates": 0
         }
       ],
       "protocol": "s0",
       "gpio": *24,*
       "resolution": 1000,
       "configureGPIO": true,
       "debounce_delay": 0
     },
/

Danke

Daniel


Am 14.09.2015 um 16:21 schrieb Udo1:
> Hallo Daniel,
>
> Am 14.09.2015 um 15:23 schrieb News:
>> Ob das die neue oder die alte Erweiterung ist habe ich keine Ahnung 
>> bzw. welche!!! 
> Nach meinen Unterlagen hast du diese:
> http://wiki.volkszaehler.org/hardware/controllers/raspberry_pi_erweiterung_mit_schaltausgaengen 
>
>
> Editier die rc.local wie im Beispiel auf der Seite aufgeführt. Alles 
> andere fliegt raus.
>
> 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.
>
> Gruß
> Udo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20150923/7451c6c0/attachment.html>


More information about the volkszaehler-users mailing list