{"id":26571940,"url":"https://github.com/amirbeek/pihomesecuritysystem","last_synced_at":"2026-03-16T16:03:03.604Z","repository":{"id":283163628,"uuid":"950888780","full_name":"Amirbeek/PiHomeSecuritySystem","owner":"Amirbeek","description":"Advanced Raspberry Pi-based security system featuring real-time motion detection, live video streaming, and immediate alerts through email. Equipped with a camera module, this system provides robust home surveillance accessible via a web interface.","archived":false,"fork":false,"pushed_at":"2025-04-09T14:27:04.000Z","size":44491,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T23:05:41.290Z","etag":null,"topics":["flask","gpio","linux","pi","raspberry-pi"],"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/Amirbeek.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,"zenodo":null}},"created_at":"2025-03-18T20:49:02.000Z","updated_at":"2025-04-11T13:35:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4afb3d9-46bc-4cda-b9a0-820513831018","html_url":"https://github.com/Amirbeek/PiHomeSecuritySystem","commit_stats":null,"previous_names":["amirbeek/pihomesecuritysystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Amirbeek/PiHomeSecuritySystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirbeek%2FPiHomeSecuritySystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirbeek%2FPiHomeSecuritySystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirbeek%2FPiHomeSecuritySystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirbeek%2FPiHomeSecuritySystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amirbeek","download_url":"https://codeload.github.com/Amirbeek/PiHomeSecuritySystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirbeek%2FPiHomeSecuritySystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278639771,"owners_count":26020297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["flask","gpio","linux","pi","raspberry-pi"],"created_at":"2025-03-22T23:17:45.591Z","updated_at":"2025-10-06T16:18:52.197Z","avatar_url":"https://github.com/Amirbeek.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiHomeSecuritySystem\n\n## Overview\nPiHomeSecuritySystem is an advanced Raspberry Pi-based security system that leverages real-time motion detection, live video streaming, and immediate email alerts to provide robust home surveillance. This system is accessible via a web interface, allowing users to monitor their home remotely.And Machine Learning implemented, the model is Human detection from taken image\n\n## Features\n- **Real-Time Motion Detection**: Uses the HC-SR505 motion sensor to detect movement.\n- **Email Alerts**: Sends an email with a photo attachment when motion is detected.\n- **Live Video Streaming**: Streams live video which can be accessed through the web interface.\n- **Local Photo Storage**: Saves photos triggered by motion events locally for later review.\n\n## Hardware Components\n- Raspberry Pi 5\n- Camera Module (MF130)\n- HC-SR505 Motion Sensor\n- LEDs for visual indication of system status\n\n## Software Components\n- Python for backend logic\n- Flask for the web interface\n- `dotenv` for environment variable management\n- `gpiozero` and `picamera` for interfacing with the hardware\n- `yagmail` for sending emails\n\n## Human Detection from Image\n[Kaggle Dataset URL](https://www.kaggle.com/datasets/constantinwerner/human-detection-dataset)\n\n## Setup\n1. **Install Dependencies**:\n ```bash\n   pip install Flask gpiozero picamera yagmail python-dotenv\n```\n2. **Clone the Repository**:\n```\n   git clone https://github.com/Amirbeek/PiHomeSecuritySystem.git\n```\n\n3. **Set Environment Variables: Create a .env file in your project root with the following keys**:\n```\n   MAIN_EMAIL=your-email@example.com\n   RECEIVER_EMAIL=receiver-email@example.com\n   MAIL_PASSWORD=your-email-password\n```\n\n## Running the Project\nNavigate to the project directory and run:\n```\n   python server.js\n```\n\n## Project Documentation Images\n- ![Early stage setup on the breadboard](https://raw.githubusercontent.com/Amirbeek/PiHomeSecuritySystem/main/progress_images/1.jpg)\n- ![Detailed connections of sensors and camera](https://raw.githubusercontent.com/Amirbeek/PiHomeSecuritySystem/main/progress_images/2.jpg)\n- ![Integration of the Raspberry Pi with sensors and camera](https://raw.githubusercontent.com/Amirbeek/PiHomeSecuritySystem/main/progress_images/3.png)\n- ![The HC-SR505 motion sensor in action](https://raw.githubusercontent.com/Amirbeek/PiHomeSecuritySystem/main/progress_images/motion.png)\n\n\n## Improvements\n- **Enhance Live Streaming**: Implement adaptive bitrate streaming for better performance under varying network conditions.\n- **Web Interface Enhancements**: Improve the UI/UX design to make it more user-friendly and visually appealing.\n- **Expand Notification Options**: Add support for SMS notifications or integration with mobile apps.\n\n## Contributing\nContributors are welcome to improve the PiHomeSecuritySystem. Here are some areas where you can help:\n- Implementing new features such as the suggested improvements.\n- Bug fixes and performance enhancements.\n- Documentation and examples.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.\n\n## Acknowledgments\nBig thanks to everyone who has contributed to this project so far!\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirbeek%2Fpihomesecuritysystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirbeek%2Fpihomesecuritysystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirbeek%2Fpihomesecuritysystem/lists"}