{"action":"created","comment":{"url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments/165744975","pull_request_review_id":93739208,"id":165744975,"diff_hunk":"@@ -77,8 +79,8 @@ echo \"Schema created or already exists.\"\n # Pull the meters into the DB and get data\n if [ $1 != \"NONE\"  ]; then\n     set -e\n-    echo \"Trying to add meters.\"\n-    npm run addMamacMeters $1 2> /dev/null\n+    echo \"Trying to add meters from '$IPS_FILE'.\"\n+    npm run addMamacMeters $IPS_FILE 2> /dev/null","path":"src/scripts/init.sh","position":16,"original_position":16,"commit_id":"dd0ef1eb5997ac4ac027d952ffb6cd1177d179be","original_commit_id":"dd0ef1eb5997ac4ac027d952ffb6cd1177d179be","user":{"login":"johndiiorio","id":22435660,"avatar_url":"https://avatars2.githubusercontent.com/u/22435660?v=4","gravatar_id":"","url":"https://api.github.com/users/johndiiorio","html_url":"https://github.com/johndiiorio","followers_url":"https://api.github.com/users/johndiiorio/followers","following_url":"https://api.github.com/users/johndiiorio/following{/other_user}","gists_url":"https://api.github.com/users/johndiiorio/gists{/gist_id}","starred_url":"https://api.github.com/users/johndiiorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johndiiorio/subscriptions","organizations_url":"https://api.github.com/users/johndiiorio/orgs","repos_url":"https://api.github.com/users/johndiiorio/repos","events_url":"https://api.github.com/users/johndiiorio/events{/privacy}","received_events_url":"https://api.github.com/users/johndiiorio/received_events","type":"User","site_admin":false},"body":"Just curious, how does this fix the issue? Aren't you just aliasing $1 to IPS_FILE?","created_at":"2018-02-02T19:59:12Z","updated_at":"2018-02-02T19:59:12Z","html_url":"https://github.com/OpenEnergyDashboard/OED/pull/279#discussion_r165744975","pull_request_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments/165744975"},"html":{"href":"https://github.com/OpenEnergyDashboard/OED/pull/279#discussion_r165744975"},"pull_request":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279"}}},"pull_request":{"url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279","id":166884162,"html_url":"https://github.com/OpenEnergyDashboard/OED/pull/279","diff_url":"https://github.com/OpenEnergyDashboard/OED/pull/279.diff","patch_url":"https://github.com/OpenEnergyDashboard/OED/pull/279.patch","issue_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/279","number":279,"state":"open","locked":false,"title":"Add meters properly in init","user":{"login":"LeoTindall","id":3290365,"avatar_url":"https://avatars0.githubusercontent.com/u/3290365?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoTindall","html_url":"https://github.com/LeoTindall","followers_url":"https://api.github.com/users/LeoTindall/followers","following_url":"https://api.github.com/users/LeoTindall/following{/other_user}","gists_url":"https://api.github.com/users/LeoTindall/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoTindall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoTindall/subscriptions","organizations_url":"https://api.github.com/users/LeoTindall/orgs","repos_url":"https://api.github.com/users/LeoTindall/repos","events_url":"https://api.github.com/users/LeoTindall/events{/privacy}","received_events_url":"https://api.github.com/users/LeoTindall/received_events","type":"User","site_admin":false},"body":"Closes #278","created_at":"2018-02-02T19:28:45Z","updated_at":"2018-02-02T19:59:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23e85897ae2b4150e19a2134be1195a4c8007888","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279/commits","review_comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279/comments","review_comment_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/279/comments","statuses_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/dd0ef1eb5997ac4ac027d952ffb6cd1177d179be","head":{"label":"LeoTindall:meters-add-init-fix","ref":"meters-add-init-fix","sha":"dd0ef1eb5997ac4ac027d952ffb6cd1177d179be","user":{"login":"LeoTindall","id":3290365,"avatar_url":"https://avatars0.githubusercontent.com/u/3290365?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoTindall","html_url":"https://github.com/LeoTindall","followers_url":"https://api.github.com/users/LeoTindall/followers","following_url":"https://api.github.com/users/LeoTindall/following{/other_user}","gists_url":"https://api.github.com/users/LeoTindall/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoTindall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoTindall/subscriptions","organizations_url":"https://api.github.com/users/LeoTindall/orgs","repos_url":"https://api.github.com/users/LeoTindall/repos","events_url":"https://api.github.com/users/LeoTindall/events{/privacy}","received_events_url":"https://api.github.com/users/LeoTindall/received_events","type":"User","site_admin":false},"repo":{"id":89728721,"name":"OED","full_name":"LeoTindall/OED","owner":{"login":"LeoTindall","id":3290365,"avatar_url":"https://avatars0.githubusercontent.com/u/3290365?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoTindall","html_url":"https://github.com/LeoTindall","followers_url":"https://api.github.com/users/LeoTindall/followers","following_url":"https://api.github.com/users/LeoTindall/following{/other_user}","gists_url":"https://api.github.com/users/LeoTindall/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoTindall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoTindall/subscriptions","organizations_url":"https://api.github.com/users/LeoTindall/orgs","repos_url":"https://api.github.com/users/LeoTindall/repos","events_url":"https://api.github.com/users/LeoTindall/events{/privacy}","received_events_url":"https://api.github.com/users/LeoTindall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LeoTindall/OED","description":"Open Energy Dashboard (OED)","fork":true,"url":"https://api.github.com/repos/LeoTindall/OED","forks_url":"https://api.github.com/repos/LeoTindall/OED/forks","keys_url":"https://api.github.com/repos/LeoTindall/OED/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LeoTindall/OED/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LeoTindall/OED/teams","hooks_url":"https://api.github.com/repos/LeoTindall/OED/hooks","issue_events_url":"https://api.github.com/repos/LeoTindall/OED/issues/events{/number}","events_url":"https://api.github.com/repos/LeoTindall/OED/events","assignees_url":"https://api.github.com/repos/LeoTindall/OED/assignees{/user}","branches_url":"https://api.github.com/repos/LeoTindall/OED/branches{/branch}","tags_url":"https://api.github.com/repos/LeoTindall/OED/tags","blobs_url":"https://api.github.com/repos/LeoTindall/OED/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LeoTindall/OED/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LeoTindall/OED/git/refs{/sha}","trees_url":"https://api.github.com/repos/LeoTindall/OED/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LeoTindall/OED/statuses/{sha}","languages_url":"https://api.github.com/repos/LeoTindall/OED/languages","stargazers_url":"https://api.github.com/repos/LeoTindall/OED/stargazers","contributors_url":"https://api.github.com/repos/LeoTindall/OED/contributors","subscribers_url":"https://api.github.com/repos/LeoTindall/OED/subscribers","subscription_url":"https://api.github.com/repos/LeoTindall/OED/subscription","commits_url":"https://api.github.com/repos/LeoTindall/OED/commits{/sha}","git_commits_url":"https://api.github.com/repos/LeoTindall/OED/git/commits{/sha}","comments_url":"https://api.github.com/repos/LeoTindall/OED/comments{/number}","issue_comment_url":"https://api.github.com/repos/LeoTindall/OED/issues/comments{/number}","contents_url":"https://api.github.com/repos/LeoTindall/OED/contents/{+path}","compare_url":"https://api.github.com/repos/LeoTindall/OED/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LeoTindall/OED/merges","archive_url":"https://api.github.com/repos/LeoTindall/OED/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LeoTindall/OED/downloads","issues_url":"https://api.github.com/repos/LeoTindall/OED/issues{/number}","pulls_url":"https://api.github.com/repos/LeoTindall/OED/pulls{/number}","milestones_url":"https://api.github.com/repos/LeoTindall/OED/milestones{/number}","notifications_url":"https://api.github.com/repos/LeoTindall/OED/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LeoTindall/OED/labels{/name}","releases_url":"https://api.github.com/repos/LeoTindall/OED/releases{/id}","deployments_url":"https://api.github.com/repos/LeoTindall/OED/deployments","created_at":"2017-04-28T17:22:01Z","updated_at":"2017-04-28T17:22:03Z","pushed_at":"2018-02-02T19:28:16Z","git_url":"git://github.com/LeoTindall/OED.git","ssh_url":"git@github.com:LeoTindall/OED.git","clone_url":"https://github.com/LeoTindall/OED.git","svn_url":"https://github.com/LeoTindall/OED","homepage":"","size":8160,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenEnergyDashboard:development","ref":"development","sha":"dea1134d47f4a19639c0469341d7298a043981d2","user":{"login":"OpenEnergyDashboard","id":32343363,"avatar_url":"https://avatars1.githubusercontent.com/u/32343363?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenEnergyDashboard","html_url":"https://github.com/OpenEnergyDashboard","followers_url":"https://api.github.com/users/OpenEnergyDashboard/followers","following_url":"https://api.github.com/users/OpenEnergyDashboard/following{/other_user}","gists_url":"https://api.github.com/users/OpenEnergyDashboard/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenEnergyDashboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenEnergyDashboard/subscriptions","organizations_url":"https://api.github.com/users/OpenEnergyDashboard/orgs","repos_url":"https://api.github.com/users/OpenEnergyDashboard/repos","events_url":"https://api.github.com/users/OpenEnergyDashboard/events{/privacy}","received_events_url":"https://api.github.com/users/OpenEnergyDashboard/received_events","type":"Organization","site_admin":false},"repo":{"id":71814050,"name":"OED","full_name":"OpenEnergyDashboard/OED","owner":{"login":"OpenEnergyDashboard","id":32343363,"avatar_url":"https://avatars1.githubusercontent.com/u/32343363?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenEnergyDashboard","html_url":"https://github.com/OpenEnergyDashboard","followers_url":"https://api.github.com/users/OpenEnergyDashboard/followers","following_url":"https://api.github.com/users/OpenEnergyDashboard/following{/other_user}","gists_url":"https://api.github.com/users/OpenEnergyDashboard/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenEnergyDashboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenEnergyDashboard/subscriptions","organizations_url":"https://api.github.com/users/OpenEnergyDashboard/orgs","repos_url":"https://api.github.com/users/OpenEnergyDashboard/repos","events_url":"https://api.github.com/users/OpenEnergyDashboard/events{/privacy}","received_events_url":"https://api.github.com/users/OpenEnergyDashboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenEnergyDashboard/OED","description":"Open Energy Dashboard (OED)","fork":false,"url":"https://api.github.com/repos/OpenEnergyDashboard/OED","forks_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/forks","keys_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/teams","hooks_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/hooks","issue_events_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/events{/number}","events_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/events","assignees_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/assignees{/user}","branches_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/branches{/branch}","tags_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/tags","blobs_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/languages","stargazers_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/stargazers","contributors_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/contributors","subscribers_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/subscribers","subscription_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/subscription","commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/contents/{+path}","compare_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/merges","archive_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/downloads","issues_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues{/number}","pulls_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/labels{/name}","releases_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/releases{/id}","deployments_url":"https://api.github.com/repos/OpenEnergyDashboard/OED/deployments","created_at":"2016-10-24T17:30:37Z","updated_at":"2018-01-26T22:56:49Z","pushed_at":"2018-02-02T19:28:46Z","git_url":"git://github.com/OpenEnergyDashboard/OED.git","ssh_url":"git@github.com:OpenEnergyDashboard/OED.git","clone_url":"https://github.com/OpenEnergyDashboard/OED.git","svn_url":"https://github.com/OpenEnergyDashboard/OED","homepage":"","size":8299,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":63,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":3,"open_issues":63,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279"},"html":{"href":"https://github.com/OpenEnergyDashboard/OED/pull/279"},"issue":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/279"},"comments":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/OpenEnergyDashboard/OED/statuses/dd0ef1eb5997ac4ac027d952ffb6cd1177d179be"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"johndiiorio"}}