{"action":"created","issue":{"url":"https://api.github.com/repos/athombv/homey/issues/947","repository_url":"https://api.github.com/repos/athombv/homey","labels_url":"https://api.github.com/repos/athombv/homey/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/athombv/homey/issues/947/comments","events_url":"https://api.github.com/repos/athombv/homey/issues/947/events","html_url":"https://github.com/athombv/homey/issues/947","id":180502173,"number":947,"title":"Testing of ledring animation through athom-cli results in error.","user":{"login":"jghaanstra","id":4710062,"avatar_url":"https://avatars.githubusercontent.com/u/4710062?v=3","gravatar_id":"","url":"https://api.github.com/users/jghaanstra","html_url":"https://github.com/jghaanstra","followers_url":"https://api.github.com/users/jghaanstra/followers","following_url":"https://api.github.com/users/jghaanstra/following{/other_user}","gists_url":"https://api.github.com/users/jghaanstra/gists{/gist_id}","starred_url":"https://api.github.com/users/jghaanstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jghaanstra/subscriptions","organizations_url":"https://api.github.com/users/jghaanstra/orgs","repos_url":"https://api.github.com/users/jghaanstra/repos","events_url":"https://api.github.com/users/jghaanstra/events{/privacy}","received_events_url":"https://api.github.com/users/jghaanstra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/athombv/homey/labels/athom-cli","name":"athom-cli","color":"f9d0c4"},{"url":"https://api.github.com/repos/athombv/homey/labels/Staged%20for%20release","name":"Staged for release","color":"c1ff00"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/athombv/homey/milestones/36","html_url":"https://github.com/athombv/homey/milestones/0.10.2","labels_url":"https://api.github.com/repos/athombv/homey/milestones/36/labels","id":2037686,"number":36,"title":"0.10.2","description":"","creator":{"login":"jeroenvollenbrock","id":4551130,"avatar_url":"https://avatars.githubusercontent.com/u/4551130?v=3","gravatar_id":"","url":"https://api.github.com/users/jeroenvollenbrock","html_url":"https://github.com/jeroenvollenbrock","followers_url":"https://api.github.com/users/jeroenvollenbrock/followers","following_url":"https://api.github.com/users/jeroenvollenbrock/following{/other_user}","gists_url":"https://api.github.com/users/jeroenvollenbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenvollenbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenvollenbrock/subscriptions","organizations_url":"https://api.github.com/users/jeroenvollenbrock/orgs","repos_url":"https://api.github.com/users/jeroenvollenbrock/repos","events_url":"https://api.github.com/users/jeroenvollenbrock/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenvollenbrock/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":1,"state":"open","created_at":"2016-09-29T14:05:07Z","updated_at":"2016-10-03T14:17:04Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-10-02T08:37:15Z","updated_at":"2016-10-03T15:09:22Z","closed_at":null,"body":"**What is your Homey version (Settings → System)?**\r\n0.10.1\r\n\r\n**What did you try to achieve?**\r\nDevelop a screensaver animation and use athom-cli for testing it as described here: https://developers.athom.com/library/ledring/#screensaver\r\n\r\n**Please include detailed steps how we can reproduce the issue**\r\nJust follow the steps in the documentation. Make a myanim.js that contains the screensaver animation and run the cli command to test it.\r\n\r\n**What was the result?**\r\nAn error:\r\n```\r\nTypeError: Cannot read property '_id' of null\r\n    at step2 (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\lib\\ledring.js:29:62)\r\n    at PromptUI.completed (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\lib\\homey.js:44:4)\r\n    at PromptUI.onCompletion (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\inquirer\\lib\\ui\\prompt.js:69:10)\r\n    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:1793:12)\r\n    at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:1730:14)\r\n    at AnonymousObserver.tryCatcher (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:567:29)\r\n    at AutoDetachObserverPrototype.completed (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:5288:56)\r\n    at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:1730:14)\r\n    at InnerObserver.onCompleted (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:3425:65)\r\n    at InnerObserver.tryCatcher (E:\\Localhost\\nodejs\\node_modules\\athom-cli\\node_modules\\rx\\dist\\rx.js:567:29)\r\n```\r\n\r\n**What did you expect as result?**\r\nAn ability tot test my screensaver animation through the command line without having to upload an app all the time.\r\n\r\n**Any other remarks**\r\nNope\r\n"},"comment":{"url":"https://api.github.com/repos/athombv/homey/issues/comments/251132803","html_url":"https://github.com/athombv/homey/issues/947#issuecomment-251132803","issue_url":"https://api.github.com/repos/athombv/homey/issues/947","id":251132803,"user":{"login":"WeeJeWel","id":319873,"avatar_url":"https://avatars.githubusercontent.com/u/319873?v=3","gravatar_id":"","url":"https://api.github.com/users/WeeJeWel","html_url":"https://github.com/WeeJeWel","followers_url":"https://api.github.com/users/WeeJeWel/followers","following_url":"https://api.github.com/users/WeeJeWel/following{/other_user}","gists_url":"https://api.github.com/users/WeeJeWel/gists{/gist_id}","starred_url":"https://api.github.com/users/WeeJeWel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeeJeWel/subscriptions","organizations_url":"https://api.github.com/users/WeeJeWel/orgs","repos_url":"https://api.github.com/users/WeeJeWel/repos","events_url":"https://api.github.com/users/WeeJeWel/events{/privacy}","received_events_url":"https://api.github.com/users/WeeJeWel/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T15:09:22Z","updated_at":"2016-10-03T15:09:22Z","body":"Fixed in 0.10.2!\r\n\r\nSample animation:\r\n\r\n```\r\n'use strict';\r\n\r\nvar frames = [ [] ];\r\nfor( let i = 0; i < 24; i++ ) {\r\n\r\n\tlet frame = {\r\n\t\tr: 0,\r\n\t\tg: 0,\r\n\t\tb: 0\r\n\t}\r\n\r\n\tif( i === 0 ) frame.r = 255;\r\n\r\n\tframes[0].push( frame );\r\n}\r\n\r\nlet animation = {\r\n    frames    \t: frames,\r\n    duration\t: false,\r\n    options: {\r\n        fps     : 1,\r\n        tfps    : 60,\r\n        rpm     : 10\r\n    }\r\n}\r\n\r\nmodule.exports = animation;\r\n```"}}
{"actor":{"display_login":"WeeJeWel"}}