[vz-users] Raspberry Pi B + Pi-Erweiterung + TTL-Optokopf für eHZ + CNY70 an S0_1 für Gas + CNY70 an S0_2 für Wasser

Bernd Gewehr Bernd at gewehr.net
Mon Feb 4 21:53:21 CET 2013


Ich habs jetzt so gemacht:



mit:
 und 

und 

s0vz.cfg:
###############################################################################$
#
# 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;

/* S0 Inputs; VZ chanel type: Strom_messer_ / Gas (Steps/Stufen) */
GPIO0 = "d9302980-6f0a-11e2-bb84-0769ee28ec48";
GPIO1 = "e2aa9570-6f0a-11e2-947c-71799cc48480";
GPIO2 = "zwei";
GPIO3 = "drei";
GPIO4 = "vier";
GPIO5 = "funf";


Sowie
 und  und 

mit vzlogger.conf:

{
     "retry" : 30,
     "log" : "/var/log/vzlogger.log",

     "meters" : [{
         "enabled" : true,
         "device" : "/dev/ttyAMA0",
         "protocol" : "sml",
         "channels": [{
             "uuid" : "66a51ec0-6ee7-11e2-960a-a31465958303",
             "middleware" : "http://localhost/volkszaehler/middleware.php",
             "identifier" : "power",
             }, {
             "uuid" : "c2939380-6f06-11e2-8273-cf52605bfdbd",
             "middleware" : "http://localhost/volkszaehler/middleware.php",
             "identifier" : "counter",
             "counter" : true,
             }, {
             "uuid" : "ebf7ac40-6f06-11e2-9b9e-076665ee5c65",
             "middleware" : "http://localhost/volkszaehler/middleware.php",
             "identifier" : "1-0:1.8.0",
                      }],
                  }]
}


Ergebnis ist ein leerer Plot, obwohl der IR-Kopf im minicom sowas periodisch sendet:

minicom -D /dev/ttyAMA0
`ã  LK,HÃ$õV˴¨wÿbÿU1%cjÃv         9uCbbrcqc8ßãà 

Und nun?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image[1].png
Type: image/png
Size: 34626 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image[3].png
Type: image/png
Size: 49713 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image[5].png
Type: image/png
Size: 50167 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image[7].png
Type: image/png
Size: 51664 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image[9].png
Type: image/png
Size: 52358 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image[11].png
Type: image/png
Size: 52068 bytes
Desc: not available
URL: <http://volkszaehler.org/pipermail/volkszaehler-users/attachments/20130204/ca6198a2/attachment-0011.png>


More information about the volkszaehler-users mailing list