{"action":"created","issue":{"url":"https://api.github.com/repos/MOARdV/AvionicsSystems/issues/18","repository_url":"https://api.github.com/repos/MOARdV/AvionicsSystems","labels_url":"https://api.github.com/repos/MOARdV/AvionicsSystems/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/MOARdV/AvionicsSystems/issues/18/comments","events_url":"https://api.github.com/repos/MOARdV/AvionicsSystems/issues/18/events","html_url":"https://github.com/MOARdV/AvionicsSystems/issues/18","id":173524314,"number":18,"title":"Making an Alarm in MAS","user":{"login":"DeputyLOL","id":12616126,"avatar_url":"https://avatars.githubusercontent.com/u/12616126?v=3","gravatar_id":"","url":"https://api.github.com/users/DeputyLOL","html_url":"https://github.com/DeputyLOL","followers_url":"https://api.github.com/users/DeputyLOL/followers","following_url":"https://api.github.com/users/DeputyLOL/following{/other_user}","gists_url":"https://api.github.com/users/DeputyLOL/gists{/gist_id}","starred_url":"https://api.github.com/users/DeputyLOL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeputyLOL/subscriptions","organizations_url":"https://api.github.com/users/DeputyLOL/orgs","repos_url":"https://api.github.com/users/DeputyLOL/repos","events_url":"https://api.github.com/users/DeputyLOL/events{/privacy}","received_events_url":"https://api.github.com/users/DeputyLOL/received_events","type":"User","site_admin":false},"labels":[{"id":401952392,"url":"https://api.github.com/repos/MOARdV/AvionicsSystems/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"MOARdV","id":6089493,"avatar_url":"https://avatars.githubusercontent.com/u/6089493?v=3","gravatar_id":"","url":"https://api.github.com/users/MOARdV","html_url":"https://github.com/MOARdV","followers_url":"https://api.github.com/users/MOARdV/followers","following_url":"https://api.github.com/users/MOARdV/following{/other_user}","gists_url":"https://api.github.com/users/MOARdV/gists{/gist_id}","starred_url":"https://api.github.com/users/MOARdV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MOARdV/subscriptions","organizations_url":"https://api.github.com/users/MOARdV/orgs","repos_url":"https://api.github.com/users/MOARdV/repos","events_url":"https://api.github.com/users/MOARdV/events{/privacy}","received_events_url":"https://api.github.com/users/MOARdV/received_events","type":"User","site_admin":false},"assignees":[{"login":"MOARdV","id":6089493,"avatar_url":"https://avatars.githubusercontent.com/u/6089493?v=3","gravatar_id":"","url":"https://api.github.com/users/MOARdV","html_url":"https://github.com/MOARdV","followers_url":"https://api.github.com/users/MOARdV/followers","following_url":"https://api.github.com/users/MOARdV/following{/other_user}","gists_url":"https://api.github.com/users/MOARdV/gists{/gist_id}","starred_url":"https://api.github.com/users/MOARdV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MOARdV/subscriptions","organizations_url":"https://api.github.com/users/MOARdV/orgs","repos_url":"https://api.github.com/users/MOARdV/repos","events_url":"https://api.github.com/users/MOARdV/events{/privacy}","received_events_url":"https://api.github.com/users/MOARdV/received_events","type":"User","site_admin":false}],"milestone":null,"comments":32,"created_at":"2016-08-26T19:19:09Z","updated_at":"2016-10-29T20:23:55Z","closed_at":null,"body":"Sorry about the constant silly questions, once I get the hang of it... there will probably still be loads of questions, just not as dumb.\r\nI need to make an alarm for my IVA. It doesn't need a light or anything, just a sound to play.\r\n\r\n... how do I do that?"},"comment":{"url":"https://api.github.com/repos/MOARdV/AvionicsSystems/issues/comments/257113873","html_url":"https://github.com/MOARdV/AvionicsSystems/issues/18#issuecomment-257113873","issue_url":"https://api.github.com/repos/MOARdV/AvionicsSystems/issues/18","id":257113873,"user":{"login":"DeputyLOL","id":12616126,"avatar_url":"https://avatars.githubusercontent.com/u/12616126?v=3","gravatar_id":"","url":"https://api.github.com/users/DeputyLOL","html_url":"https://github.com/DeputyLOL","followers_url":"https://api.github.com/users/DeputyLOL/followers","following_url":"https://api.github.com/users/DeputyLOL/following{/other_user}","gists_url":"https://api.github.com/users/DeputyLOL/gists{/gist_id}","starred_url":"https://api.github.com/users/DeputyLOL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeputyLOL/subscriptions","organizations_url":"https://api.github.com/users/DeputyLOL/orgs","repos_url":"https://api.github.com/users/DeputyLOL/repos","events_url":"https://api.github.com/users/DeputyLOL/events{/privacy}","received_events_url":"https://api.github.com/users/DeputyLOL/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T20:23:55Z","updated_at":"2016-10-29T20:23:55Z","body":"i think it makes sense, but most of my alarms have the same 'priority'.\r\nI did more brain storming and my brain cobbled together this:\r\nThere is a 'master alarm (master)' and a bunch of 'sub alarms (subs)'.\r\nThe master will turn on if any of the subs are true. At first it would make sense to put the state variable in master, but what if you have a cancelled sub and another sub becomes true?!?!?!?!\r\nInstead of having the state in the master you could have them in the states.\r\n\r\nAC_randomsubalarmthingy\r\n{\r\nif (criteria == 1)\r\n {\r\n return 1;\r\n while(criteria == 1 && snooze == 1)\r\n {\r\n  return 0;\r\n }\r\n}\r\nelse\r\n{\r\n return 0;\r\n}\r\n}\r\n\r\nWHOOO IM LEARNEN SHIT!!!!!!\r\n\r\nThe code above would be used in a sub. \r\nIt would return 1 if the criteria is met.\r\nIf the snooze button if pressed while the criteria is met then it will return 0 until the criteria is not met, then met again.\r\n"}}
{"actor":{"display_login":"DeputyLOL"}}