{"action":"created","issue":{"url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs/issues/26","repository_url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs","labels_url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs/issues/26/comments","events_url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs/issues/26/events","html_url":"https://github.com/mjiderhamn/worx-landroid-nodejs/issues/26","id":265774561,"number":26,"title":"Keep getting an error on line 78 in domoticz.js","user":{"login":"iMartien","id":694852,"avatar_url":"https://avatars1.githubusercontent.com/u/694852?v=4","gravatar_id":"","url":"https://api.github.com/users/iMartien","html_url":"https://github.com/iMartien","followers_url":"https://api.github.com/users/iMartien/followers","following_url":"https://api.github.com/users/iMartien/following{/other_user}","gists_url":"https://api.github.com/users/iMartien/gists{/gist_id}","starred_url":"https://api.github.com/users/iMartien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iMartien/subscriptions","organizations_url":"https://api.github.com/users/iMartien/orgs","repos_url":"https://api.github.com/users/iMartien/repos","events_url":"https://api.github.com/users/iMartien/events{/privacy}","received_events_url":"https://api.github.com/users/iMartien/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-16T13:42:11Z","updated_at":"2017-10-17T07:31:24Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nWhen the script is running and I open the Landroid App on my iPhone, it stops working with this error:\r\n\r\n\r\nLandroid status: {\"state\":\"Charging\",\"errorMessage\":null,\"batteryPercentage\":64,\"totalMowingHours\":122.6,\"totalDistance\":120211,\"noOfAlarms\":null}\r\n/home/pi/worx-landroid-nodejs/domoticz.js:78\r\n    \"svalue\": (typeof svalue != \"undefined\") ? svalue.toString() : \"\"\r\n                                                     ^\r\n\r\nTypeError: Cannot read property 'toString' of null\r\n    at Domoticz.sendValue (/home/pi/worx-landroid-nodejs/domoticz.js:78:54)\r\n    at Domoticz.setNoOfAlarms (/home/pi/worx-landroid-nodejs/domoticz.js:307:10)\r\n    at LandroidCloud.updateListener (/home/pi/worx-landroid-nodejs/landroid-cloud2domoticz.js:62:14)\r\n    at LandroidCloud.onMessage (/home/pi/worx-landroid-nodejs/landroid-cloud.js:244:12)\r\n    at DeviceClient.<anonymous> (/home/pi/worx-landroid-nodejs/landroid-cloud.js:191:16)\r\n    at emitThree (events.js:97:13)\r\n    at DeviceClient.emit (events.js:175:7)\r\n    at MqttClient.<anonymous> (/home/pi/worx-landroid-nodejs/node_modules/aws-iot-device-sdk/device/index.js:749:12)\r\n    at emitThree (events.js:97:13)\r\n    at MqttClient.emit (events.js:175:7)\r\n"},"comment":{"url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs/issues/comments/337143430","html_url":"https://github.com/mjiderhamn/worx-landroid-nodejs/issues/26#issuecomment-337143430","issue_url":"https://api.github.com/repos/mjiderhamn/worx-landroid-nodejs/issues/26","id":337143430,"user":{"login":"iMartien","id":694852,"avatar_url":"https://avatars1.githubusercontent.com/u/694852?v=4","gravatar_id":"","url":"https://api.github.com/users/iMartien","html_url":"https://github.com/iMartien","followers_url":"https://api.github.com/users/iMartien/followers","following_url":"https://api.github.com/users/iMartien/following{/other_user}","gists_url":"https://api.github.com/users/iMartien/gists{/gist_id}","starred_url":"https://api.github.com/users/iMartien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iMartien/subscriptions","organizations_url":"https://api.github.com/users/iMartien/orgs","repos_url":"https://api.github.com/users/iMartien/repos","events_url":"https://api.github.com/users/iMartien/events{/privacy}","received_events_url":"https://api.github.com/users/iMartien/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T07:31:23Z","updated_at":"2017-10-17T07:31:23Z","author_association":"NONE","body":"Thanks @MagnusKlingenberg, It's running right now... did some testing with sending commands etc from the app, so far so good!\r\n\r\nWill keep you posted."}}
{"actor":{"display_login":"iMartien"}}