{"action":"created","comment":{"url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/comments/82525727","pull_request_review_id":3428393,"id":82525727,"diff_hunk":"@@ -0,0 +1,140 @@\n+<script type=\"text/javascript\">\n+\n+function processCsv(allText) {\n+    var allTextLines = allText.split(/\\r\\n|\\n/);\n+    var headers = allTextLines[0].split(',');\n+    var lines = [];\n+\n+    for (var i=1; i<allTextLines.length; i++) {\n+        var data = allTextLines[i].split(',');\n+        if (data.length == headers.length) {\n+\n+            var tarr = {};\n+            for (var j=0; j<headers.length; j++) {\n+               tarr[headers[j].slice(1,-1)] = data[j].slice(1,-1);\n+            }\n+            lines.push(tarr);\n+        }\n+    }\n+    return lines;\n+}\n+\n+    RED.nodes.registerType('select-knx-groupaddress',{\n+        category: 'function',\n+        color: '#a6bbcf',\n+        defaults: {\n+            name: {value:\"\"},\n+\t    groupaddress: {value:\"\"},\n+\t    groupaddresses: { value:\"\", type:\"group-addresses\"},\n+\t    dpt: {value:\"1\"}\n+\t\n+        },\n+   oneditsave: function() {\n+        this.groupaddress = $('#groupvalues-list').val();\n+        this.name = JSON.parse(this.groupaddress).gaName;\n+},\n+\n+\n+ oneditprepare: function() {\n+        var previous = null;\n+\n+\t    // get the config node using the ID:\n+\t    var configNode = RED.nodes.node(this.groupaddresses);\n+\n+        // parse csv and generate a groupaddresses array:\n+        var csv = processCsv(configNode.csv);","path":"select-knx-groupaddress/select-knx-groupaddress.html","position":45,"original_position":45,"commit_id":"d6606e475d1dc6f85b82360a16e711aaaed9c402","original_commit_id":"d6606e475d1dc6f85b82360a16e711aaaed9c402","user":{"login":"ekarak","id":587817,"avatar_url":"https://avatars.githubusercontent.com/u/587817?v=3","gravatar_id":"","url":"https://api.github.com/users/ekarak","html_url":"https://github.com/ekarak","followers_url":"https://api.github.com/users/ekarak/followers","following_url":"https://api.github.com/users/ekarak/following{/other_user}","gists_url":"https://api.github.com/users/ekarak/gists{/gist_id}","starred_url":"https://api.github.com/users/ekarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekarak/subscriptions","organizations_url":"https://api.github.com/users/ekarak/orgs","repos_url":"https://api.github.com/users/ekarak/repos","events_url":"https://api.github.com/users/ekarak/events{/privacy}","received_events_url":"https://api.github.com/users/ekarak/received_events","type":"User","site_admin":false},"body":"this causes an exception when no config node exists","created_at":"2016-10-09T16:23:03Z","updated_at":"2016-10-09T16:23:03Z","html_url":"https://github.com/ekarak/node-red-contrib-eibd/pull/9#discussion_r82525727","pull_request_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/comments/82525727"},"html":{"href":"https://github.com/ekarak/node-red-contrib-eibd/pull/9#discussion_r82525727"},"pull_request":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9","id":83011200,"html_url":"https://github.com/ekarak/node-red-contrib-eibd/pull/9","diff_url":"https://github.com/ekarak/node-red-contrib-eibd/pull/9.diff","patch_url":"https://github.com/ekarak/node-red-contrib-eibd/pull/9.patch","issue_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues/9","number":9,"state":"open","locked":false,"title":"Add new node select-knx-groupaddress for comfortable selection of knx…","user":{"login":"FloMaetschke","id":7500948,"avatar_url":"https://avatars.githubusercontent.com/u/7500948?v=3","gravatar_id":"","url":"https://api.github.com/users/FloMaetschke","html_url":"https://github.com/FloMaetschke","followers_url":"https://api.github.com/users/FloMaetschke/followers","following_url":"https://api.github.com/users/FloMaetschke/following{/other_user}","gists_url":"https://api.github.com/users/FloMaetschke/gists{/gist_id}","starred_url":"https://api.github.com/users/FloMaetschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloMaetschke/subscriptions","organizations_url":"https://api.github.com/users/FloMaetschke/orgs","repos_url":"https://api.github.com/users/FloMaetschke/repos","events_url":"https://api.github.com/users/FloMaetschke/events{/privacy}","received_events_url":"https://api.github.com/users/FloMaetschke/received_events","type":"User","site_admin":false},"body":"… group addresses by a csv export of ETS.\r\nThis is a quick hack to simplify access of your group addresses in node red.\r\n","created_at":"2016-08-28T09:50:40Z","updated_at":"2016-10-09T16:23:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"741615510d876954a99bcb77808050187f40446b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues/9/comments","statuses_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/statuses/d6606e475d1dc6f85b82360a16e711aaaed9c402","head":{"label":"FloMaetschke:master","ref":"master","sha":"d6606e475d1dc6f85b82360a16e711aaaed9c402","user":{"login":"FloMaetschke","id":7500948,"avatar_url":"https://avatars.githubusercontent.com/u/7500948?v=3","gravatar_id":"","url":"https://api.github.com/users/FloMaetschke","html_url":"https://github.com/FloMaetschke","followers_url":"https://api.github.com/users/FloMaetschke/followers","following_url":"https://api.github.com/users/FloMaetschke/following{/other_user}","gists_url":"https://api.github.com/users/FloMaetschke/gists{/gist_id}","starred_url":"https://api.github.com/users/FloMaetschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloMaetschke/subscriptions","organizations_url":"https://api.github.com/users/FloMaetschke/orgs","repos_url":"https://api.github.com/users/FloMaetschke/repos","events_url":"https://api.github.com/users/FloMaetschke/events{/privacy}","received_events_url":"https://api.github.com/users/FloMaetschke/received_events","type":"User","site_admin":false},"repo":{"id":66760650,"name":"node-red-contrib-eibd","full_name":"FloMaetschke/node-red-contrib-eibd","owner":{"login":"FloMaetschke","id":7500948,"avatar_url":"https://avatars.githubusercontent.com/u/7500948?v=3","gravatar_id":"","url":"https://api.github.com/users/FloMaetschke","html_url":"https://github.com/FloMaetschke","followers_url":"https://api.github.com/users/FloMaetschke/followers","following_url":"https://api.github.com/users/FloMaetschke/following{/other_user}","gists_url":"https://api.github.com/users/FloMaetschke/gists{/gist_id}","starred_url":"https://api.github.com/users/FloMaetschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FloMaetschke/subscriptions","organizations_url":"https://api.github.com/users/FloMaetschke/orgs","repos_url":"https://api.github.com/users/FloMaetschke/repos","events_url":"https://api.github.com/users/FloMaetschke/events{/privacy}","received_events_url":"https://api.github.com/users/FloMaetschke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FloMaetschke/node-red-contrib-eibd","description":"KNX/EIB nodes for node-red","fork":true,"url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd","forks_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/forks","keys_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/teams","hooks_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/hooks","issue_events_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/issues/events{/number}","events_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/events","assignees_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/assignees{/user}","branches_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/branches{/branch}","tags_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/tags","blobs_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/git/refs{/sha}","trees_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/statuses/{sha}","languages_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/languages","stargazers_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/stargazers","contributors_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/contributors","subscribers_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/subscribers","subscription_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/subscription","commits_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/commits{/sha}","git_commits_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/git/commits{/sha}","comments_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/comments{/number}","issue_comment_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/issues/comments{/number}","contents_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/contents/{+path}","compare_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/merges","archive_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/downloads","issues_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/issues{/number}","pulls_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/pulls{/number}","milestones_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/milestones{/number}","notifications_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/labels{/name}","releases_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/releases{/id}","deployments_url":"https://api.github.com/repos/FloMaetschke/node-red-contrib-eibd/deployments","created_at":"2016-08-28T09:42:43Z","updated_at":"2016-08-28T09:49:16Z","pushed_at":"2016-08-28T09:49:15Z","git_url":"git://github.com/FloMaetschke/node-red-contrib-eibd.git","ssh_url":"git@github.com:FloMaetschke/node-red-contrib-eibd.git","clone_url":"https://github.com/FloMaetschke/node-red-contrib-eibd.git","svn_url":"https://github.com/FloMaetschke/node-red-contrib-eibd","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ekarak:master","ref":"master","sha":"80a50858e285f8c728ac8aacf3cb8c35b005a613","user":{"login":"ekarak","id":587817,"avatar_url":"https://avatars.githubusercontent.com/u/587817?v=3","gravatar_id":"","url":"https://api.github.com/users/ekarak","html_url":"https://github.com/ekarak","followers_url":"https://api.github.com/users/ekarak/followers","following_url":"https://api.github.com/users/ekarak/following{/other_user}","gists_url":"https://api.github.com/users/ekarak/gists{/gist_id}","starred_url":"https://api.github.com/users/ekarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekarak/subscriptions","organizations_url":"https://api.github.com/users/ekarak/orgs","repos_url":"https://api.github.com/users/ekarak/repos","events_url":"https://api.github.com/users/ekarak/events{/privacy}","received_events_url":"https://api.github.com/users/ekarak/received_events","type":"User","site_admin":false},"repo":{"id":21329611,"name":"node-red-contrib-eibd","full_name":"ekarak/node-red-contrib-eibd","owner":{"login":"ekarak","id":587817,"avatar_url":"https://avatars.githubusercontent.com/u/587817?v=3","gravatar_id":"","url":"https://api.github.com/users/ekarak","html_url":"https://github.com/ekarak","followers_url":"https://api.github.com/users/ekarak/followers","following_url":"https://api.github.com/users/ekarak/following{/other_user}","gists_url":"https://api.github.com/users/ekarak/gists{/gist_id}","starred_url":"https://api.github.com/users/ekarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekarak/subscriptions","organizations_url":"https://api.github.com/users/ekarak/orgs","repos_url":"https://api.github.com/users/ekarak/repos","events_url":"https://api.github.com/users/ekarak/events{/privacy}","received_events_url":"https://api.github.com/users/ekarak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ekarak/node-red-contrib-eibd","description":"KNX/EIB nodes for node-red","fork":false,"url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd","forks_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/forks","keys_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/teams","hooks_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/hooks","issue_events_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues/events{/number}","events_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/events","assignees_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/assignees{/user}","branches_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/branches{/branch}","tags_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/tags","blobs_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/git/refs{/sha}","trees_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/statuses/{sha}","languages_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/languages","stargazers_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/stargazers","contributors_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/contributors","subscribers_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/subscribers","subscription_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/subscription","commits_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/commits{/sha}","git_commits_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/git/commits{/sha}","comments_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/comments{/number}","issue_comment_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues/comments{/number}","contents_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/contents/{+path}","compare_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/merges","archive_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/downloads","issues_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues{/number}","pulls_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls{/number}","milestones_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/milestones{/number}","notifications_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/labels{/name}","releases_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/releases{/id}","deployments_url":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/deployments","created_at":"2014-06-29T18:40:07Z","updated_at":"2016-09-21T03:05:21Z","pushed_at":"2016-08-28T09:50:40Z","git_url":"git://github.com/ekarak/node-red-contrib-eibd.git","ssh_url":"git@github.com:ekarak/node-red-contrib-eibd.git","clone_url":"https://github.com/ekarak/node-red-contrib-eibd.git","svn_url":"https://github.com/ekarak/node-red-contrib-eibd","homepage":null,"size":31,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9"},"html":{"href":"https://github.com/ekarak/node-red-contrib-eibd/pull/9"},"issue":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues/9"},"comments":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ekarak/node-red-contrib-eibd/statuses/d6606e475d1dc6f85b82360a16e711aaaed9c402"}}}}
{"actor":{"display_login":"ekarak"}}