{"action":"created","issue":{"url":"https://api.github.com/repos/arim215/nhl_goal_light/issues/22","repository_url":"https://api.github.com/repos/arim215/nhl_goal_light","labels_url":"https://api.github.com/repos/arim215/nhl_goal_light/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/arim215/nhl_goal_light/issues/22/comments","events_url":"https://api.github.com/repos/arim215/nhl_goal_light/issues/22/events","html_url":"https://github.com/arim215/nhl_goal_light/issues/22","id":206613571,"number":22,"title":"Scoring total and other ideas","user":{"login":"mg3point","id":25492128,"avatar_url":"https://avatars.githubusercontent.com/u/25492128?v=3","gravatar_id":"","url":"https://api.github.com/users/mg3point","html_url":"https://github.com/mg3point","followers_url":"https://api.github.com/users/mg3point/followers","following_url":"https://api.github.com/users/mg3point/following{/other_user}","gists_url":"https://api.github.com/users/mg3point/gists{/gist_id}","starred_url":"https://api.github.com/users/mg3point/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mg3point/subscriptions","organizations_url":"https://api.github.com/users/mg3point/orgs","repos_url":"https://api.github.com/users/mg3point/repos","events_url":"https://api.github.com/users/mg3point/events{/privacy}","received_events_url":"https://api.github.com/users/mg3point/received_events","type":"User","site_admin":false},"labels":[{"id":343848682,"url":"https://api.github.com/repos/arim215/nhl_goal_light/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-02-09T19:58:26Z","updated_at":"2017-02-15T20:56:29Z","closed_at":"2017-02-15T20:56:29Z","body":"First of all thanks for this, I've been looking for a trigger for my Ambilight goal lights for awhile now. Favorite team affiliations aside, i had a few thoughts on what you have here.\r\n\r\nIn looking at your code for the score it looks as though you set the score back to zero if the new_score is less than old_score. I'm curious how this functions on disallowed goals? I question because I am a Bluejackets fan and the third goal of home games is the chili goal (everyone gets free chili with ticket stub the next day). Nothing crazy but the goal horn/song is different for it. So theoretically i would listen for score and tally it up and play one goal song for each unless it is the 3rd goal in which it would get a special case. Could you perhaps have some form of time based reset by way of after first score update trigger a score reset 8 hours later? (long enough to not obstruct current game, short enough to be reset before a back to back game.)\r\n\r\nAnother piece i am thinking about adding to what you have is listening for the powerplay. I see it is a var in the api. Depending on when it gets set to true, it could be fun to have a separate audio clip to play. (in arena announcer \"Jackets....Ooooonnnnnnn theeeeee POWERPlaaaaaaaaay\")\r\n\r\nLastly a piece to possibly implement would be a period beginning soon warning. Intermissions are 18 minutes. You could listen for the end of the period and call an audio que to happen in 15 minutes to give you a 3 minute warning.\r\n\r\nI'm not a heavy backend developer. I am an interaction designer by day, but i love to tinker and have hacked my way this far with my goal light setup. This is an older video and it now runs on a separate pi but you can see my \"faked trigger\" light effect. (...if you were curious...) https://youtu.be/r_088QRyY-s?t=84\r\n\r\nThanks again and great work!\r\n\r\nMike"},"comment":{"url":"https://api.github.com/repos/arim215/nhl_goal_light/issues/comments/280136105","html_url":"https://github.com/arim215/nhl_goal_light/issues/22#issuecomment-280136105","issue_url":"https://api.github.com/repos/arim215/nhl_goal_light/issues/22","id":280136105,"user":{"login":"arim215","id":17930934,"avatar_url":"https://avatars.githubusercontent.com/u/17930934?v=3","gravatar_id":"","url":"https://api.github.com/users/arim215","html_url":"https://github.com/arim215","followers_url":"https://api.github.com/users/arim215/followers","following_url":"https://api.github.com/users/arim215/following{/other_user}","gists_url":"https://api.github.com/users/arim215/gists{/gist_id}","starred_url":"https://api.github.com/users/arim215/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arim215/subscriptions","organizations_url":"https://api.github.com/users/arim215/orgs","repos_url":"https://api.github.com/users/arim215/repos","events_url":"https://api.github.com/users/arim215/events{/privacy}","received_events_url":"https://api.github.com/users/arim215/received_events","type":"User","site_admin":false},"created_at":"2017-02-15T20:56:29Z","updated_at":"2017-02-15T20:56:29Z","body":"I looked in to this and there is no powerplay indication on \"statsapi.web.nhl.com/api/v1/schedule?teamId=#\". So I can't check for powerplay... for now I can't put more energy into this to find a more elaborate solution.  Same goes for the intermission."}}
{"actor":{"display_login":"arim215"}}