{"action":"created","comment":{"url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments/24716603","id":24716603,"diff_hunk":"@@ -0,0 +1,532 @@\n+/**\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation; either version 2 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Library General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n+ */\n+angular\n+ .module('olaApp', ['ngRoute'])\n+ .constant('OLA', {\n+  'MAX_CHANNEL_NUMBER': 512,\n+  'MIN_CHANNEL_NUMBER': 1,\n+  'MIN_CHANNEL_VALUE': 0,\n+  'MAX_CHANNEL_VALUE': 255\n+ })\n+ .factory('$ola', ['$http', '$window', 'OLA',\n+  function ($http, $window, OLA) {\n+   \"use strict\";\n+   // once olad supports json post data postEncode can go away and the header in post requests too.\n+   var postEncode = function (data) {\n+    var PostData = [];\n+    for (var key in data) {\n+     PostData.push(key + '=' + data[key]);\n+    }\n+    return PostData.join('&');\n+   };\n+   var dmxConvert = function (dmx) {\n+    var length = 1,\n+     integers = [];","path":"javascript/new-src/src/js/app.js","position":37,"original_position":37,"commit_id":"f1b3a20e769a1b3d33e12ced376c8a2b9200b2b6","original_commit_id":"f1b3a20e769a1b3d33e12ced376c8a2b9200b2b6","user":{"login":"peternewman","id":6216436,"avatar_url":"https://avatars.githubusercontent.com/u/6216436?v=3","gravatar_id":"","url":"https://api.github.com/users/peternewman","html_url":"https://github.com/peternewman","followers_url":"https://api.github.com/users/peternewman/followers","following_url":"https://api.github.com/users/peternewman/following{/other_user}","gists_url":"https://api.github.com/users/peternewman/gists{/gist_id}","starred_url":"https://api.github.com/users/peternewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternewman/subscriptions","organizations_url":"https://api.github.com/users/peternewman/orgs","repos_url":"https://api.github.com/users/peternewman/repos","events_url":"https://api.github.com/users/peternewman/events{/privacy}","received_events_url":"https://api.github.com/users/peternewman/received_events","type":"User","site_admin":false},"body":"De-dent by 1.","created_at":"2015-02-14T19:26:45Z","updated_at":"2015-02-14T19:26:45Z","html_url":"https://github.com/OpenLightingProject/ola/pull/615#discussion_r24716603","pull_request_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615","_links":{"self":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments/24716603"},"html":{"href":"https://github.com/OpenLightingProject/ola/pull/615#discussion_r24716603"},"pull_request":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615"}}},"pull_request":{"url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615","id":28383339,"html_url":"https://github.com/OpenLightingProject/ola/pull/615","diff_url":"https://github.com/OpenLightingProject/ola/pull/615.diff","patch_url":"https://github.com/OpenLightingProject/ola/pull/615.patch","issue_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/615","number":615,"state":"open","locked":false,"title":"Web rework","user":{"login":"daveol","id":1355084,"avatar_url":"https://avatars.githubusercontent.com/u/1355084?v=3","gravatar_id":"","url":"https://api.github.com/users/daveol","html_url":"https://github.com/daveol","followers_url":"https://api.github.com/users/daveol/followers","following_url":"https://api.github.com/users/daveol/following{/other_user}","gists_url":"https://api.github.com/users/daveol/gists{/gist_id}","starred_url":"https://api.github.com/users/daveol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveol/subscriptions","organizations_url":"https://api.github.com/users/daveol/orgs","repos_url":"https://api.github.com/users/daveol/repos","events_url":"https://api.github.com/users/daveol/events{/privacy}","received_events_url":"https://api.github.com/users/daveol/received_events","type":"User","site_admin":false},"body":"don't merge yet. The web interface is incomplete but i wanted to see what you had to say about it and what you think","created_at":"2015-01-30T18:46:37Z","updated_at":"2015-02-14T19:26:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e79458b919c6e433f5d999b0d5819214e1514c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615/commits","review_comments_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615/comments","review_comment_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/615/comments","statuses_url":"https://api.github.com/repos/OpenLightingProject/ola/statuses/f1b3a20e769a1b3d33e12ced376c8a2b9200b2b6","head":{"label":"daveol:web-rework","ref":"web-rework","sha":"f1b3a20e769a1b3d33e12ced376c8a2b9200b2b6","user":{"login":"daveol","id":1355084,"avatar_url":"https://avatars.githubusercontent.com/u/1355084?v=3","gravatar_id":"","url":"https://api.github.com/users/daveol","html_url":"https://github.com/daveol","followers_url":"https://api.github.com/users/daveol/followers","following_url":"https://api.github.com/users/daveol/following{/other_user}","gists_url":"https://api.github.com/users/daveol/gists{/gist_id}","starred_url":"https://api.github.com/users/daveol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveol/subscriptions","organizations_url":"https://api.github.com/users/daveol/orgs","repos_url":"https://api.github.com/users/daveol/repos","events_url":"https://api.github.com/users/daveol/events{/privacy}","received_events_url":"https://api.github.com/users/daveol/received_events","type":"User","site_admin":false},"repo":{"id":30014896,"name":"ola","full_name":"daveol/ola","owner":{"login":"daveol","id":1355084,"avatar_url":"https://avatars.githubusercontent.com/u/1355084?v=3","gravatar_id":"","url":"https://api.github.com/users/daveol","html_url":"https://github.com/daveol","followers_url":"https://api.github.com/users/daveol/followers","following_url":"https://api.github.com/users/daveol/following{/other_user}","gists_url":"https://api.github.com/users/daveol/gists{/gist_id}","starred_url":"https://api.github.com/users/daveol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveol/subscriptions","organizations_url":"https://api.github.com/users/daveol/orgs","repos_url":"https://api.github.com/users/daveol/repos","events_url":"https://api.github.com/users/daveol/events{/privacy}","received_events_url":"https://api.github.com/users/daveol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daveol/ola","description":"The Open Lighting Architecture","fork":true,"url":"https://api.github.com/repos/daveol/ola","forks_url":"https://api.github.com/repos/daveol/ola/forks","keys_url":"https://api.github.com/repos/daveol/ola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daveol/ola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daveol/ola/teams","hooks_url":"https://api.github.com/repos/daveol/ola/hooks","issue_events_url":"https://api.github.com/repos/daveol/ola/issues/events{/number}","events_url":"https://api.github.com/repos/daveol/ola/events","assignees_url":"https://api.github.com/repos/daveol/ola/assignees{/user}","branches_url":"https://api.github.com/repos/daveol/ola/branches{/branch}","tags_url":"https://api.github.com/repos/daveol/ola/tags","blobs_url":"https://api.github.com/repos/daveol/ola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daveol/ola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daveol/ola/git/refs{/sha}","trees_url":"https://api.github.com/repos/daveol/ola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daveol/ola/statuses/{sha}","languages_url":"https://api.github.com/repos/daveol/ola/languages","stargazers_url":"https://api.github.com/repos/daveol/ola/stargazers","contributors_url":"https://api.github.com/repos/daveol/ola/contributors","subscribers_url":"https://api.github.com/repos/daveol/ola/subscribers","subscription_url":"https://api.github.com/repos/daveol/ola/subscription","commits_url":"https://api.github.com/repos/daveol/ola/commits{/sha}","git_commits_url":"https://api.github.com/repos/daveol/ola/git/commits{/sha}","comments_url":"https://api.github.com/repos/daveol/ola/comments{/number}","issue_comment_url":"https://api.github.com/repos/daveol/ola/issues/comments/{number}","contents_url":"https://api.github.com/repos/daveol/ola/contents/{+path}","compare_url":"https://api.github.com/repos/daveol/ola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daveol/ola/merges","archive_url":"https://api.github.com/repos/daveol/ola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daveol/ola/downloads","issues_url":"https://api.github.com/repos/daveol/ola/issues{/number}","pulls_url":"https://api.github.com/repos/daveol/ola/pulls{/number}","milestones_url":"https://api.github.com/repos/daveol/ola/milestones{/number}","notifications_url":"https://api.github.com/repos/daveol/ola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daveol/ola/labels{/name}","releases_url":"https://api.github.com/repos/daveol/ola/releases{/id}","created_at":"2015-01-29T10:15:10Z","updated_at":"2015-02-10T15:11:52Z","pushed_at":"2015-02-14T18:48:14Z","git_url":"git://github.com/daveol/ola.git","ssh_url":"git@github.com:daveol/ola.git","clone_url":"https://github.com/daveol/ola.git","svn_url":"https://github.com/daveol/ola","homepage":"https://www.openlighting.org/ola/","size":16066,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"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":"OpenLightingProject:master","ref":"master","sha":"77fb469fe1376fd8f395f2b2ca8be387fb1b7c13","user":{"login":"OpenLightingProject","id":6199314,"avatar_url":"https://avatars.githubusercontent.com/u/6199314?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenLightingProject","html_url":"https://github.com/OpenLightingProject","followers_url":"https://api.github.com/users/OpenLightingProject/followers","following_url":"https://api.github.com/users/OpenLightingProject/following{/other_user}","gists_url":"https://api.github.com/users/OpenLightingProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenLightingProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenLightingProject/subscriptions","organizations_url":"https://api.github.com/users/OpenLightingProject/orgs","repos_url":"https://api.github.com/users/OpenLightingProject/repos","events_url":"https://api.github.com/users/OpenLightingProject/events{/privacy}","received_events_url":"https://api.github.com/users/OpenLightingProject/received_events","type":"Organization","site_admin":false},"repo":{"id":15233168,"name":"ola","full_name":"OpenLightingProject/ola","owner":{"login":"OpenLightingProject","id":6199314,"avatar_url":"https://avatars.githubusercontent.com/u/6199314?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenLightingProject","html_url":"https://github.com/OpenLightingProject","followers_url":"https://api.github.com/users/OpenLightingProject/followers","following_url":"https://api.github.com/users/OpenLightingProject/following{/other_user}","gists_url":"https://api.github.com/users/OpenLightingProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenLightingProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenLightingProject/subscriptions","organizations_url":"https://api.github.com/users/OpenLightingProject/orgs","repos_url":"https://api.github.com/users/OpenLightingProject/repos","events_url":"https://api.github.com/users/OpenLightingProject/events{/privacy}","received_events_url":"https://api.github.com/users/OpenLightingProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenLightingProject/ola","description":"The Open Lighting Architecture","fork":false,"url":"https://api.github.com/repos/OpenLightingProject/ola","forks_url":"https://api.github.com/repos/OpenLightingProject/ola/forks","keys_url":"https://api.github.com/repos/OpenLightingProject/ola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenLightingProject/ola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenLightingProject/ola/teams","hooks_url":"https://api.github.com/repos/OpenLightingProject/ola/hooks","issue_events_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/events{/number}","events_url":"https://api.github.com/repos/OpenLightingProject/ola/events","assignees_url":"https://api.github.com/repos/OpenLightingProject/ola/assignees{/user}","branches_url":"https://api.github.com/repos/OpenLightingProject/ola/branches{/branch}","tags_url":"https://api.github.com/repos/OpenLightingProject/ola/tags","blobs_url":"https://api.github.com/repos/OpenLightingProject/ola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenLightingProject/ola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenLightingProject/ola/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenLightingProject/ola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenLightingProject/ola/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenLightingProject/ola/languages","stargazers_url":"https://api.github.com/repos/OpenLightingProject/ola/stargazers","contributors_url":"https://api.github.com/repos/OpenLightingProject/ola/contributors","subscribers_url":"https://api.github.com/repos/OpenLightingProject/ola/subscribers","subscription_url":"https://api.github.com/repos/OpenLightingProject/ola/subscription","commits_url":"https://api.github.com/repos/OpenLightingProject/ola/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenLightingProject/ola/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenLightingProject/ola/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/comments/{number}","contents_url":"https://api.github.com/repos/OpenLightingProject/ola/contents/{+path}","compare_url":"https://api.github.com/repos/OpenLightingProject/ola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenLightingProject/ola/merges","archive_url":"https://api.github.com/repos/OpenLightingProject/ola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenLightingProject/ola/downloads","issues_url":"https://api.github.com/repos/OpenLightingProject/ola/issues{/number}","pulls_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenLightingProject/ola/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenLightingProject/ola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenLightingProject/ola/labels{/name}","releases_url":"https://api.github.com/repos/OpenLightingProject/ola/releases{/id}","created_at":"2013-12-16T18:06:52Z","updated_at":"2015-02-10T15:20:29Z","pushed_at":"2015-02-10T15:20:29Z","git_url":"git://github.com/OpenLightingProject/ola.git","ssh_url":"git@github.com:OpenLightingProject/ola.git","clone_url":"https://github.com/OpenLightingProject/ola.git","svn_url":"https://github.com/OpenLightingProject/ola","homepage":"https://www.openlighting.org/ola/","size":21279,"stargazers_count":67,"watchers_count":67,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":75,"forks":41,"open_issues":75,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615"},"html":{"href":"https://github.com/OpenLightingProject/ola/pull/615"},"issue":{"href":"https://api.github.com/repos/OpenLightingProject/ola/issues/615"},"comments":{"href":"https://api.github.com/repos/OpenLightingProject/ola/issues/615/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/615/commits"},"statuses":{"href":"https://api.github.com/repos/OpenLightingProject/ola/statuses/f1b3a20e769a1b3d33e12ced376c8a2b9200b2b6"}}}}