{"action":"created","issue":{"url":"https://api.github.com/repos/falk0069/hue-upnp/issues/2","labels_url":"https://api.github.com/repos/falk0069/hue-upnp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/falk0069/hue-upnp/issues/2/comments","events_url":"https://api.github.com/repos/falk0069/hue-upnp/issues/2/events","html_url":"https://github.com/falk0069/hue-upnp/issues/2","id":105065788,"number":2,"title":"Add support for Amazon Echo","user":{"login":"jimboca","id":1578044,"avatar_url":"https://avatars.githubusercontent.com/u/1578044?v=3","gravatar_id":"","url":"https://api.github.com/users/jimboca","html_url":"https://github.com/jimboca","followers_url":"https://api.github.com/users/jimboca/followers","following_url":"https://api.github.com/users/jimboca/following{/other_user}","gists_url":"https://api.github.com/users/jimboca/gists{/gist_id}","starred_url":"https://api.github.com/users/jimboca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimboca/subscriptions","organizations_url":"https://api.github.com/users/jimboca/orgs","repos_url":"https://api.github.com/users/jimboca/repos","events_url":"https://api.github.com/users/jimboca/events{/privacy}","received_events_url":"https://api.github.com/users/jimboca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-09-06T02:25:58Z","updated_at":"2015-10-15T00:00:22Z","closed_at":null,"body":"Really appreciate this work!  It works great with my Harmony hub, do you know if anyone has tried to get this working with an Amazon Echo?  I tried, but the Echo is not recognizing it.  If you don't know, then I am go to look into getting it working.\r\n"},"comment":{"url":"https://api.github.com/repos/falk0069/hue-upnp/issues/comments/148236873","html_url":"https://github.com/falk0069/hue-upnp/issues/2#issuecomment-148236873","issue_url":"https://api.github.com/repos/falk0069/hue-upnp/issues/2","id":148236873,"user":{"login":"falk0069","id":10950025,"avatar_url":"https://avatars.githubusercontent.com/u/10950025?v=3","gravatar_id":"","url":"https://api.github.com/users/falk0069","html_url":"https://github.com/falk0069","followers_url":"https://api.github.com/users/falk0069/followers","following_url":"https://api.github.com/users/falk0069/following{/other_user}","gists_url":"https://api.github.com/users/falk0069/gists{/gist_id}","starred_url":"https://api.github.com/users/falk0069/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falk0069/subscriptions","organizations_url":"https://api.github.com/users/falk0069/orgs","repos_url":"https://api.github.com/users/falk0069/repos","events_url":"https://api.github.com/users/falk0069/events{/privacy}","received_events_url":"https://api.github.com/users/falk0069/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T00:00:22Z","updated_at":"2015-10-15T00:00:22Z","body":"Jim,\r\n\r\nAdding in the header size calculation was easier than I though.  I just had to do this:\r\nheaderLength = data.find(\"\\r\\n\\r\\n\") + 4\r\n\r\nThen I only request additional data if we don't have enough yet:\r\nif len(data) < headerLength + contentLength:\r\n        data += self.request.recv(headerLength + contentLength - len(data))\r\n\r\nI committed this update.  Hopefully you find it useful.\r\n\r\nLet me know if you come up with a better json parser.\r\n\r\nThanks\r\n--Andy"}}