{"id":15197115,"url":"https://github.com/sensoranalyticsaus/pir_detector","last_synced_at":"2026-02-16T04:04:44.857Z","repository":{"id":237812592,"uuid":"795281065","full_name":"SensorAnalyticsAus/PIR_Detector","owner":"SensorAnalyticsAus","description":"PIR motion detector","archived":false,"fork":false,"pushed_at":"2024-08-20T07:40:06.000Z","size":572,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T18:22:08.723Z","etag":null,"topics":["raspberrypi"],"latest_commit_sha":null,"homepage":"https://www.sensoranalytics.com.au","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SensorAnalyticsAus.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":"2024-05-03T00:13:02.000Z","updated_at":"2024-08-20T07:40:09.000Z","dependencies_parsed_at":"2024-05-08T12:34:30.278Z","dependency_job_id":null,"html_url":"https://github.com/SensorAnalyticsAus/PIR_Detector","commit_stats":null,"previous_names":["sensoranalyticsaus/pir_detector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SensorAnalyticsAus/PIR_Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2FPIR_Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2FPIR_Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2FPIR_Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2FPIR_Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SensorAnalyticsAus","download_url":"https://codeload.github.com/SensorAnalyticsAus/PIR_Detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SensorAnalyticsAus%2FPIR_Detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29499815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T03:57:51.541Z","status":"ssl_error","status_checked_at":"2026-02-16T03:55:59.854Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["raspberrypi"],"created_at":"2024-09-28T00:42:45.852Z","updated_at":"2026-02-16T04:04:44.836Z","avatar_url":"https://github.com/SensorAnalyticsAus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\nPython code for HC-SR501 PIR Motion Detector\n\n## Items\n* HC SR501 PIR board\n* RaspberryPi\n* 3 x Dupont jumpers F-F\n\n## Board Settings\nTo start with, both sensitivity and time delay potentiometers should be kept to the minimum i.e. both turned CCW to 0700 hour position. Trigger jumper should be set to `H` position.\n\n## Wiring Diagram\n[https://www.sensoranalytics.com.au/image/shared/WiringDiag.png](https://github.com/SensorAnalyticsAus/PIR_Detector/blob/main/WiringDiag.png)\n\n## Install\n* Copy `ctrl-pir`, `driver-pir.py`, and `pir.py` files to `~/src/pir`. Set `LOGFILE` to actual path in `pir.py`.\n\n## Run\n`cd ~/src/pir` \u003cbr\u003e\n```./ctrl-pir start```\n\n## View Alerts\n`screen -r pir`\n\n## Issues\nInstall `screen`. Install missing python packages used by `pir.py`.\n\n## Good Ideas\nAdding `ctrl-pir start` to start on boot to crontab. For extra cautious, `ctrl-pir restart` once a day at some off peak hour.\n\n## Phone Alerts and Notifications\nRegister with [pushover.net](https://pushover.net). Then add your app token and user key in `pir.py` and set `Mute = 1`. Now phone will sound and display notifications.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensoranalyticsaus%2Fpir_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensoranalyticsaus%2Fpir_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensoranalyticsaus%2Fpir_detector/lists"}