{"action":"created","issue":{"url":"https://api.github.com/repos/toto/homebridge-airrohr/issues/2","repository_url":"https://api.github.com/repos/toto/homebridge-airrohr","labels_url":"https://api.github.com/repos/toto/homebridge-airrohr/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/toto/homebridge-airrohr/issues/2/comments","events_url":"https://api.github.com/repos/toto/homebridge-airrohr/issues/2/events","html_url":"https://github.com/toto/homebridge-airrohr/issues/2","id":286106923,"number":2,"title":"Error when reading public API","user":{"login":"soerenjalas","id":10922951,"avatar_url":"https://avatars2.githubusercontent.com/u/10922951?v=4","gravatar_id":"","url":"https://api.github.com/users/soerenjalas","html_url":"https://github.com/soerenjalas","followers_url":"https://api.github.com/users/soerenjalas/followers","following_url":"https://api.github.com/users/soerenjalas/following{/other_user}","gists_url":"https://api.github.com/users/soerenjalas/gists{/gist_id}","starred_url":"https://api.github.com/users/soerenjalas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soerenjalas/subscriptions","organizations_url":"https://api.github.com/users/soerenjalas/orgs","repos_url":"https://api.github.com/users/soerenjalas/repos","events_url":"https://api.github.com/users/soerenjalas/events{/privacy}","received_events_url":"https://api.github.com/users/soerenjalas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-04T20:40:25Z","updated_at":"2018-02-01T23:39:06Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nFirst of all thanks for the great plug-in!\r\nI'm trying to use the plugin via the public API, but homebridge keeps failing with the following error\r\n\r\n```\r\n [AirRohr] Could not get sensor data: TypeError: this.dataCache.sensordatavalues is not iterable\r\n```\r\n\r\n\r\n\r\n```json\r\n{\r\n    \"accessory\": \"airrohr\",\r\n    \"name\": \"AirRohr\",\r\n    \"json_data\": \"http://api.luftdaten.info/v1/sensor/4668/\",\r\n    \"sensor_id\": \"4668\",\r\n    \"update_interval_seconds\": 60\r\n}\r\n```\r\n\r\nI checked the response of the API and it seems to be fine\r\n\r\n```json\r\n[{\"sampling_rate\":null,\"sensordatavalues\":[{\"value_type\":\"P1\",\"value\":\"36.50\",\"id\":1404263069},{\"value_type\":\"P2\",\"value\":\"11.77\",\"id\":1404263070}],\"timestamp\":\"2018-01-04 20:26:13\",\"id\":644020044,\"sensor\":{\"sensor_type\":{\"id\":14,\"manufacturer\":\"Nova Fitness\",\"name\":\"SDS011\"},\"pin\":\"1\",\"id\":4668},\"location\":{\"longitude\":\"10.044\",\"latitude\":\"53.568\",\"id\":2348,\"country\":\"DE\"}},{\"sampling_rate\":null,\"sensordatavalues\":[{\"value_type\":\"P1\",\"value\":\"33.57\",\"id\":1404275471},{\"value_type\":\"P2\",\"value\":\"10.70\",\"id\":1404275472}],\"timestamp\":\"2018-01-04 20:28:40\",\"id\":644025931,\"sensor\":{\"sensor_type\":{\"id\":14,\"manufacturer\":\"Nova Fitness\",\"name\":\"SDS011\"},\"pin\":\"1\",\"id\":4668},\"location\":{\"longitude\":\"10.044\",\"latitude\":\"53.568\",\"id\":2348,\"country\":\"DE\"}}]\r\n```\r\n\r\nDo you have an idea what could be the problem?"},"comment":{"url":"https://api.github.com/repos/toto/homebridge-airrohr/issues/comments/362438439","html_url":"https://github.com/toto/homebridge-airrohr/issues/2#issuecomment-362438439","issue_url":"https://api.github.com/repos/toto/homebridge-airrohr/issues/2","id":362438439,"user":{"login":"gerritfries","id":30506609,"avatar_url":"https://avatars0.githubusercontent.com/u/30506609?v=4","gravatar_id":"","url":"https://api.github.com/users/gerritfries","html_url":"https://github.com/gerritfries","followers_url":"https://api.github.com/users/gerritfries/followers","following_url":"https://api.github.com/users/gerritfries/following{/other_user}","gists_url":"https://api.github.com/users/gerritfries/gists{/gist_id}","starred_url":"https://api.github.com/users/gerritfries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gerritfries/subscriptions","organizations_url":"https://api.github.com/users/gerritfries/orgs","repos_url":"https://api.github.com/users/gerritfries/repos","events_url":"https://api.github.com/users/gerritfries/events{/privacy}","received_events_url":"https://api.github.com/users/gerritfries/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T23:39:06Z","updated_at":"2018-02-01T23:39:06Z","author_association":"NONE","body":"Same for me. A fix would be great!"}}
{"actor":{"display_login":"gerritfries"}}