{"action":"created","issue":{"url":"https://api.github.com/repos/stockmopar/connectedbytcp/issues/1","labels_url":"https://api.github.com/repos/stockmopar/connectedbytcp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/stockmopar/connectedbytcp/issues/1/comments","events_url":"https://api.github.com/repos/stockmopar/connectedbytcp/issues/1/events","html_url":"https://github.com/stockmopar/connectedbytcp/issues/1","id":53967812,"number":1,"title":"Is it still supposed to work?","user":{"login":"sebastienvg","id":643465,"avatar_url":"https://avatars.githubusercontent.com/u/643465?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienvg","html_url":"https://github.com/sebastienvg","followers_url":"https://api.github.com/users/sebastienvg/followers","following_url":"https://api.github.com/users/sebastienvg/following{/other_user}","gists_url":"https://api.github.com/users/sebastienvg/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienvg/subscriptions","organizations_url":"https://api.github.com/users/sebastienvg/orgs","repos_url":"https://api.github.com/users/sebastienvg/repos","events_url":"https://api.github.com/users/sebastienvg/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienvg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-01-10T19:01:12Z","updated_at":"2015-01-28T23:48:21Z","closed_at":null,"body":"Hi Stockmopar,\r\n\r\n\r\nI just tried to play around with your nodejs implementation of ConnectedByTCP but no luck. I tried on OSX with node 0.10.21 and I try on a raspbian with node 0.10.24 and I get the same error with both setup while trying for example:\r\n\r\n``node toggle.js``\r\n\r\nit returns\r\n\r\n``<gwrcmds><gwrcmd><gcmd>RoomGetCarousel</gcmd><gdata><gip><version>1</version><rc>200</rc><room><rid>0</rid><name>Hallway</name><desc></desc><known>1</known><type>0</type><color>000000</color><colorid>0</colorid><img>img/room/black.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device><did>216778325263293716</did><known>1</known><lock>0</lock><state>0</state><offline>1</offline><node>189</node><port>0</port><nodetype>16386</nodetype><name>Entrance Ceiling </name><desc>LED</desc><colorid>0</colorid><type>multilevel</type><rangemin>0</rangemin><rangemax>1</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>LED A19 11W</prodmodel><prodtype>LED</prodtype><prodtypeid>78</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup></rcgroup><manufacturer>TCP</manufacturer><capability></capability><bulbpower>11</bulbpower></other></device><device><did>216778325265935197</did><known>1</known><lock>0</lock><state>0</state><level>0</level><node>189</node><port>0</port><nodetype>16386</nodetype><name>Hallway&apos;s Table</name><desc>LED</desc><colorid>0</colorid><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>LED A19 11W</prodmodel><prodtype>LED</prodtype><prodtypeid>78</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup></rcgroup><manufacturer>TCP</manufacturer><capability>productinfo,identify,meter_power,switch_binary,switch_multilevel</capability><bulbpower>11</bulbpower></other></device></room><room><rid>1</rid><name>Office</name><desc></desc><known>1</known><type>0</type><color>00bd1f</color><colorid>1</colorid><img>img/room/green.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device><did>216778325265872249</did><known>1</known><lock>0</lock><state>0</state><level>96</level><node>189</node><port>0</port><nodetype>16386</nodetype><name>Dev Bulb Office </name><desc>LED</desc><colorid>1</colorid><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>LED A19 11W</prodmodel><prodtype>LED</prodtype><prodtypeid>78</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup></rcgroup><manufacturer>TCP</manufacturer><capability>productinfo,identify,meter_power,switch_binary,switch_multilevel</capability><bulbpower>11</bulbpower></other></device></room><room><rid>5</rid><name>Master Bedroom</name><desc></desc><known>1</known><type>0</type><color>845fcf</color><colorid>5</colorid><img>img/room/purple.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device><did>216778325262651093</did><known>1</known><lock>0</lock><state>0</state><offline>1</offline><node>189</node><port>0</port><nodetype>16386</nodetype><name>Seb&apos;s Night Table </name><desc>LED</desc><colorid>5</colorid><type>multilevel</type><rangemin>0</rangemin><rangemax>1</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>LED A19 11W</prodmodel><prodtype>LED</prodtype><prodtypeid>78</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup></rcgroup><manufacturer>TCP</manufacturer><capability></capability><bulbpower>11</bulbpower></other></device><device><did>216778325266869307</did><known>1</known><lock>0</lock><state>0</state><level>100</level><node>189</node><port>0</port><nodetype>16386</nodetype><name>Inka&apos;s Night Table </name><desc>LED</desc><colorid>5</colorid><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand>TCP</prodbrand><prodmodel>LED A19 11W</prodmodel><prodtype>LED</prodtype><prodtypeid>78</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup></rcgroup><manufacturer>TCP</manufacturer><capability>productinfo,identify,meter_power,switch_binary,switch_multilevel</capability><bulbpower>11</bulbpower></other></device></room><room><rid>8</rid><name>Living Room</name><desc></desc><known>1</known><type>0</type><color>ff59b7</color><colorid>8</colorid><img>img/room/pink.png</img><power>0</power><poweravg>0</poweravg><energy>0</energy><device><did>360214466155555284</did><known>1</known><lock>0</lock><state>0</state><level>0</level><node>0</node><port>0</port><nodetype>61440</nodetype><name>Ambiance</name><desc></desc><colorid>8</colorid><type>multilevel</type><rangemin>0</rangemin><rangemax>99</rangemax><power>0</power><poweravg>0</poweravg><energy>0</energy><score>0</score><productid>1</productid><prodbrand></prodbrand><prodmodel></prodmodel><prodtype>Light Fixture</prodtype><prodtypeid>159</prodtypeid><classid>2</classid><class></class><subclassid>1</subclassid><subclass></subclass><other><rcgroup></rcgroup><manufacturer></manufacturer><capability>productinfo,identify,meter_power,switch_binary,switch_multilevel</capability><bulbpower>11</bulbpower></other></device></room></gip></gdata></gwrcmd></gwrcmds>\r\n{ gwrcmd: { gcmd: 'RoomGetCarousel', gdata: { gip: [Object] } } }\r\n\r\nReferenceError: results is not defined\r\n    at /root/connectedbytcp/index.js:37:14\r\n    at module.exports (/root/connectedbytcp/node_modules/libxml-to-js/lib/libxml-to-js.js:187:3)\r\n    at Request._callback (/root/connectedbytcp/index.js:34:3)\r\n    at Request.self.callback (/root/connectedbytcp/node_modules/request/request.js:373:22)\r\n    at Request.EventEmitter.emit (events.js:98:17)\r\n    at Request.<anonymous> (/root/connectedbytcp/node_modules/request/request.js:1318:14)\r\n    at Request.EventEmitter.emit (events.js:117:20)\r\n    at IncomingMessage.<anonymous> (/root/connectedbytcp/node_modules/request/request.js:1266:12)\r\n    at IncomingMessage.EventEmitter.emit (events.js:117:20)\r\n    at _stream_readable.js:920:16``\r\n\r\nI can't figure what I am doing wrong! Can you help?"},"comment":{"url":"https://api.github.com/repos/stockmopar/connectedbytcp/issues/comments/71941611","html_url":"https://github.com/stockmopar/connectedbytcp/issues/1#issuecomment-71941611","issue_url":"https://api.github.com/repos/stockmopar/connectedbytcp/issues/1","id":71941611,"user":{"login":"sebastienvg","id":643465,"avatar_url":"https://avatars.githubusercontent.com/u/643465?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienvg","html_url":"https://github.com/sebastienvg","followers_url":"https://api.github.com/users/sebastienvg/followers","following_url":"https://api.github.com/users/sebastienvg/following{/other_user}","gists_url":"https://api.github.com/users/sebastienvg/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienvg/subscriptions","organizations_url":"https://api.github.com/users/sebastienvg/orgs","repos_url":"https://api.github.com/users/sebastienvg/repos","events_url":"https://api.github.com/users/sebastienvg/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienvg/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T23:48:21Z","updated_at":"2015-01-28T23:48:21Z","body":"In fact the firmware is unchanged (3.0.74) and tonight both the phone app (android) and the curl call fired from the also unchanged script. Will keep an eye on this."}}