{"id":19752824,"url":"https://github.com/spoorn/pimotiondetectornotifier","last_synced_at":"2026-05-04T18:35:43.379Z","repository":{"id":97148193,"uuid":"355788759","full_name":"spoorn/PiMotionDetectorNotifier","owner":"spoorn","description":"Some python scripts for email or text notification with a simple PIR sensor attached to Raspberry Pi on motion detection.","archived":false,"fork":false,"pushed_at":"2021-04-17T23:41:16.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:44:52.433Z","etag":null,"topics":["motion","motion-detection","pir","pir-sensor","python","raspberry-pi","raspberrypi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spoorn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-08T06:31:36.000Z","updated_at":"2021-04-17T23:49:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"0beb8fa6-5ec3-4267-9101-7308ae28c41b","html_url":"https://github.com/spoorn/PiMotionDetectorNotifier","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/spoorn/PiMotionDetectorNotifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spoorn%2FPiMotionDetectorNotifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spoorn%2FPiMotionDetectorNotifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spoorn%2FPiMotionDetectorNotifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spoorn%2FPiMotionDetectorNotifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spoorn","download_url":"https://codeload.github.com/spoorn/PiMotionDetectorNotifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spoorn%2FPiMotionDetectorNotifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32620033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["motion","motion-detection","pir","pir-sensor","python","raspberry-pi","raspberrypi"],"created_at":"2024-11-12T02:50:22.567Z","updated_at":"2026-05-04T18:35:43.361Z","avatar_url":"https://github.com/spoorn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiMotionDetectorNotifier\nSome python scripts for email or text notification with a simple PIR sensor attached to Raspberry Pi on motion detection.  \n\nQuick instructions on how to connect PIR sensors to a Raspberry Pi: https://projects.raspberrypi.org/en/projects/physical-computing/11.\n\nThis script currently assumes the OUT pin is connected to GPIO 23 (see https://www.raspberrypi.org/documentation/usage/gpio/).\n\n\u003cbr /\u003e\n\n## Instructions\n\n### Prerequisites\nDepends on [gpiozero](https://pypi.org/project/jproperties/) and [jproperties](https://pypi.org/project/jproperties/).  Both can be installed via `pip install gpiozero` and `pip install jproperties`\n\n### Installation\nClone repository: `git clone https://github.com/spoorn/PiMotionDetectorNotifier.git`\\\nOr\\\nDownload and extract zip under Releases: https://github.com/spoorn/PiMotionDetectorNotifier/releases\n\n### Configuration\nThis script uses an email to send messages/text other emails/phone numbers.  You will need to provide an email for the FROM user (Gmail has been tested and works).  Recommend to use a non-important email as credentials will be stored in a configuration file.  The FROM email is logged in via SMTP, so depending on the email server, you may need to allow access from \"Less Secure Apps\" (see https://support.google.com/accounts/answer/6010255 if you are using Gmail).\n\nThere is a configuration file in the project root `configs.properties`.  Here you can set the FROM email credentials, TO recipients, the message for notification, and others.\n\n### Running the script\n`python src/motion.py`\n\n\u003e ⚠️ Ctrl+C to terminate python scripts seems to have issues on some Raspberry Pis for python 2.x.  You can workaround this by using python3 (and installing the prerequisites via pip3).  If you ran the script with python 2.x, you can terminate the motion.py script with Ctrl+Z -\u003e `ps aux | grep motion.py` -\u003e `sudo kill -9 \u003cPID\u003e`\n\n\n### Output\nLogs related to the script's execution will be printed to stdout console, and `logs/output.log`\n\nThis script does not print many logs, but if motion detection is frequent, the log file can grow large over a long period of time.  TODO to compress log files or delete based on size.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoorn%2Fpimotiondetectornotifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspoorn%2Fpimotiondetectornotifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspoorn%2Fpimotiondetectornotifier/lists"}