{"action":"created","issue":{"url":"https://api.github.com/repos/SR-G/current-cost-forwarder/issues/2","labels_url":"https://api.github.com/repos/SR-G/current-cost-forwarder/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/SR-G/current-cost-forwarder/issues/2/comments","events_url":"https://api.github.com/repos/SR-G/current-cost-forwarder/issues/2/events","html_url":"https://github.com/SR-G/current-cost-forwarder/issues/2","id":59445051,"number":2,"title":"Not forwarding events to MQTT","user":{"login":"bergvoll","id":3657186,"avatar_url":"https://avatars.githubusercontent.com/u/3657186?v=3","gravatar_id":"","url":"https://api.github.com/users/bergvoll","html_url":"https://github.com/bergvoll","followers_url":"https://api.github.com/users/bergvoll/followers","following_url":"https://api.github.com/users/bergvoll/following{/other_user}","gists_url":"https://api.github.com/users/bergvoll/gists{/gist_id}","starred_url":"https://api.github.com/users/bergvoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergvoll/subscriptions","organizations_url":"https://api.github.com/users/bergvoll/orgs","repos_url":"https://api.github.com/users/bergvoll/repos","events_url":"https://api.github.com/users/bergvoll/events{/privacy}","received_events_url":"https://api.github.com/users/bergvoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-02T06:50:35Z","updated_at":"2015-03-02T10:21:51Z","closed_at":null,"body":"Hi.\r\n\r\nI'm trying to get this to work on my ubuntu x86 installation. My CurrentCost device is actually connected to the same computer as I'm running both the MQTT broker and OpenHab on, but i guess that should be irrelevant (i could not find any other solution for using CurrentCost with OpenHab).\r\n\r\nAfter startup, the current-cost-forwarder stops after this:\r\n21:32:39.593 [main] INFO  org.tensin.ccf.reader.CurrentCostReader - Starting CurrentCostForwarder reader thread on device [/dev/ttyUSB1]\r\n21:32:39.596 [main] INFO  org.tensin.ccf.CurrentCostForwarder - CurrentCostForwarder started in [508ms]\r\n21:32:39.603 [THREAD-CURRENT-COST-FORWARDER-READER] INFO  org.tensin.ccf.reader.CurrentCostReader - Now connected on specified device [/dev/ttyUSB1]\r\n\r\nIt never starts forwarding events to MQTT. If i start it with the debug flag, i can see that it actually receives data from my CurrentCost:\r\n\r\n07:48:44.648 [main] INFO  org.tensin.ccf.reader.CurrentCostReader - Starting CurrentCostForwarder reader thread on device [/dev/ttyUSB1]\r\n07:48:44.649 [main] INFO  org.tensin.ccf.CurrentCostForwarder - CurrentCostForwarder started in [500ms]\r\n07:48:44.656 [THREAD-CURRENT-COST-FORWARDER-READER] INFO  org.tensin.ccf.reader.CurrentCostReader - Now connected on specified device [/dev/ttyUSB1]\r\n07:48:44.657 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Now starting acquisition from device\r\n07:48:58.029 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.030 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.031 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.032 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.034 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.035 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.036 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.037 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.038 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.038 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.039 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.039 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.040 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\n07:48:58.041 [THREAD-CURRENT-COST-FORWARDER-READER] DEBUG org.tensin.ccf.reader.CurrentCostReader - Just received some characters from device\r\netc.\r\n\r\ncat /dev/ttyUSB1 works ok:\r\n<msg><src>CC128-v1.29</src><dsb>01018</dsb><time>02:10:07</time><tmpr>23.5</tmpr><sensor>0</sensor><id>03344</id><type>1</type><ch1><watts>01229</watts></ch1></msg>\r\n\r\nAny ideas of where it's failing?\r\n\r\n\r\n-AB\r\n\r\nEdit: Forgot to mention, the MQTT broker seems to work fine. I've tested it with mosquitto_sub and mosquitto_sub w/o any problems (no authentication). I also set --broker-url \"tcp://localhost:1883\" in current-cost-forwarder.sh."},"comment":{"url":"https://api.github.com/repos/SR-G/current-cost-forwarder/issues/comments/76687956","html_url":"https://github.com/SR-G/current-cost-forwarder/issues/2#issuecomment-76687956","issue_url":"https://api.github.com/repos/SR-G/current-cost-forwarder/issues/2","id":76687956,"user":{"login":"SR-G","id":194141,"avatar_url":"https://avatars.githubusercontent.com/u/194141?v=3","gravatar_id":"","url":"https://api.github.com/users/SR-G","html_url":"https://github.com/SR-G","followers_url":"https://api.github.com/users/SR-G/followers","following_url":"https://api.github.com/users/SR-G/following{/other_user}","gists_url":"https://api.github.com/users/SR-G/gists{/gist_id}","starred_url":"https://api.github.com/users/SR-G/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SR-G/subscriptions","organizations_url":"https://api.github.com/users/SR-G/orgs","repos_url":"https://api.github.com/users/SR-G/repos","events_url":"https://api.github.com/users/SR-G/events{/privacy}","received_events_url":"https://api.github.com/users/SR-G/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T10:21:51Z","updated_at":"2015-03-02T10:21:51Z","body":"Thanks for the pastebin, much clearer.\r\n\r\nSo in the end, indeed, it is just that on your setup the separator is 10 and not 13 ...\r\n\r\nI've already commited the modified code and pushed a new zip, feel free to try it."}}