{"action":"created","issue":{"url":"https://api.github.com/repos/opencardev/crankshaft/issues/107","repository_url":"https://api.github.com/repos/opencardev/crankshaft","labels_url":"https://api.github.com/repos/opencardev/crankshaft/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/opencardev/crankshaft/issues/107/comments","events_url":"https://api.github.com/repos/opencardev/crankshaft/issues/107/events","html_url":"https://github.com/opencardev/crankshaft/issues/107","id":324342721,"number":107,"title":"Delayed GPIO shutdown","user":{"login":"nygma2004","id":16757620,"avatar_url":"https://avatars2.githubusercontent.com/u/16757620?v=4","gravatar_id":"","url":"https://api.github.com/users/nygma2004","html_url":"https://github.com/nygma2004","followers_url":"https://api.github.com/users/nygma2004/followers","following_url":"https://api.github.com/users/nygma2004/following{/other_user}","gists_url":"https://api.github.com/users/nygma2004/gists{/gist_id}","starred_url":"https://api.github.com/users/nygma2004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nygma2004/subscriptions","organizations_url":"https://api.github.com/users/nygma2004/orgs","repos_url":"https://api.github.com/users/nygma2004/repos","events_url":"https://api.github.com/users/nygma2004/events{/privacy}","received_events_url":"https://api.github.com/users/nygma2004/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-18T09:48:49Z","updated_at":"2018-05-22T18:00:30Z","closed_at":null,"author_association":"NONE","body":"I have a car which does not have a switched 12V line (for the car stereo). The only switched output I have is the cigarette lighter. So I am using that operate a relay and use GPIO3 to shut down the PI.\r\nThe problem is that when I start the engine the cigarette lighter connection looses power for a few seconds (probably whilst the starter motor is running).\r\nSo I put my car to ignition, radio comes on, PI starts booting. When I start up the engine the radio mutes for a few second. If crankshaft is still booting up it will not monitor GPIO3, and nothing happens, but it happens later, it automatically shuts down the PI.\r\nI hope this is not a unique issue with my car.\r\n\r\nSo I was wondering if it would make sense to add a delay besides the dtoverlay=gpio-shutdown option. So it only start shutting down if the GPIO3 is LOW for more than 3-5 seconds."},"comment":{"url":"https://api.github.com/repos/opencardev/crankshaft/issues/comments/391084926","html_url":"https://github.com/opencardev/crankshaft/issues/107#issuecomment-391084926","issue_url":"https://api.github.com/repos/opencardev/crankshaft/issues/107","id":391084926,"user":{"login":"nygma2004","id":16757620,"avatar_url":"https://avatars2.githubusercontent.com/u/16757620?v=4","gravatar_id":"","url":"https://api.github.com/users/nygma2004","html_url":"https://github.com/nygma2004","followers_url":"https://api.github.com/users/nygma2004/followers","following_url":"https://api.github.com/users/nygma2004/following{/other_user}","gists_url":"https://api.github.com/users/nygma2004/gists{/gist_id}","starred_url":"https://api.github.com/users/nygma2004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nygma2004/subscriptions","organizations_url":"https://api.github.com/users/nygma2004/orgs","repos_url":"https://api.github.com/users/nygma2004/repos","events_url":"https://api.github.com/users/nygma2004/events{/privacy}","received_events_url":"https://api.github.com/users/nygma2004/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T18:00:30Z","updated_at":"2018-05-22T18:00:30Z","author_association":"NONE","body":"@Maju3 let me just ask this: you are using GPIO27 because that is something you have used in the past, right? Since I have wired GPIO3 for the built in shutdown script, I can use that as well. I just need to re-wire the relay as the build in script used active HIGH. That is all, right?"}}
{"actor":{"display_login":"nygma2004"}}