{"action":"created","issue":{"url":"https://api.github.com/repos/sqren/fb-sleep-stats/issues/26","repository_url":"https://api.github.com/repos/sqren/fb-sleep-stats","labels_url":"https://api.github.com/repos/sqren/fb-sleep-stats/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/sqren/fb-sleep-stats/issues/26/comments","events_url":"https://api.github.com/repos/sqren/fb-sleep-stats/issues/26/events","html_url":"https://github.com/sqren/fb-sleep-stats/issues/26","id":135620296,"number":26,"title":"Add number of logs per day next to duration","user":{"login":"chhabs","id":17396660,"avatar_url":"https://avatars.githubusercontent.com/u/17396660?v=3","gravatar_id":"","url":"https://api.github.com/users/chhabs","html_url":"https://github.com/chhabs","followers_url":"https://api.github.com/users/chhabs/followers","following_url":"https://api.github.com/users/chhabs/following{/other_user}","gists_url":"https://api.github.com/users/chhabs/gists{/gist_id}","starred_url":"https://api.github.com/users/chhabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chhabs/subscriptions","organizations_url":"https://api.github.com/users/chhabs/orgs","repos_url":"https://api.github.com/users/chhabs/repos","events_url":"https://api.github.com/users/chhabs/events{/privacy}","received_events_url":"https://api.github.com/users/chhabs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sqren/fb-sleep-stats/labels/feature%20request","name":"feature request","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T03:32:40Z","updated_at":"2016-06-13T16:23:00Z","closed_at":null,"body":"Does anyone would know how to add the number of logs per day in the table generated on the website?"},"comment":{"url":"https://api.github.com/repos/sqren/fb-sleep-stats/issues/comments/225632748","html_url":"https://github.com/sqren/fb-sleep-stats/issues/26#issuecomment-225632748","issue_url":"https://api.github.com/repos/sqren/fb-sleep-stats/issues/26","id":225632748,"user":{"login":"AmineIzumi","id":15179425,"avatar_url":"https://avatars.githubusercontent.com/u/15179425?v=3","gravatar_id":"","url":"https://api.github.com/users/AmineIzumi","html_url":"https://github.com/AmineIzumi","followers_url":"https://api.github.com/users/AmineIzumi/followers","following_url":"https://api.github.com/users/AmineIzumi/following{/other_user}","gists_url":"https://api.github.com/users/AmineIzumi/gists{/gist_id}","starred_url":"https://api.github.com/users/AmineIzumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmineIzumi/subscriptions","organizations_url":"https://api.github.com/users/AmineIzumi/orgs","repos_url":"https://api.github.com/users/AmineIzumi/repos","events_url":"https://api.github.com/users/AmineIzumi/events{/privacy}","received_events_url":"https://api.github.com/users/AmineIzumi/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T16:23:00Z","updated_at":"2016-06-13T16:23:00Z","body":"In the table ?\r\nBasically it's *Number of seconds by day* divided by *Your polling interval* \r\nExample : let's say we take a log every 3600seconds (=every hour). As you know there are 24 h / days, 60 minutes / hour and 60 seconds / hour.\r\nso :\r\n24 * 60 * 60 / 3600 = 24 logs /day.\r\n\r\nThen for a log every 600s,\r\n24*60*60 / 600 = 144 logs / days.\r\n\r\nNow we need to figure out a way to fetch the polling value from development.json, calculate the number of logs / days with Javascript on the website, and show it somewhere in the chart.\r\nI'll look at this when I'll have the time."}}
{"actor":{"display_login":"AmineIzumi"}}