<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">are you sure that you’ve really attached gpio22 if that one is the problem? which raspi are you using?<div class=""><br class=""></div><div class="">Cheers,</div><div class="">Andreas<br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 15 Sep 2016, at 09:24, fiets fietsenwiel <<a href="mailto:fietsenwiel@gmail.com" class="">fietsenwiel@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">No, thats not it.</div><div class=""><br class=""></div><div class="">When I exchange the GPIO numbers (gpio 4 and gpio 22) in the config file than "Energie opbrengst" gets the info, so the uuid is right.</div><div class="">And when I change the wires on the raspberry then (gpio 4 and gpio 22) than always the sensor with GPIO 4 in the config file receives info, the other doesn't. So both wires gives output...</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-09-12 10:03 GMT+02:00 Christian Schnellrieder <span dir="ltr" class=""><<a href="mailto:schnellrieder.cs@gmail.com" target="_blank" class="">schnellrieder.cs@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hello.<span class=""><div class=""><br class=""></div><div class="">><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif" class="">[Sep 12 08:24:14][chn0] CURL: Received '{"version":"0.3","exception":</span><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif" class=""><wbr class="">{"message":"No entity found with UUID: '753d5410-c9ba-11e5-bb2d-</span><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif" class="">6de8b<wbr class="">5138a4e'","type":"</span><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif" class="">Exception","<wbr class="">code":404}}' bytes</span> </div><div class=""><br class=""></div></span><div class="">Looks as if the UUID is wrong.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Br,</div><div class="">Christian <br class=""><div class=""><br class=""></div><div class=""><br class=""></div></div></div><div class="HOEnZb"><div class="h5"><br class=""><div class="gmail_quote"><div dir="ltr" class="">fiets fietsenwiel <<a href="mailto:fietsenwiel@gmail.com" target="_blank" class="">fietsenwiel@gmail.com</a>> schrieb am Mo., 12. Sep. 2016 um 08:25 Uhr:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">I am a new user of volkszaehler, trying to get it to work.</div><div class="">But I don't succeed at all.<br class=""></div><div class=""><br class=""></div><div class="">My SQL database keeps empty, no data is received.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">My config file is this:</div><div class=""><div class="">{</div><div class="">"retry" : 30,                   /* how long to sleep between failed requests, in seconds */</div><div class="">"daemon": true,                /* run periodically */</div><div class="">"verbosity" : 15,               /* between 0 and 15 */</div><div class="">"log" : "/var/log/vzlogger.log",/* path to logfile, optional */</div><div class=""><br class=""></div><div class="">"local" : {</div><div class="">        "enabled" : false,      /* should we start the local HTTPd for serving live readings? */</div><div class="">        "port" : 8080,            /* the TCP port for the local HTTPd */</div><div class="">        "index" : true,         /* should we provide a index listing of available channels? */</div><div class="">        "timeout" : 30,         /* timeout for long polling comet requests, 0 disables comet, in seconds */</div><div class="">        "buffer" : 600          /* how long to buffer readings for the local interface, in seconds */</div><div class="">},</div><div class=""><br class=""></div><div class="">"meters" : [{</div><div class="">      "enabled" : true,       /* disabled meters will be ignored */</div><div class="">      "allowskip": false,</div><div class="">      "interval": 1,</div><div class="">      "aggtime": -1,</div><div class="">      "channels": [</div><div class="">        {</div><div class="">          "uuid": "753d5410-c9ba-11e5-bb2d-<wbr class="">6de8b5138a4e",</div><div class="">          "identifier": "Impulse",</div><div class="">          "api": "volkszaehler",</div><div class="">          "middleware": "<a href="http://localhost/middleware.php" target="_blank" class="">http://localhost/middleware.<wbr class="">php</a>",</div><div class="">          "aggmode": "none",</div><div class="">          "duplicates": 0</div><div class="">        }</div><div class="">      ],</div><div class="">      "aggfixedinterval": false,</div><div class="">      "protocol": "s0",</div><div class="">      "device": "",</div><div class="">      "gpio": 4,</div><div class="">      "gpio_dir": -1,</div><div class="">      "configureGPIO": true,</div><div class="">      "resolution": 1,</div><div class="">      "send_zero": false,</div><div class="">      "debounce_delay": 30,</div><div class="">      "nonblocking_delay": 100000</div><div class=""><br class=""></div><div class="">        }</div><div class="">]}</div></div><div class=""><br class=""></div><div class="">running sudo vzlogger -c /etc/vzloggertest.conf shows:</div><div class=""><br class=""></div><div class=""><div class="">[Sep 12 08:21:56][main] vzlogger v0.5.1 based on heads/master-0-g7e79f4c700-<wbr class="">dirty from Fri, 5 Feb 2016 18:03:28 +0100 started.</div><div class="">[Sep 12 08:21:56][mtr0] Creating new meter with protocol s0.</div><div class="">[Sep 12 08:21:56][mtr0] Meter configured, enabled.</div><div class="">[Sep 12 08:21:56]       New meter initialized (protocol=s0)</div><div class="">[Sep 12 08:21:56]       Configure channel.</div><div class="">[Sep 12 08:21:56][chn0] New channel initialized (uuid=...138a4e api=volkszaehler id=Impulse)</div><div class="">[Sep 12 08:21:56]       Have 1 meters.</div><div class="">[Sep 12 08:21:56][main] log level is 15</div><div class="">[Sep 12 08:21:56][main] daemon=1, local=0</div><div class="">[Sep 12 08:21:56]       Daemonize process...</div></div><div class=""><br class=""></div><div class="">And the logfile shows:</div><div class=""><br class=""></div><div class=""><div class="">[Sep 12 08:24:14][s0]   Reading S0 - returning 2 readings (n=1 n_neg = 0)</div><div class="">[Sep 12 08:24:14][mtr0] Got 2 new readings from meter:</div><div class="">[Sep 12 08:24:14][mtr0] Reading: id=Power/StringItentifier: value=604432.50 ts=1473661453679</div><div class="">[Sep 12 08:24:14][mtr0] Reading: id=Impulse/StringItentifier: value=1.00 ts=1473661453679</div><div class="">[Sep 12 08:24:14][chn0] Adding reading to queue (value=1.00 ts=1473661453679)</div><div class="">[Sep 12 08:24:14][chn0] Buffer dump (size=1): {1.0000,}</div><div class="">[Sep 12 08:24:14][mtr0] Next reading in 1 seconds</div><div class="">[Sep 12 08:24:14][chn0] ==> number of tuples: 1</div><div class="">[Sep 12 08:24:14][chn0] compare: 1473661447723 1473661453679</div><div class="">[Sep 12 08:24:14][chn0] JSON request body: [ [ 1473661453679, 1 ] ]</div><div class="">[Sep 12 08:24:14][chn0] CURL: Hostname was found in DNS cache</div><div class="">[Sep 12 08:24:14][chn0] CURL:   Trying ::1...</div><div class="">[Sep 12 08:24:14][chn0] CURL: Connected to localhost (::1) port 80 (#19460)</div><div class="">[Sep 12 08:24:14][chn0] CURL: Sent 24 bytes..</div><div class="">[Sep 12 08:24:14][chn0] CURL: Sent '[ [ 1473661453679, 1 ] ]' bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: upload completely sent off: 24 out of 24 bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: Sent 24 bytes..</div><div class="">[Sep 12 08:24:14][chn0] CURL: Sent '[ [ 1473661453679, 1 ] ]' bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: upload completely sent off: 24 out of 24 bytes</div><div class="">[Sep 12 08:24:14][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:14][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:14][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:14][chn0] CURL: HTTP 1.0, assume close after body</div><div class="">[Sep 12 08:24:14][chn0] CURL: HTTP 1.0, assume close after body</div><div class="">[Sep 12 08:24:14][chn0] CURL: Received 139 bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: Received '{"version":"0.3","exception":<wbr class="">{"message":"No entity found with UUID: '753d5410-c9ba-11e5-bb2d-<wbr class="">6de8b5138a4e'","type":"<wbr class="">Exception","code":404}}' bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: Received 139 bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: Received '{"version":"0.3","exception":<wbr class="">{"message":"No entity found with UUID: '753d5410-c9ba-11e5-bb2d-<wbr class="">6de8b5138a4e'","type":"<wbr class="">Exception","code":404}}' bytes</div><div class="">[Sep 12 08:24:14][chn0] CURL: Closing connection 19460</div><div class="">[Sep 12 08:24:14][chn0] CURL Request succeeded with code: 200</div><div class="">[Sep 12 08:24:14][chn0] CURL: Closing connection 22</div><div class="">[Sep 12 08:24:14][chn0] CURL Request succeeded with code: 200</div><div class="">[Sep 12 08:24:15][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:15][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:15][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:16][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:16][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:16][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:17][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:17][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:17][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:18][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:18][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:18][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:19][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:19][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:19][S0]   MeterS0:HWIF_GPIO:first poll returned 0</div><div class="">[Sep 12 08:24:19][S0]   MeterS0:HWIF_GPIO:first poll returned 1</div><div class="">[Sep 12 08:24:19][S0]   MeterS0:HWIF_GPIO:first poll returned 1</div><div class="">[Sep 12 08:24:19][S0]   MeterS0:HWIF_GPIO:first poll returned 1</div></div><div class=""><br class=""></div><div class="">Does anyone can point me to the right direction to get it to work?</div><div class=""><br class=""></div><div class="">Thanks in advance...</div></div>
</blockquote></div></div></div><span class="HOEnZb"><font color="#888888" class=""><div dir="ltr" class="">-- <br class=""></div><div data-smartmail="gmail_signature" class=""><p dir="ltr" class="">Von meinem Smartphone versendet</p>
</div>
</font></span></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></body></html>