{"action":"created","comment":{"url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/comments/82376629","pull_request_review_id":3289207,"id":82376629,"diff_hunk":"@@ -51,6 +51,24 @@ module.exports = NodeHelper.create({\n \t\t\t\t\texec('sudo shutdown -r now', function(error, stdout, stderr){ callback(stdout); });\n \t\t\t\t\treturn;\n \t\t\t\t}\n+\t\t\t\tif (query.action === 'RESTART')\n+\t\t\t\t{\n+\t\t\t\t\tres.send({'status': 'success'});\n+\t\t\t\t\texec('pm2 restart mm', function(error, stdout, stderr){ callback(stdout); });\n+\t\t\t\t\treturn;\n+\t\t\t\t}\n+\t\t\t\tif (query.action === 'MONITORON')\n+\t\t\t\t{\n+\t\t\t\t\tres.send({'status': 'success'});\n+\t\t\t\t\texec('/opt/vc/bin/tvservice -p', function(error, stdout, stderr){ callback(stdout); });","path":"node_helper.js","position":13,"original_position":13,"commit_id":"74c48fcc223bd4438210fbcecf7224dc208db421","original_commit_id":"74c48fcc223bd4438210fbcecf7224dc208db421","user":{"login":"Jopyth","id":564777,"avatar_url":"https://avatars.githubusercontent.com/u/564777?v=3","gravatar_id":"","url":"https://api.github.com/users/Jopyth","html_url":"https://github.com/Jopyth","followers_url":"https://api.github.com/users/Jopyth/followers","following_url":"https://api.github.com/users/Jopyth/following{/other_user}","gists_url":"https://api.github.com/users/Jopyth/gists{/gist_id}","starred_url":"https://api.github.com/users/Jopyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jopyth/subscriptions","organizations_url":"https://api.github.com/users/Jopyth/orgs","repos_url":"https://api.github.com/users/Jopyth/repos","events_url":"https://api.github.com/users/Jopyth/events{/privacy}","received_events_url":"https://api.github.com/users/Jopyth/received_events","type":"User","site_admin":false},"body":"Thank you for the pull request. Could you add the `sudo cvht ...`? Some people experienced errors without this. Oherwise it looks ready for a merge.\r\n\r\nSee this line: https://github.com/paviro/MMM-PIR-Sensor/blob/master/node_helper.js#L24","created_at":"2016-10-07T12:07:55Z","updated_at":"2016-10-07T12:08:09Z","html_url":"https://github.com/Jopyth/MMM-Remote-Control/pull/2#discussion_r82376629","pull_request_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/comments/82376629"},"html":{"href":"https://github.com/Jopyth/MMM-Remote-Control/pull/2#discussion_r82376629"},"pull_request":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2","id":88386318,"html_url":"https://github.com/Jopyth/MMM-Remote-Control/pull/2","diff_url":"https://github.com/Jopyth/MMM-Remote-Control/pull/2.diff","patch_url":"https://github.com/Jopyth/MMM-Remote-Control/pull/2.patch","issue_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues/2","number":2,"state":"open","locked":false,"title":"Monitor on and off / restart MM app","user":{"login":"Bangee44","id":9624743,"avatar_url":"https://avatars.githubusercontent.com/u/9624743?v=3","gravatar_id":"","url":"https://api.github.com/users/Bangee44","html_url":"https://github.com/Bangee44","followers_url":"https://api.github.com/users/Bangee44/followers","following_url":"https://api.github.com/users/Bangee44/following{/other_user}","gists_url":"https://api.github.com/users/Bangee44/gists{/gist_id}","starred_url":"https://api.github.com/users/Bangee44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bangee44/subscriptions","organizations_url":"https://api.github.com/users/Bangee44/orgs","repos_url":"https://api.github.com/users/Bangee44/repos","events_url":"https://api.github.com/users/Bangee44/events{/privacy}","received_events_url":"https://api.github.com/users/Bangee44/received_events","type":"User","site_admin":false},"body":"I've added new functions to restart you MagicMirror2 app and a funtion to turn your monitor on and off.\r\n\r\nHave fun","created_at":"2016-10-07T06:20:55Z","updated_at":"2016-10-07T12:08:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adaca71ccdde3076104da27abf5456d2c5e3aa00","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues/2/comments","statuses_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/statuses/74c48fcc223bd4438210fbcecf7224dc208db421","head":{"label":"Bangee44:master","ref":"master","sha":"74c48fcc223bd4438210fbcecf7224dc208db421","user":{"login":"Bangee44","id":9624743,"avatar_url":"https://avatars.githubusercontent.com/u/9624743?v=3","gravatar_id":"","url":"https://api.github.com/users/Bangee44","html_url":"https://github.com/Bangee44","followers_url":"https://api.github.com/users/Bangee44/followers","following_url":"https://api.github.com/users/Bangee44/following{/other_user}","gists_url":"https://api.github.com/users/Bangee44/gists{/gist_id}","starred_url":"https://api.github.com/users/Bangee44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bangee44/subscriptions","organizations_url":"https://api.github.com/users/Bangee44/orgs","repos_url":"https://api.github.com/users/Bangee44/repos","events_url":"https://api.github.com/users/Bangee44/events{/privacy}","received_events_url":"https://api.github.com/users/Bangee44/received_events","type":"User","site_admin":false},"repo":{"id":70220172,"name":"MMM-Remote-Control","full_name":"Bangee44/MMM-Remote-Control","owner":{"login":"Bangee44","id":9624743,"avatar_url":"https://avatars.githubusercontent.com/u/9624743?v=3","gravatar_id":"","url":"https://api.github.com/users/Bangee44","html_url":"https://github.com/Bangee44","followers_url":"https://api.github.com/users/Bangee44/followers","following_url":"https://api.github.com/users/Bangee44/following{/other_user}","gists_url":"https://api.github.com/users/Bangee44/gists{/gist_id}","starred_url":"https://api.github.com/users/Bangee44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bangee44/subscriptions","organizations_url":"https://api.github.com/users/Bangee44/orgs","repos_url":"https://api.github.com/users/Bangee44/repos","events_url":"https://api.github.com/users/Bangee44/events{/privacy}","received_events_url":"https://api.github.com/users/Bangee44/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Bangee44/MMM-Remote-Control","description":"Magic Mirrror Module to shutdown or configure your mirror","fork":true,"url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control","forks_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/forks","keys_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/teams","hooks_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/hooks","issue_events_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/issues/events{/number}","events_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/events","assignees_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/assignees{/user}","branches_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/branches{/branch}","tags_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/tags","blobs_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/statuses/{sha}","languages_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/languages","stargazers_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/stargazers","contributors_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/contributors","subscribers_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/subscribers","subscription_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/subscription","commits_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/contents/{+path}","compare_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/merges","archive_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/downloads","issues_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/issues{/number}","pulls_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/pulls{/number}","milestones_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/milestones{/number}","notifications_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/labels{/name}","releases_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/releases{/id}","deployments_url":"https://api.github.com/repos/Bangee44/MMM-Remote-Control/deployments","created_at":"2016-10-07T06:10:02Z","updated_at":"2016-10-07T06:10:04Z","pushed_at":"2016-10-07T06:17:33Z","git_url":"git://github.com/Bangee44/MMM-Remote-Control.git","ssh_url":"git@github.com:Bangee44/MMM-Remote-Control.git","clone_url":"https://github.com/Bangee44/MMM-Remote-Control.git","svn_url":"https://github.com/Bangee44/MMM-Remote-Control","homepage":"","size":230,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"Jopyth:master","ref":"master","sha":"f55d122f693095ba13fa4d76a0a0336784f5e016","user":{"login":"Jopyth","id":564777,"avatar_url":"https://avatars.githubusercontent.com/u/564777?v=3","gravatar_id":"","url":"https://api.github.com/users/Jopyth","html_url":"https://github.com/Jopyth","followers_url":"https://api.github.com/users/Jopyth/followers","following_url":"https://api.github.com/users/Jopyth/following{/other_user}","gists_url":"https://api.github.com/users/Jopyth/gists{/gist_id}","starred_url":"https://api.github.com/users/Jopyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jopyth/subscriptions","organizations_url":"https://api.github.com/users/Jopyth/orgs","repos_url":"https://api.github.com/users/Jopyth/repos","events_url":"https://api.github.com/users/Jopyth/events{/privacy}","received_events_url":"https://api.github.com/users/Jopyth/received_events","type":"User","site_admin":false},"repo":{"id":69601153,"name":"MMM-Remote-Control","full_name":"Jopyth/MMM-Remote-Control","owner":{"login":"Jopyth","id":564777,"avatar_url":"https://avatars.githubusercontent.com/u/564777?v=3","gravatar_id":"","url":"https://api.github.com/users/Jopyth","html_url":"https://github.com/Jopyth","followers_url":"https://api.github.com/users/Jopyth/followers","following_url":"https://api.github.com/users/Jopyth/following{/other_user}","gists_url":"https://api.github.com/users/Jopyth/gists{/gist_id}","starred_url":"https://api.github.com/users/Jopyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jopyth/subscriptions","organizations_url":"https://api.github.com/users/Jopyth/orgs","repos_url":"https://api.github.com/users/Jopyth/repos","events_url":"https://api.github.com/users/Jopyth/events{/privacy}","received_events_url":"https://api.github.com/users/Jopyth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jopyth/MMM-Remote-Control","description":"Magic Mirrror Module to shutdown or configure your mirror","fork":false,"url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control","forks_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/forks","keys_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/teams","hooks_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/hooks","issue_events_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues/events{/number}","events_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/events","assignees_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/assignees{/user}","branches_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/branches{/branch}","tags_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/tags","blobs_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/statuses/{sha}","languages_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/languages","stargazers_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/stargazers","contributors_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/contributors","subscribers_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/subscribers","subscription_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/subscription","commits_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/contents/{+path}","compare_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/merges","archive_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/downloads","issues_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues{/number}","pulls_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls{/number}","milestones_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/milestones{/number}","notifications_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/labels{/name}","releases_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/releases{/id}","deployments_url":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/deployments","created_at":"2016-09-29T19:35:47Z","updated_at":"2016-10-04T07:05:29Z","pushed_at":"2016-10-07T06:20:55Z","git_url":"git://github.com/Jopyth/MMM-Remote-Control.git","ssh_url":"git@github.com:Jopyth/MMM-Remote-Control.git","clone_url":"https://github.com/Jopyth/MMM-Remote-Control.git","svn_url":"https://github.com/Jopyth/MMM-Remote-Control","homepage":"","size":229,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2"},"html":{"href":"https://github.com/Jopyth/MMM-Remote-Control/pull/2"},"issue":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues/2"},"comments":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Jopyth/MMM-Remote-Control/statuses/74c48fcc223bd4438210fbcecf7224dc208db421"}}}}
{"actor":{"display_login":"Jopyth"}}