{"action":"created","comment":{"url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/comments/132813212","pull_request_review_id":55939267,"id":132813212,"diff_hunk":"@@ -0,0 +1,24 @@\n+'use strict';\n+\n+module.exports = {\n+    toCommonJson:  (data , locale = null) => {\n+        // TODO localeで切り替えられるようにする\n+\n+        // 石川河川水位APIに合わせて、値を変換する\n+        const asano = '4_10';\n+        const timeLine = data['4357_4_84276000_51']['timeLineData'];","path":"modules/convert.js","position":9,"original_position":9,"commit_id":"8a4ab10ebc76fd9c6cebeb6ec2ce4ac42af2062d","original_commit_id":"8a4ab10ebc76fd9c6cebeb6ec2ce4ac42af2062d","user":{"login":"mesh1neko","id":10177370,"avatar_url":"https://avatars0.githubusercontent.com/u/10177370?v=4","gravatar_id":"","url":"https://api.github.com/users/mesh1neko","html_url":"https://github.com/mesh1neko","followers_url":"https://api.github.com/users/mesh1neko/followers","following_url":"https://api.github.com/users/mesh1neko/following{/other_user}","gists_url":"https://api.github.com/users/mesh1neko/gists{/gist_id}","starred_url":"https://api.github.com/users/mesh1neko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mesh1neko/subscriptions","organizations_url":"https://api.github.com/users/mesh1neko/orgs","repos_url":"https://api.github.com/users/mesh1neko/repos","events_url":"https://api.github.com/users/mesh1neko/events{/privacy}","received_events_url":"https://api.github.com/users/mesh1neko/received_events","type":"User","site_admin":false},"body":"4357_4_84276000_51\r\nは観測所のIDだと思うので、これも定数にしといていいかもね。","created_at":"2017-08-12T08:16:43Z","updated_at":"2017-08-12T08:19:51Z","html_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher/pull/7#discussion_r132813212","pull_request_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/comments/132813212"},"html":{"href":"https://github.com/Noah0x0/lambda-waterLevelWatcher/pull/7#discussion_r132813212"},"pull_request":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7","id":135448452,"html_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher/pull/7","diff_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher/pull/7.diff","patch_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher/pull/7.patch","issue_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/7","number":7,"state":"open","locked":false,"title":"Put common json format.","user":{"login":"Ihara-kenta","id":24364434,"avatar_url":"https://avatars3.githubusercontent.com/u/24364434?v=4","gravatar_id":"","url":"https://api.github.com/users/Ihara-kenta","html_url":"https://github.com/Ihara-kenta","followers_url":"https://api.github.com/users/Ihara-kenta/followers","following_url":"https://api.github.com/users/Ihara-kenta/following{/other_user}","gists_url":"https://api.github.com/users/Ihara-kenta/gists{/gist_id}","starred_url":"https://api.github.com/users/Ihara-kenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ihara-kenta/subscriptions","organizations_url":"https://api.github.com/users/Ihara-kenta/orgs","repos_url":"https://api.github.com/users/Ihara-kenta/repos","events_url":"https://api.github.com/users/Ihara-kenta/events{/privacy}","received_events_url":"https://api.github.com/users/Ihara-kenta/received_events","type":"User","site_admin":false},"body":"### 修正内容\r\n- lambda実行ごとに、`sample_json/wataerLevel{timestamp}.json`にファイル作成する\r\n- APIレスポンスから、下記formatのjsonオブジェクトを生成する\r\n\t```\r\n\t{\r\n\t\triverName: '浅野川',\r\n\t\theight: '5.50',\r\n\t\ttimestamp: '08月12日 14時10分',\r\n\t\twaterLevel: '0.75',\r\n\t\tdataTrend: '→',\r\n\t\tdataLevel: 0,\r\n\t\tobservatory: '金沢市沖橋(諸江)' \r\n\t}\r\n\t```\r\n\r\n### 参考\r\nhttps://github.com/Noah0x0/lambda-waterLevelAPI/pull/4","created_at":"2017-08-12T05:32:12Z","updated_at":"2017-08-12T08:19:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a183c9cb6dabd450ff0c476ddd3f90ab092bfc6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"runble1","id":3806726,"avatar_url":"https://avatars0.githubusercontent.com/u/3806726?v=4","gravatar_id":"","url":"https://api.github.com/users/runble1","html_url":"https://github.com/runble1","followers_url":"https://api.github.com/users/runble1/followers","following_url":"https://api.github.com/users/runble1/following{/other_user}","gists_url":"https://api.github.com/users/runble1/gists{/gist_id}","starred_url":"https://api.github.com/users/runble1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runble1/subscriptions","organizations_url":"https://api.github.com/users/runble1/orgs","repos_url":"https://api.github.com/users/runble1/repos","events_url":"https://api.github.com/users/runble1/events{/privacy}","received_events_url":"https://api.github.com/users/runble1/received_events","type":"User","site_admin":false},{"login":"mafuyuk","id":9552528,"avatar_url":"https://avatars1.githubusercontent.com/u/9552528?v=4","gravatar_id":"","url":"https://api.github.com/users/mafuyuk","html_url":"https://github.com/mafuyuk","followers_url":"https://api.github.com/users/mafuyuk/followers","following_url":"https://api.github.com/users/mafuyuk/following{/other_user}","gists_url":"https://api.github.com/users/mafuyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/mafuyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mafuyuk/subscriptions","organizations_url":"https://api.github.com/users/mafuyuk/orgs","repos_url":"https://api.github.com/users/mafuyuk/repos","events_url":"https://api.github.com/users/mafuyuk/events{/privacy}","received_events_url":"https://api.github.com/users/mafuyuk/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/7/comments","statuses_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/statuses/8a4ab10ebc76fd9c6cebeb6ec2ce4ac42af2062d","head":{"label":"Noah0x0:feature/put-common-json","ref":"feature/put-common-json","sha":"8a4ab10ebc76fd9c6cebeb6ec2ce4ac42af2062d","user":{"login":"Noah0x0","id":30681720,"avatar_url":"https://avatars0.githubusercontent.com/u/30681720?v=4","gravatar_id":"","url":"https://api.github.com/users/Noah0x0","html_url":"https://github.com/Noah0x0","followers_url":"https://api.github.com/users/Noah0x0/followers","following_url":"https://api.github.com/users/Noah0x0/following{/other_user}","gists_url":"https://api.github.com/users/Noah0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/Noah0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noah0x0/subscriptions","organizations_url":"https://api.github.com/users/Noah0x0/orgs","repos_url":"https://api.github.com/users/Noah0x0/repos","events_url":"https://api.github.com/users/Noah0x0/events{/privacy}","received_events_url":"https://api.github.com/users/Noah0x0/received_events","type":"Organization","site_admin":false},"repo":{"id":99305915,"name":"lambda-waterLevelWatcher","full_name":"Noah0x0/lambda-waterLevelWatcher","owner":{"login":"Noah0x0","id":30681720,"avatar_url":"https://avatars0.githubusercontent.com/u/30681720?v=4","gravatar_id":"","url":"https://api.github.com/users/Noah0x0","html_url":"https://github.com/Noah0x0","followers_url":"https://api.github.com/users/Noah0x0/followers","following_url":"https://api.github.com/users/Noah0x0/following{/other_user}","gists_url":"https://api.github.com/users/Noah0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/Noah0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noah0x0/subscriptions","organizations_url":"https://api.github.com/users/Noah0x0/orgs","repos_url":"https://api.github.com/users/Noah0x0/repos","events_url":"https://api.github.com/users/Noah0x0/events{/privacy}","received_events_url":"https://api.github.com/users/Noah0x0/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher","description":"lambda for watching water level & logging it.","fork":false,"url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher","forks_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/forks","keys_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/teams","hooks_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/hooks","issue_events_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/events{/number}","events_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/events","assignees_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/assignees{/user}","branches_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/branches{/branch}","tags_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/tags","blobs_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/statuses/{sha}","languages_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/languages","stargazers_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/stargazers","contributors_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/contributors","subscribers_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/subscribers","subscription_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/subscription","commits_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/contents/{+path}","compare_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/merges","archive_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/downloads","issues_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues{/number}","pulls_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls{/number}","milestones_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/milestones{/number}","notifications_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/labels{/name}","releases_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/releases{/id}","deployments_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/deployments","created_at":"2017-08-04T05:21:32Z","updated_at":"2017-08-09T22:03:49Z","pushed_at":"2017-08-12T05:32:12Z","git_url":"git://github.com/Noah0x0/lambda-waterLevelWatcher.git","ssh_url":"git@github.com:Noah0x0/lambda-waterLevelWatcher.git","clone_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher.git","svn_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher","homepage":null,"size":19,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"Noah0x0:master","ref":"master","sha":"ccb600253b33b6dc94b2cf7678cdd743c16af9b8","user":{"login":"Noah0x0","id":30681720,"avatar_url":"https://avatars0.githubusercontent.com/u/30681720?v=4","gravatar_id":"","url":"https://api.github.com/users/Noah0x0","html_url":"https://github.com/Noah0x0","followers_url":"https://api.github.com/users/Noah0x0/followers","following_url":"https://api.github.com/users/Noah0x0/following{/other_user}","gists_url":"https://api.github.com/users/Noah0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/Noah0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noah0x0/subscriptions","organizations_url":"https://api.github.com/users/Noah0x0/orgs","repos_url":"https://api.github.com/users/Noah0x0/repos","events_url":"https://api.github.com/users/Noah0x0/events{/privacy}","received_events_url":"https://api.github.com/users/Noah0x0/received_events","type":"Organization","site_admin":false},"repo":{"id":99305915,"name":"lambda-waterLevelWatcher","full_name":"Noah0x0/lambda-waterLevelWatcher","owner":{"login":"Noah0x0","id":30681720,"avatar_url":"https://avatars0.githubusercontent.com/u/30681720?v=4","gravatar_id":"","url":"https://api.github.com/users/Noah0x0","html_url":"https://github.com/Noah0x0","followers_url":"https://api.github.com/users/Noah0x0/followers","following_url":"https://api.github.com/users/Noah0x0/following{/other_user}","gists_url":"https://api.github.com/users/Noah0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/Noah0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noah0x0/subscriptions","organizations_url":"https://api.github.com/users/Noah0x0/orgs","repos_url":"https://api.github.com/users/Noah0x0/repos","events_url":"https://api.github.com/users/Noah0x0/events{/privacy}","received_events_url":"https://api.github.com/users/Noah0x0/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher","description":"lambda for watching water level & logging it.","fork":false,"url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher","forks_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/forks","keys_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/teams","hooks_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/hooks","issue_events_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/events{/number}","events_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/events","assignees_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/assignees{/user}","branches_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/branches{/branch}","tags_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/tags","blobs_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/refs{/sha}","trees_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/statuses/{sha}","languages_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/languages","stargazers_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/stargazers","contributors_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/contributors","subscribers_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/subscribers","subscription_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/subscription","commits_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/commits{/sha}","git_commits_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/git/commits{/sha}","comments_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/comments{/number}","issue_comment_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/comments{/number}","contents_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/contents/{+path}","compare_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/merges","archive_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/downloads","issues_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues{/number}","pulls_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls{/number}","milestones_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/milestones{/number}","notifications_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/labels{/name}","releases_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/releases{/id}","deployments_url":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/deployments","created_at":"2017-08-04T05:21:32Z","updated_at":"2017-08-09T22:03:49Z","pushed_at":"2017-08-12T05:32:12Z","git_url":"git://github.com/Noah0x0/lambda-waterLevelWatcher.git","ssh_url":"git@github.com:Noah0x0/lambda-waterLevelWatcher.git","clone_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher.git","svn_url":"https://github.com/Noah0x0/lambda-waterLevelWatcher","homepage":null,"size":19,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7"},"html":{"href":"https://github.com/Noah0x0/lambda-waterLevelWatcher/pull/7"},"issue":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/7"},"comments":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Noah0x0/lambda-waterLevelWatcher/statuses/8a4ab10ebc76fd9c6cebeb6ec2ce4ac42af2062d"}}}}
{"actor":{"display_login":"mesh1neko"}}