{"action":"created","issue":{"url":"https://api.github.com/repos/hamishcunningham/pi-tronics/issues/99","repository_url":"https://api.github.com/repos/hamishcunningham/pi-tronics","labels_url":"https://api.github.com/repos/hamishcunningham/pi-tronics/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/hamishcunningham/pi-tronics/issues/99/comments","events_url":"https://api.github.com/repos/hamishcunningham/pi-tronics/issues/99/events","html_url":"https://github.com/hamishcunningham/pi-tronics/issues/99","id":197345857,"number":99,"title":"MOPI as UPS","user":{"login":"ronisegoly","id":5304613,"avatar_url":"https://avatars.githubusercontent.com/u/5304613?v=3","gravatar_id":"","url":"https://api.github.com/users/ronisegoly","html_url":"https://github.com/ronisegoly","followers_url":"https://api.github.com/users/ronisegoly/followers","following_url":"https://api.github.com/users/ronisegoly/following{/other_user}","gists_url":"https://api.github.com/users/ronisegoly/gists{/gist_id}","starred_url":"https://api.github.com/users/ronisegoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronisegoly/subscriptions","organizations_url":"https://api.github.com/users/ronisegoly/orgs","repos_url":"https://api.github.com/users/ronisegoly/repos","events_url":"https://api.github.com/users/ronisegoly/events{/privacy}","received_events_url":"https://api.github.com/users/ronisegoly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-23T10:28:32Z","updated_at":"2016-12-23T18:41:26Z","closed_at":"2016-12-23T18:41:26Z","body":"Can I use it to MOPI to shutdown only when main power (USB) is down? How do you detect it.\r\n"},"comment":{"url":"https://api.github.com/repos/hamishcunningham/pi-tronics/issues/comments/269030098","html_url":"https://github.com/hamishcunningham/pi-tronics/issues/99#issuecomment-269030098","issue_url":"https://api.github.com/repos/hamishcunningham/pi-tronics/issues/99","id":269030098,"user":{"login":"hamishcunningham","id":4395156,"avatar_url":"https://avatars.githubusercontent.com/u/4395156?v=3","gravatar_id":"","url":"https://api.github.com/users/hamishcunningham","html_url":"https://github.com/hamishcunningham","followers_url":"https://api.github.com/users/hamishcunningham/followers","following_url":"https://api.github.com/users/hamishcunningham/following{/other_user}","gists_url":"https://api.github.com/users/hamishcunningham/gists{/gist_id}","starred_url":"https://api.github.com/users/hamishcunningham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamishcunningham/subscriptions","organizations_url":"https://api.github.com/users/hamishcunningham/orgs","repos_url":"https://api.github.com/users/hamishcunningham/repos","events_url":"https://api.github.com/users/hamishcunningham/events{/privacy}","received_events_url":"https://api.github.com/users/hamishcunningham/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T18:41:26Z","updated_at":"2016-12-23T18:41:26Z","body":"Hi Roni, Perhaps this answers your question? https://pi.gate.ac.uk/pages/mopi.html#section-4.3.\r\n\r\nI.e. run the mopicli script to see what the voltage on the different inputs is, and then shutdown as required.\r\n\r\nHTH, Hamish"}}
{"actor":{"display_login":"hamishcunningham"}}