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