{"id":14963380,"url":"https://github.com/charkster/motion_detect_mcu_wifi_email","last_synced_at":"2026-02-13T06:41:58.181Z","repository":{"id":227378899,"uuid":"771273302","full_name":"charkster/motion_detect_mcu_wifi_email","owner":"charkster","description":"Micropython script for emailing notification of PIR motion detect.","archived":false,"fork":false,"pushed_at":"2024-03-14T01:49:13.000Z","size":484,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-17T21:47:59.177Z","etag":null,"topics":["esp32c3","micropython","pico-w","pir-motion-detector","pir-motion-sensor"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charkster.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-03-13T01:53:15.000Z","updated_at":"2024-04-06T23:28:10.000Z","dependencies_parsed_at":"2024-03-13T03:23:43.891Z","dependency_job_id":"1b0b7e69-3962-4311-98f3-daa5e986f9b8","html_url":"https://github.com/charkster/motion_detect_mcu_wifi_email","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"86cc835b0bdd6b138ccffd5cb1c4a6839fa1ef7b"},"previous_names":["charkster/motion_detect_mcu_wifi_email"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charkster/motion_detect_mcu_wifi_email","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charkster%2Fmotion_detect_mcu_wifi_email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charkster%2Fmotion_detect_mcu_wifi_email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charkster%2Fmotion_detect_mcu_wifi_email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charkster%2Fmotion_detect_mcu_wifi_email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charkster","download_url":"https://codeload.github.com/charkster/motion_detect_mcu_wifi_email/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charkster%2Fmotion_detect_mcu_wifi_email/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29398144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["esp32c3","micropython","pico-w","pir-motion-detector","pir-motion-sensor"],"created_at":"2024-09-24T13:31:25.642Z","updated_at":"2026-02-13T06:41:58.157Z","avatar_url":"https://github.com/charkster.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# motion_detect_mcu_wifi_email\nMicropython script for emailing notification of PIR motion detect.\n\nWorks great on $5 [Seeed Xiao ESP32C3](https://wiki.seeedstudio.com/XIAO_ESP32C3_Getting_Started/), and ok on $6 [Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) (it's slower because wifi is an external module).\n\n[umail.py](https://github.com/shawwwn/uMail/tree/master) needs to be saved to the MCU board (as it is imported).\n\nThe sender gmail account needs to be setup for [App Password Sign-in](https://support.google.com/accounts/answer/185833?hl=en)\n\nI used the $2 [Adafruit Mini Basic PIR Sensor](https://www.adafruit.com/product/4667)\n\nI rename the script \"main.py\" when I save it to the MCU (boot.py runs first, then main.py).\n\nThe PIR sensor has GND connections for pins 1,2 and 3.3V for pin 3. The detect signal (alarm) is pin 4 and is active-high.\n\nEmail message has timestamp from wifi NTP time.\n\n**Sample email notification:**\n\n![picture](https://github.com/charkster/motion_detect_mcu_wifi_email/blob/main/motion_notification_email.png)\n\n\n![picture](https://github.com/charkster/motion_detect_mcu_wifi_email/blob/main/mcu_boards_motion_detect_wifi_email_sm.JPG)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharkster%2Fmotion_detect_mcu_wifi_email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharkster%2Fmotion_detect_mcu_wifi_email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharkster%2Fmotion_detect_mcu_wifi_email/lists"}