{"action":"opened","issue":{"url":"https://api.github.com/repos/TheLoombot/deep-strafe/issues/12","repository_url":"https://api.github.com/repos/TheLoombot/deep-strafe","labels_url":"https://api.github.com/repos/TheLoombot/deep-strafe/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/TheLoombot/deep-strafe/issues/12/comments","events_url":"https://api.github.com/repos/TheLoombot/deep-strafe/issues/12/events","html_url":"https://github.com/TheLoombot/deep-strafe/issues/12","id":347268880,"node_id":"MDU6SXNzdWUzNDcyNjg4ODA=","number":12,"title":"\"Who is listening\" component","user":{"login":"TheLoombot","id":4617505,"node_id":"MDQ6VXNlcjQ2MTc1MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/4617505?v=4","gravatar_id":"","url":"https://api.github.com/users/TheLoombot","html_url":"https://github.com/TheLoombot","followers_url":"https://api.github.com/users/TheLoombot/followers","following_url":"https://api.github.com/users/TheLoombot/following{/other_user}","gists_url":"https://api.github.com/users/TheLoombot/gists{/gist_id}","starred_url":"https://api.github.com/users/TheLoombot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheLoombot/subscriptions","organizations_url":"https://api.github.com/users/TheLoombot/orgs","repos_url":"https://api.github.com/users/TheLoombot/repos","events_url":"https://api.github.com/users/TheLoombot/events{/privacy}","received_events_url":"https://api.github.com/users/TheLoombot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-03T05:57:03Z","updated_at":"2018-08-03T05:57:03Z","closed_at":null,"author_association":"OWNER","body":"A new component that shows all the users who are listening to a station (\"the\" station) right now.\r\n\r\nOne idea to support this: On some/all requests made to Firebase, stored a \"last seen\" timestamp in Firebase. The client requests all the \"last seens\" in recency order and shows all the ones over some threshold (say one minute). \r\n\r\nThere's probably other approaches to this... for example if you didn't want to do unnecessary DB writes, you could do the module as \"now DJing\" instead, and record who added a track to the playlist and when, and use that to infer their recent activity level. "}}
{"actor":{"display_login":"TheLoombot"}}