{"action":"created","issue":{"url":"https://api.github.com/repos/volkszaehler/vzlogger/issues/279","repository_url":"https://api.github.com/repos/volkszaehler/vzlogger","labels_url":"https://api.github.com/repos/volkszaehler/vzlogger/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/volkszaehler/vzlogger/issues/279/comments","events_url":"https://api.github.com/repos/volkszaehler/vzlogger/issues/279/events","html_url":"https://github.com/volkszaehler/vzlogger/issues/279","id":188935572,"number":279,"title":"vzlogger not working with local sml meter while vzlogger.conf contains \"host\"?","user":{"login":"justinotherguy","id":199173,"avatar_url":"https://avatars.githubusercontent.com/u/199173?v=3","gravatar_id":"","url":"https://api.github.com/users/justinotherguy","html_url":"https://github.com/justinotherguy","followers_url":"https://api.github.com/users/justinotherguy/followers","following_url":"https://api.github.com/users/justinotherguy/following{/other_user}","gists_url":"https://api.github.com/users/justinotherguy/gists{/gist_id}","starred_url":"https://api.github.com/users/justinotherguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinotherguy/subscriptions","organizations_url":"https://api.github.com/users/justinotherguy/orgs","repos_url":"https://api.github.com/users/justinotherguy/repos","events_url":"https://api.github.com/users/justinotherguy/events{/privacy}","received_events_url":"https://api.github.com/users/justinotherguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mbehr1","id":3258891,"avatar_url":"https://avatars.githubusercontent.com/u/3258891?v=3","gravatar_id":"","url":"https://api.github.com/users/mbehr1","html_url":"https://github.com/mbehr1","followers_url":"https://api.github.com/users/mbehr1/followers","following_url":"https://api.github.com/users/mbehr1/following{/other_user}","gists_url":"https://api.github.com/users/mbehr1/gists{/gist_id}","starred_url":"https://api.github.com/users/mbehr1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbehr1/subscriptions","organizations_url":"https://api.github.com/users/mbehr1/orgs","repos_url":"https://api.github.com/users/mbehr1/repos","events_url":"https://api.github.com/users/mbehr1/events{/privacy}","received_events_url":"https://api.github.com/users/mbehr1/received_events","type":"User","site_admin":false},"assignees":[{"login":"mbehr1","id":3258891,"avatar_url":"https://avatars.githubusercontent.com/u/3258891?v=3","gravatar_id":"","url":"https://api.github.com/users/mbehr1","html_url":"https://github.com/mbehr1","followers_url":"https://api.github.com/users/mbehr1/followers","following_url":"https://api.github.com/users/mbehr1/following{/other_user}","gists_url":"https://api.github.com/users/mbehr1/gists{/gist_id}","starred_url":"https://api.github.com/users/mbehr1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbehr1/subscriptions","organizations_url":"https://api.github.com/users/mbehr1/orgs","repos_url":"https://api.github.com/users/mbehr1/repos","events_url":"https://api.github.com/users/mbehr1/events{/privacy}","received_events_url":"https://api.github.com/users/mbehr1/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-12T21:24:25Z","updated_at":"2016-12-16T13:54:46Z","closed_at":null,"body":"Moin,\r\n\r\nI do this:\r\n- I have an sml meter connected to a serial port of a RPi\r\n- I generate a vzlogger.conf with editor: the https://volkszaehler.github.io/vzlogger/\r\n- the conf file (see below) does not work, unless I comment out the \"host\" line\r\n  it comes out like this:\r\n      \"host\": \"\",\r\n  result (vzlogger.conf):\r\n[Nov 12 22:17:51][main] vzlogger v0.6.0 based on heads/master-0-g1484f9aad1 from Mon, 22 Aug 2016 22:32:51 +0200 started.\r\n[Nov 12 22:17:51][mtr0] Creating new meter with protocol sml.\r\n[Nov 12 22:17:51][sml]  pullseq len:0 found\r\n[Nov 12 22:17:51][mtr0] Meter configured, enabled.\r\n[Nov 12 22:17:51]       New meter initialized (protocol=sml)\r\n[Nov 12 22:17:51]       Configure channel.\r\n[Nov 12 22:17:51][chn0] New channel initialized (uuid=...<...> api=volkszaehler id=1-0:15.7.0*255)\r\n[Nov 12 22:17:51]       Have 1 meters.\r\n[Nov 12 22:17:51][main] log level is 15\r\n[Nov 12 22:17:52][main] daemon=1, local=0\r\n[Nov 12 22:17:52]       Daemonize process...\r\n[Nov 12 22:17:52]       Opened logfile /var/log/vzlogger.log\r\n[Nov 12 22:17:52][push] No pushDataServer defined.\r\n[Nov 12 22:17:52][]     ===> Start meters\r\n[Nov 12 22:17:52][mtr0] Meter connection established\r\n[Nov 12 22:17:52][mtr0] Meter thread started\r\n[Nov 12 22:17:52][mtr0] Meter is opened. Starting channels.\r\n[Nov 12 22:17:52][chn0] Logging thread started\r\n[Nov 12 22:17:52][]     Startup done.\r\n[Nov 12 22:17:52][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes\r\n[Nov 12 22:17:52][chn0] Using default volkszaehler api.\r\n[Nov 12 22:17:52][mtr0] Number of readers: 32\r\n[Nov 12 22:17:52][mtr0] Config.daemon: 1\r\n[Nov 12 22:17:52][mtr0] Config.local: 0\r\n\r\n-> no further log entries until I stop vzlogger.\r\n\r\ncommenting out \"host\" leads to a regular operation of vzlogger, the log starts like this:\r\n[Nov 12 22:19:37][main] vzlogger v0.6.0 based on heads/master-0-g1484f9aad1 from Mon, 22 Aug 2016 22:32:51 +0200 started.\r\n[Nov 12 22:19:37][mtr0] Creating new meter with protocol sml.\r\n[Nov 12 22:19:37][sml]  pullseq len:0 found\r\n[Nov 12 22:19:37][mtr0] Meter configured, enabled.\r\n[Nov 12 22:19:37]       New meter initialized (protocol=sml)\r\n[Nov 12 22:19:37]       Configure channel.\r\n[Nov 12 22:19:37][chn0] New channel initialized (uuid=...<...> api=volkszaehler id=1-0:15.7.0*255)\r\n[Nov 12 22:19:37]       Have 1 meters.\r\n[Nov 12 22:19:37][main] log level is 15\r\n[Nov 12 22:19:37][main] daemon=1, local=0\r\n[Nov 12 22:19:37]       Daemonize process...\r\n[Nov 12 22:19:37]       Opened logfile /var/log/vzlogger.log\r\n[Nov 12 22:19:37][push] No pushDataServer defined.\r\n[Nov 12 22:19:37][]     ===> Start meters\r\n[Nov 12 22:19:37][mtr0] Meter connection established\r\n[Nov 12 22:19:37][mtr0] Meter thread started\r\n[Nov 12 22:19:37][mtr0] Meter is opened. Starting channels.\r\n[Nov 12 22:19:37][chn0] Logging thread started\r\n[Nov 12 22:19:37][]     Startup done.\r\n[Nov 12 22:19:37][mtr0] Number of readers: 32\r\n[Nov 12 22:19:37][mtr0] Config.daemon: 1\r\n[Nov 12 22:19:37][mtr0] Config.local: 0\r\n[Nov 12 22:19:37][chn0] Start logging thread for volkszaehler-api. Running as daemon: yes\r\n[Nov 12 22:19:37][chn0] Using default volkszaehler api.\r\n[Nov 12 22:19:39][mtr0] Got 6 new readings from meter:\r\n[Nov 12 22:19:39][mtr0] Reading: id=1-0:1.8.0*255/ObisIdentifier:1-0:1.8.0*255 value=10340848.80 ts=1478985579033\r\n[Nov 12 22:19:39][mtr0] Reading: id=1-0:2.8.0*255/ObisIdentifier:1-0:2.8.0*255 value=459.20 ts=1478985579033\r\n[Nov 12 22:19:39][mtr0] Reading: id=1-0:1.8.1*255/ObisIdentifier:1-0:1.8.1*255 value=10340848.80 ts=1478985579033\r\n[Nov 12 22:19:39][mtr0] Reading: id=1-0:2.8.1*255/ObisIdentifier:1-0:2.8.1*255 value=459.20 ts=1478985579033\r\n[Nov 12 22:19:39][mtr0] Reading: id=1-0:1.8.2*255/ObisIdentifier:1-0:1.8.2*255 value=0.00 ts=1478985579033\r\n[Nov 12 22:19:39][mtr0] Reading: id=1-0:15.7.0*255/ObisIdentifier:1-0:15.7.0*255 value=467.60 ts=1478985579033\r\n[Nov 12 22:19:39][chn0] Adding reading to queue (value=467.60 ts=1478985579033)\r\n[Nov 12 22:19:39][chn0] ==> number of tuples: 1\r\n[Nov 12 22:19:39][chn0] compare: 0 1478985579033\r\n[Nov 12 22:19:39][chn0] copied 1/1 values for middleware transmission\r\n[Nov 12 22:19:39][chn0] JSON request body: [ [ 1478985579033, 467.60000000000002 ] ]\r\n[Nov 12 22:19:39][chn0] CURL: Hostname was NOT found in DNS cache\r\n[Nov 12 22:19:39][chn0] CURL:   Trying 5.45.110.30...\r\n[Nov 12 22:19:39][chn0] CURL: Connected to demo.volkszaehler.org (5.45.110.30) port 80 (#0)\r\n[Nov 12 22:19:39][chn0] CURL: Sent 41 bytes..\r\n[Nov 12 22:19:39][chn0] CURL: Sent '[ [ 1478985579033, 467.60000000000002 ] ]' bytes\r\n[Nov 12 22:19:39][chn0] CURL: upload completely sent off: 41 out of 41 bytes\r\n[Nov 12 22:19:39][chn0] CURL: HTTP 1.0, assume close after body\r\n[Nov 12 22:19:39][chn0] CURL: Received 26 bytes\r\n[Nov 12 22:19:39][chn0] CURL: Received '{\"version\":\"0.3\",\"rows\":1}' bytes\r\n[Nov 12 22:19:39][chn0] CURL: Closing connection 0\r\n[Nov 12 22:19:39][chn0] CURL Request succeeded with code: 200\r\n[Nov 12 22:19:39][chn0] emptied all (1) values\r\n...and so on.\r\n\r\nThe log says it - I use vzlogger in this version:\r\nvzlogger -V\r\n0.6.0\r\n based on git version: heads/master-0-g1484f9aad1\r\n last commit date: Mon, 22 Aug 2016 22:32:51 [+0200](url)\r\n\r\nHere's my (broken) vzlogger.conf:\r\n{\r\n  \"retry\": 0,\r\n  \"daemon\": true,\r\n  \"verbosity\": 15,\r\n  \"log\": \"/var/log/vzlogger.log\",\r\n  \"meters\": [\r\n    {\r\n      \"enabled\": true,\r\n      \"allowskip\": false,\r\n      \"interval\": -1,\r\n      \"aggtime\": -1,\r\n      \"aggfixedinterval\": false,\r\n      \"channels\": [\r\n        {\r\n          \"uuid\": <uuid>,\r\n          \"identifier\": \"1-0:15.7.0*255\",\r\n          \"api\": \"volkszaehler\",\r\n          \"middleware\": \"http://demo.volkszaehler.org/middleware.php\",\r\n          \"aggmode\": \"none\",\r\n          \"duplicates\": 0\r\n        }\r\n      ],\r\n      \"protocol\": \"sml\",\r\n      \"host\": \"\",\r\n      \"device\": \"/dev/ttyUSB0\",\r\n      \"pullseq\": \"\",\r\n      \"baudrate\": 9600,\r\n      \"parity\": \"8n1\"\r\n    }\r\n  ]\r\n}\r\n\r\nBest regards, J."},"comment":{"url":"https://api.github.com/repos/volkszaehler/vzlogger/issues/comments/267598706","html_url":"https://github.com/volkszaehler/vzlogger/issues/279#issuecomment-267598706","issue_url":"https://api.github.com/repos/volkszaehler/vzlogger/issues/279","id":267598706,"user":{"login":"J-A-U","id":3984466,"avatar_url":"https://avatars.githubusercontent.com/u/3984466?v=3","gravatar_id":"","url":"https://api.github.com/users/J-A-U","html_url":"https://github.com/J-A-U","followers_url":"https://api.github.com/users/J-A-U/followers","following_url":"https://api.github.com/users/J-A-U/following{/other_user}","gists_url":"https://api.github.com/users/J-A-U/gists{/gist_id}","starred_url":"https://api.github.com/users/J-A-U/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-A-U/subscriptions","organizations_url":"https://api.github.com/users/J-A-U/orgs","repos_url":"https://api.github.com/users/J-A-U/repos","events_url":"https://api.github.com/users/J-A-U/events{/privacy}","received_events_url":"https://api.github.com/users/J-A-U/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T13:54:46Z","updated_at":"2016-12-16T13:54:46Z","body":"Es wäre zumindest eine schnelle Lösung das vzlogger auch ne Meldung ausgibt und nicht einfach nur Leistung verbrät ohne produktiv zu sein..\r\n\r\nWenn du eine schöne Lösung in absehbarer Zeit hast wäre mir die auch lieber als mein Gefrickel von dem ich eh nur die Hälfte versteh."}}
{"actor":{"display_login":"J-A-U"}}