{"action":"created","comment":{"url":"https://api.github.com/repos/WildflowerSchools/camera/pulls/comments/182203083","pull_request_review_id":112963885,"id":182203083,"diff_hunk":"@@ -31,17 +33,18 @@ def capture(directory, time_duration):\n                 print('Captured %s' % filename)\n             except OSError:\n                 raise(\"Trouble renaming the TEMP file: {} to {}\".format(filename_TEMP, filename))\n-            if time.time() - start_time > time_duration * 60 * 60:\n-                return\n-            else:\n+            while True:\n                 time.sleep(get_delay_to_next_timeslot())\n+                if schm.live_now():","path":"capture.py","position":28,"original_position":28,"commit_id":"ac3ef91cdfb0ede77f72a56408b44a0a10b0df6f","original_commit_id":"ac3ef91cdfb0ede77f72a56408b44a0a10b0df6f","user":{"login":"Circuitsoft","id":54396,"avatar_url":"https://avatars2.githubusercontent.com/u/54396?v=4","gravatar_id":"","url":"https://api.github.com/users/Circuitsoft","html_url":"https://github.com/Circuitsoft","followers_url":"https://api.github.com/users/Circuitsoft/followers","following_url":"https://api.github.com/users/Circuitsoft/following{/other_user}","gists_url":"https://api.github.com/users/Circuitsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Circuitsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Circuitsoft/subscriptions","organizations_url":"https://api.github.com/users/Circuitsoft/orgs","repos_url":"https://api.github.com/users/Circuitsoft/repos","events_url":"https://api.github.com/users/Circuitsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Circuitsoft/received_events","type":"User","site_admin":false},"body":"This just breaks the little loop around time.sleep(get_delay_t_next_timeslot()). That way, it delays until next timeslot repeatedly until schm.live_now().","created_at":"2018-04-17T19:44:27Z","updated_at":"2018-04-17T19:44:27Z","html_url":"https://github.com/WildflowerSchools/camera/pull/6#discussion_r182203083","pull_request_url":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/WildflowerSchools/camera/pulls/comments/182203083"},"html":{"href":"https://github.com/WildflowerSchools/camera/pull/6#discussion_r182203083"},"pull_request":{"href":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6"}},"in_reply_to_id":182199325},"pull_request":{"url":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6","id":180425007,"html_url":"https://github.com/WildflowerSchools/camera/pull/6","diff_url":"https://github.com/WildflowerSchools/camera/pull/6.diff","patch_url":"https://github.com/WildflowerSchools/camera/pull/6.patch","issue_url":"https://api.github.com/repos/WildflowerSchools/camera/issues/6","number":6,"state":"open","locked":false,"title":"Change capture duration to sensei schedule","user":{"login":"Circuitsoft","id":54396,"avatar_url":"https://avatars2.githubusercontent.com/u/54396?v=4","gravatar_id":"","url":"https://api.github.com/users/Circuitsoft","html_url":"https://github.com/Circuitsoft","followers_url":"https://api.github.com/users/Circuitsoft/followers","following_url":"https://api.github.com/users/Circuitsoft/following{/other_user}","gists_url":"https://api.github.com/users/Circuitsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Circuitsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Circuitsoft/subscriptions","organizations_url":"https://api.github.com/users/Circuitsoft/orgs","repos_url":"https://api.github.com/users/Circuitsoft/repos","events_url":"https://api.github.com/users/Circuitsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Circuitsoft/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-09T20:55:59Z","updated_at":"2018-04-17T19:44:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2554f562fde668ad6bb5749eee668ec2e8f458a3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6/commits","review_comments_url":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6/comments","review_comment_url":"https://api.github.com/repos/WildflowerSchools/camera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WildflowerSchools/camera/issues/6/comments","statuses_url":"https://api.github.com/repos/WildflowerSchools/camera/statuses/ac3ef91cdfb0ede77f72a56408b44a0a10b0df6f","head":{"label":"WildflowerSchools:sensei_conf","ref":"sensei_conf","sha":"ac3ef91cdfb0ede77f72a56408b44a0a10b0df6f","user":{"login":"WildflowerSchools","id":22823358,"avatar_url":"https://avatars0.githubusercontent.com/u/22823358?v=4","gravatar_id":"","url":"https://api.github.com/users/WildflowerSchools","html_url":"https://github.com/WildflowerSchools","followers_url":"https://api.github.com/users/WildflowerSchools/followers","following_url":"https://api.github.com/users/WildflowerSchools/following{/other_user}","gists_url":"https://api.github.com/users/WildflowerSchools/gists{/gist_id}","starred_url":"https://api.github.com/users/WildflowerSchools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WildflowerSchools/subscriptions","organizations_url":"https://api.github.com/users/WildflowerSchools/orgs","repos_url":"https://api.github.com/users/WildflowerSchools/repos","events_url":"https://api.github.com/users/WildflowerSchools/events{/privacy}","received_events_url":"https://api.github.com/users/WildflowerSchools/received_events","type":"Organization","site_admin":false},"repo":{"id":96468671,"name":"camera","full_name":"WildflowerSchools/camera","owner":{"login":"WildflowerSchools","id":22823358,"avatar_url":"https://avatars0.githubusercontent.com/u/22823358?v=4","gravatar_id":"","url":"https://api.github.com/users/WildflowerSchools","html_url":"https://github.com/WildflowerSchools","followers_url":"https://api.github.com/users/WildflowerSchools/followers","following_url":"https://api.github.com/users/WildflowerSchools/following{/other_user}","gists_url":"https://api.github.com/users/WildflowerSchools/gists{/gist_id}","starred_url":"https://api.github.com/users/WildflowerSchools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WildflowerSchools/subscriptions","organizations_url":"https://api.github.com/users/WildflowerSchools/orgs","repos_url":"https://api.github.com/users/WildflowerSchools/repos","events_url":"https://api.github.com/users/WildflowerSchools/events{/privacy}","received_events_url":"https://api.github.com/users/WildflowerSchools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WildflowerSchools/camera","description":"Capture imagery from cameras and upload to s3","fork":false,"url":"https://api.github.com/repos/WildflowerSchools/camera","forks_url":"https://api.github.com/repos/WildflowerSchools/camera/forks","keys_url":"https://api.github.com/repos/WildflowerSchools/camera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WildflowerSchools/camera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WildflowerSchools/camera/teams","hooks_url":"https://api.github.com/repos/WildflowerSchools/camera/hooks","issue_events_url":"https://api.github.com/repos/WildflowerSchools/camera/issues/events{/number}","events_url":"https://api.github.com/repos/WildflowerSchools/camera/events","assignees_url":"https://api.github.com/repos/WildflowerSchools/camera/assignees{/user}","branches_url":"https://api.github.com/repos/WildflowerSchools/camera/branches{/branch}","tags_url":"https://api.github.com/repos/WildflowerSchools/camera/tags","blobs_url":"https://api.github.com/repos/WildflowerSchools/camera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WildflowerSchools/camera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WildflowerSchools/camera/git/refs{/sha}","trees_url":"https://api.github.com/repos/WildflowerSchools/camera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WildflowerSchools/camera/statuses/{sha}","languages_url":"https://api.github.com/repos/WildflowerSchools/camera/languages","stargazers_url":"https://api.github.com/repos/WildflowerSchools/camera/stargazers","contributors_url":"https://api.github.com/repos/WildflowerSchools/camera/contributors","subscribers_url":"https://api.github.com/repos/WildflowerSchools/camera/subscribers","subscription_url":"https://api.github.com/repos/WildflowerSchools/camera/subscription","commits_url":"https://api.github.com/repos/WildflowerSchools/camera/commits{/sha}","git_commits_url":"https://api.github.com/repos/WildflowerSchools/camera/git/commits{/sha}","comments_url":"https://api.github.com/repos/WildflowerSchools/camera/comments{/number}","issue_comment_url":"https://api.github.com/repos/WildflowerSchools/camera/issues/comments{/number}","contents_url":"https://api.github.com/repos/WildflowerSchools/camera/contents/{+path}","compare_url":"https://api.github.com/repos/WildflowerSchools/camera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WildflowerSchools/camera/merges","archive_url":"https://api.github.com/repos/WildflowerSchools/camera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WildflowerSchools/camera/downloads","issues_url":"https://api.github.com/repos/WildflowerSchools/camera/issues{/number}","pulls_url":"https://api.github.com/repos/WildflowerSchools/camera/pulls{/number}","milestones_url":"https://api.github.com/repos/WildflowerSchools/camera/milestones{/number}","notifications_url":"https://api.github.com/repos/WildflowerSchools/camera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WildflowerSchools/camera/labels{/name}","releases_url":"https://api.github.com/repos/WildflowerSchools/camera/releases{/id}","deployments_url":"https://api.github.com/repos/WildflowerSchools/camera/deployments","created_at":"2017-07-06T20:18:36Z","updated_at":"2018-04-08T18:29:03Z","pushed_at":"2018-04-17T17:25:24Z","git_url":"git://github.com/WildflowerSchools/camera.git","ssh_url":"git@github.com:WildflowerSchools/camera.git","clone_url":"https://github.com/WildflowerSchools/camera.git","svn_url":"https://github.com/WildflowerSchools/camera","homepage":null,"size":652,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"WildflowerSchools:master","ref":"master","sha":"223e307f2abf1f7c591dec25ca43a8f5f17a4e1f","user":{"login":"WildflowerSchools","id":22823358,"avatar_url":"https://avatars0.githubusercontent.com/u/22823358?v=4","gravatar_id":"","url":"https://api.github.com/users/WildflowerSchools","html_url":"https://github.com/WildflowerSchools","followers_url":"https://api.github.com/users/WildflowerSchools/followers","following_url":"https://api.github.com/users/WildflowerSchools/following{/other_user}","gists_url":"https://api.github.com/users/WildflowerSchools/gists{/gist_id}","starred_url":"https://api.github.com/users/WildflowerSchools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WildflowerSchools/subscriptions","organizations_url":"https://api.github.com/users/WildflowerSchools/orgs","repos_url":"https://api.github.com/users/WildflowerSchools/repos","events_url":"https://api.github.com/users/WildflowerSchools/events{/privacy}","received_events_url":"https://api.github.com/users/WildflowerSchools/received_events","type":"Organization","site_admin":false},"repo":{"id":96468671,"name":"camera","full_name":"WildflowerSchools/camera","owner":{"login":"WildflowerSchools","id":22823358,"avatar_url":"https://avatars0.githubusercontent.com/u/22823358?v=4","gravatar_id":"","url":"https://api.github.com/users/WildflowerSchools","html_url":"https://github.com/WildflowerSchools","followers_url":"https://api.github.com/users/WildflowerSchools/followers","following_url":"https://api.github.com/users/WildflowerSchools/following{/other_user}","gists_url":"https://api.github.com/users/WildflowerSchools/gists{/gist_id}","starred_url":"https://api.github.com/users/WildflowerSchools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WildflowerSchools/subscriptions","organizations_url":"https://api.github.com/users/WildflowerSchools/orgs","repos_url":"https://api.github.com/users/WildflowerSchools/repos","events_url":"https://api.github.com/users/WildflowerSchools/events{/privacy}","received_events_url":"https://api.github.com/users/WildflowerSchools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WildflowerSchools/camera","description":"Capture imagery from cameras and upload to s3","fork":false,"url":"https://api.github.com/repos/WildflowerSchools/camera","forks_url":"https://api.github.com/repos/WildflowerSchools/camera/forks","keys_url":"https://api.github.com/repos/WildflowerSchools/camera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WildflowerSchools/camera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WildflowerSchools/camera/teams","hooks_url":"https://api.github.com/repos/WildflowerSchools/camera/hooks","issue_events_url":"https://api.github.com/repos/WildflowerSchools/camera/issues/events{/number}","events_url":"https://api.github.com/repos/WildflowerSchools/camera/events","assignees_url":"https://api.github.com/repos/WildflowerSchools/camera/assignees{/user}","branches_url":"https://api.github.com/repos/WildflowerSchools/camera/branches{/branch}","tags_url":"https://api.github.com/repos/WildflowerSchools/camera/tags","blobs_url":"https://api.github.com/repos/WildflowerSchools/camera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WildflowerSchools/camera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WildflowerSchools/camera/git/refs{/sha}","trees_url":"https://api.github.com/repos/WildflowerSchools/camera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WildflowerSchools/camera/statuses/{sha}","languages_url":"https://api.github.com/repos/WildflowerSchools/camera/languages","stargazers_url":"https://api.github.com/repos/WildflowerSchools/camera/stargazers","contributors_url":"https://api.github.com/repos/WildflowerSchools/camera/contributors","subscribers_url":"https://api.github.com/repos/WildflowerSchools/camera/subscribers","subscription_url":"https://api.github.com/repos/WildflowerSchools/camera/subscription","commits_url":"https://api.github.com/repos/WildflowerSchools/camera/commits{/sha}","git_commits_url":"https://api.github.com/repos/WildflowerSchools/camera/git/commits{/sha}","comments_url":"https://api.github.com/repos/WildflowerSchools/camera/comments{/number}","issue_comment_url":"https://api.github.com/repos/WildflowerSchools/camera/issues/comments{/number}","contents_url":"https://api.github.com/repos/WildflowerSchools/camera/contents/{+path}","compare_url":"https://api.github.com/repos/WildflowerSchools/camera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WildflowerSchools/camera/merges","archive_url":"https://api.github.com/repos/WildflowerSchools/camera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WildflowerSchools/camera/downloads","issues_url":"https://api.github.com/repos/WildflowerSchools/camera/issues{/number}","pulls_url":"https://api.github.com/repos/WildflowerSchools/camera/pulls{/number}","milestones_url":"https://api.github.com/repos/WildflowerSchools/camera/milestones{/number}","notifications_url":"https://api.github.com/repos/WildflowerSchools/camera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WildflowerSchools/camera/labels{/name}","releases_url":"https://api.github.com/repos/WildflowerSchools/camera/releases{/id}","deployments_url":"https://api.github.com/repos/WildflowerSchools/camera/deployments","created_at":"2017-07-06T20:18:36Z","updated_at":"2018-04-08T18:29:03Z","pushed_at":"2018-04-17T17:25:24Z","git_url":"git://github.com/WildflowerSchools/camera.git","ssh_url":"git@github.com:WildflowerSchools/camera.git","clone_url":"https://github.com/WildflowerSchools/camera.git","svn_url":"https://github.com/WildflowerSchools/camera","homepage":null,"size":652,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6"},"html":{"href":"https://github.com/WildflowerSchools/camera/pull/6"},"issue":{"href":"https://api.github.com/repos/WildflowerSchools/camera/issues/6"},"comments":{"href":"https://api.github.com/repos/WildflowerSchools/camera/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/WildflowerSchools/camera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WildflowerSchools/camera/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/WildflowerSchools/camera/statuses/ac3ef91cdfb0ede77f72a56408b44a0a10b0df6f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Circuitsoft"}}