[vz-dev] vzlogger support for s0 meters on raspberry pi gpio pins

Udo1 udo1 at gmx.net
Mon Dec 22 19:28:35 CET 2014


Hi,

Am 22.12.2014 19:02, schrieb Thorben Thuermer:
> everybody else just told me the gpio/gpio*/value files already existed for them
yes, they do. Have a look in the the rc.local:

# Part of S0/Impulse to Volkszaehler 'RaspberryPI deamon','s0vz'
echo 17 > /sys/class/gpio/export && echo "rising" > 
/sys/class/gpio/gpio17/edge
echo 18 > /sys/class/gpio/export && echo "rising" > 
/sys/class/gpio/gpio18/edge
echo 23 > /sys/class/gpio/export && echo "rising" > 
/sys/class/gpio/gpio23/edge
echo 22 > /sys/class/gpio/export && echo "rising" > 
/sys/class/gpio/gpio22/edge
echo 24 > /sys/class/gpio/export && echo "rising" > 
/sys/class/gpio/gpio24/edge
echo 10 > /sys/class/gpio/export && echo "rising" > 
/sys/class/gpio/gpio10/edge

Here I have a s0vz in Python. Maybe it helps.

Udo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s0vz_py.rar
Type: application/rar
Size: 3056 bytes
Desc: not available
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-dev/attachments/20141222/ad39ccf3/attachment-0001.rar>


More information about the volkszaehler-dev mailing list