{"action":"opened","issue":{"url":"https://api.github.com/repos/scout-app/scout-app.github.io/issues/4","repository_url":"https://api.github.com/repos/scout-app/scout-app.github.io","labels_url":"https://api.github.com/repos/scout-app/scout-app.github.io/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/scout-app/scout-app.github.io/issues/4/comments","events_url":"https://api.github.com/repos/scout-app/scout-app.github.io/issues/4/events","html_url":"https://github.com/scout-app/scout-app.github.io/issues/4","id":187594009,"number":4,"title":"Download Dashboard - Hourly stats","user":{"login":"TheJaredWilcurt","id":4629794,"avatar_url":"https://avatars.githubusercontent.com/u/4629794?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJaredWilcurt","html_url":"https://github.com/TheJaredWilcurt","followers_url":"https://api.github.com/users/TheJaredWilcurt/followers","following_url":"https://api.github.com/users/TheJaredWilcurt/following{/other_user}","gists_url":"https://api.github.com/users/TheJaredWilcurt/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJaredWilcurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJaredWilcurt/subscriptions","organizations_url":"https://api.github.com/users/TheJaredWilcurt/orgs","repos_url":"https://api.github.com/users/TheJaredWilcurt/repos","events_url":"https://api.github.com/users/TheJaredWilcurt/events{/privacy}","received_events_url":"https://api.github.com/users/TheJaredWilcurt/received_events","type":"User","site_admin":false},"labels":[{"id":425951499,"url":"https://api.github.com/repos/scout-app/scout-app.github.io/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-06T22:20:31Z","updated_at":"2016-11-06T22:20:31Z","closed_at":null,"body":"This feature would go on the alternative downloads dashboard:\r\n\r\n* http://scout-app.io/dashboard/\r\n\r\n1. Set up AWS Lambdas or something so it will run once an hour\r\n2. Have it get the total number of downloads from GitHub's API\r\n3. Store that data somewhere that can be publicly retrieved with a timestamp and the difference between the last count and that one. Something like this:\r\n    ```\r\n    [\r\n        {\r\n            \"timeStamp\": 1478451600000,\r\n            \"time\": \"Sun Nov 06 2016 16:00:00 GMT-0500 (Eastern Standard Time)\",\r\n            \"total\": 7519,\r\n            \"hour\": 0\r\n        },\r\n        {\r\n            \"timeStamp\": 1478455200000,\r\n            \"time\": \"Sun Nov 06 2016 17:00:00 GMT-0500 (Eastern Standard Time)\",\r\n            \"total\": 7608,\r\n            \"hour\": 89\r\n        },\r\n        {\r\n            \"timeStamp\": 1478458800000,\r\n            \"time\": \"Sun Nov 06 2016 18:00:00 GMT-0500 (Eastern Standard Time)\",\r\n            \"total\": 7844,\r\n            \"hour\": 236\r\n        }\r\n    ]\r\n    ```\r\n4. Create a UI to consume that public route and display a line graph.\r\n5. Calculate the average downloads a day or per hour and display them on the page.\r\n\r\nThese tasks can be split up and done by different people. It is just a general outline.\r\n\r\n**TLDR**: Get the amount of downloads Scout-App has had from GitHub each hour and store them somewhere. Get that stored data and put it in a UI on the Downloads Dashboard."}}
{"actor":{"display_login":"TheJaredWilcurt"}}