{"action":"created","issue":{"url":"https://api.github.com/repos/ccrisan/motioneyeos/issues/842","repository_url":"https://api.github.com/repos/ccrisan/motioneyeos","labels_url":"https://api.github.com/repos/ccrisan/motioneyeos/issues/842/labels{/name}","comments_url":"https://api.github.com/repos/ccrisan/motioneyeos/issues/842/comments","events_url":"https://api.github.com/repos/ccrisan/motioneyeos/issues/842/events","html_url":"https://github.com/ccrisan/motioneyeos/issues/842","id":215854553,"node_id":"MDU6SXNzdWUyMTU4NTQ1NTM=","number":842,"title":"Request: external trigger recording","user":{"login":"iceboatLen","id":25530045,"node_id":"MDQ6VXNlcjI1NTMwMDQ1","avatar_url":"https://avatars2.githubusercontent.com/u/25530045?v=4","gravatar_id":"","url":"https://api.github.com/users/iceboatLen","html_url":"https://github.com/iceboatLen","followers_url":"https://api.github.com/users/iceboatLen/followers","following_url":"https://api.github.com/users/iceboatLen/following{/other_user}","gists_url":"https://api.github.com/users/iceboatLen/gists{/gist_id}","starred_url":"https://api.github.com/users/iceboatLen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceboatLen/subscriptions","organizations_url":"https://api.github.com/users/iceboatLen/orgs","repos_url":"https://api.github.com/users/iceboatLen/repos","events_url":"https://api.github.com/users/iceboatLen/events{/privacy}","received_events_url":"https://api.github.com/users/iceboatLen/received_events","type":"User","site_admin":false},"labels":[{"id":550725796,"node_id":"MDU6TGFiZWw1NTA3MjU3OTY=","url":"https://api.github.com/repos/ccrisan/motioneyeos/labels/feature%20request","name":"feature request","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2017-03-21T19:37:37Z","updated_at":"2018-08-22T03:09:57Z","closed_at":null,"author_association":"NONE","body":"Hello, \r\nWould it be possible to add a feature where a camera will record when prompted by an external trigger on a GPIO of the Pi, such as a PIR sensor.\r\n\r\nThanks Ben."},"comment":{"url":"https://api.github.com/repos/ccrisan/motioneyeos/issues/comments/414894317","html_url":"https://github.com/ccrisan/motioneyeos/issues/842#issuecomment-414894317","issue_url":"https://api.github.com/repos/ccrisan/motioneyeos/issues/842","id":414894317,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDg5NDMxNw==","user":{"login":"jasaw","id":721280,"node_id":"MDQ6VXNlcjcyMTI4MA==","avatar_url":"https://avatars2.githubusercontent.com/u/721280?v=4","gravatar_id":"","url":"https://api.github.com/users/jasaw","html_url":"https://github.com/jasaw","followers_url":"https://api.github.com/users/jasaw/followers","following_url":"https://api.github.com/users/jasaw/following{/other_user}","gists_url":"https://api.github.com/users/jasaw/gists{/gist_id}","starred_url":"https://api.github.com/users/jasaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasaw/subscriptions","organizations_url":"https://api.github.com/users/jasaw/orgs","repos_url":"https://api.github.com/users/jasaw/repos","events_url":"https://api.github.com/users/jasaw/events{/privacy}","received_events_url":"https://api.github.com/users/jasaw/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T03:09:57Z","updated_at":"2018-08-22T03:09:57Z","author_association":"COLLABORATOR","body":"@stefi01 \r\nTo enable execute permission, run `chmod +x pir_reader`.\r\nDid you change the background flag to True in the code?\r\nYou should be able just to this:\r\n\r\n```\r\n#\r\n# By default this script does nothing.\r\n\r\n# Print the IP address\r\n_IP=$(hostname -I) || true\r\nif [ \"$_IP\" ]; then\r\n  printf \"My IP address is %s\\n\" \"$_IP\"\r\nfi\r\n\r\n/home/pi/pir_reader\r\nexit 0\r\n```"}}
{"actor":{"display_login":"jasaw"}}