{"id":48549945,"url":"https://github.com/natasakasikovic/smart-home","last_synced_at":"2026-04-08T08:03:26.961Z","repository":{"id":340844975,"uuid":"1118393753","full_name":"natasakasikovic/smart-home","owner":"natasakasikovic","description":"Smart Home IoT project developed for the Internet of Things course. The system integrates sensors, actuators, and a web-based interface to monitor and control home devices in real time.","archived":false,"fork":false,"pushed_at":"2026-02-26T21:59:41.000Z","size":235,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-27T01:31:49.620Z","etag":null,"topics":["actuators","influxdb","internet-of-things","mqtt","raspberry-pi","sensors"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/natasakasikovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T17:27:36.000Z","updated_at":"2026-02-26T21:59:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/natasakasikovic/smart-home","commit_stats":null,"previous_names":["natasakasikovic/smart-home"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/natasakasikovic/smart-home","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natasakasikovic%2Fsmart-home","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natasakasikovic%2Fsmart-home/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natasakasikovic%2Fsmart-home/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natasakasikovic%2Fsmart-home/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natasakasikovic","download_url":"https://codeload.github.com/natasakasikovic/smart-home/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natasakasikovic%2Fsmart-home/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31545909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"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":["actuators","influxdb","internet-of-things","mqtt","raspberry-pi","sensors"],"created_at":"2026-04-08T08:03:04.387Z","updated_at":"2026-04-08T08:03:26.946Z","avatar_url":"https://github.com/natasakasikovic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Home Automation \u0026 Security System 🏠\n\n## Overview\n\nThis project implements a complete smart home automation and security system integrating multiple sensors, actuators, and a web application.\nThe smart home system comprises three Raspberry Pi units, each interfaced with different sensors and actuators.\n\n## System Architecture \u0026 Technology Stack\n\nThe smart home system consists of three Raspberry Pi devices, each responsible for different sensors and actuators.\n\nCommunication \u0026 Data Flow:\n\n- Raspberry Pi devices send sensor and actuator data via MQTT protocol to a Flask-based server for storage in InfluxDB and visualization in Grafana.\n- Web application interfaces allow users to monitor sensor readings, control actuators, and view historical data.\n- Each sensor and actuator can operate in **simulated** or **real** mode, which can be configured in the `settings.json` file.\n\nTechnology Stack:\n\n- Programming \u0026 Server: Python, Flask\n- Communication: MQTT\n- Database: InfluxDB\n- Visualization: Grafana\n- Web Application: React\n\nHardware: Raspberry Pi, GPIO sensors and actuators\n\n## Features\n\n### Security \u0026 Motion Detection\n\n- [x] When DPIR1 detects motion, DL1 is turned on for 10 seconds.\n- [x] When DPIR1 detects motion, determine whether a person is entering or exiting the building based on the distance measured by DUS1 in the previous few seconds.\n- [x] Same logic for DPIR2 and DUS2 as written above\n- [x] Maintain and update the real-time count of occupants inside the building.\n- [x] If a signal from DS1 or DS2 is detected for more than 5 seconds, activate the ALARM until the DS state changes. This simulates an unlocked door.\n- [x] Enable activation of the security alarm via the DMS component.\n- [x] When a 4-digit PIN code is entered, the system activates after 10 seconds.\n- [x] If the system is active, trigger the ALARM when a signal is detected on DS1 or DS2, unless the correct PIN is entered via the DMS component.\n- [x] Entering the PIN deactivates the ALARM and disarms the system.\n- [x] If the number of people inside the building (as per point 2) is zero, trigger the ALARM when motion is detected by any of the RPIR1-3 sensors.\n- [x] If the GSG (attached to the Slava icon) detects significant movement, trigger the ALARM.\n\n### Environmental Monitoring\n\n- [x] Display the temperature and humidity from DHT1-3 on the LCD, cycling through the readings from each DHT sensor every few seconds.\n\n### Kitchen Timer\n\n- [x] Enable kitchen timer settings.\n- [x] Allow the timer duration to be set via the web application. Display the time on the 4-digit 7-segment (4SD) display.\n- [x] Allow pressing the button (BTN) to add N seconds to the timer. N is the number of seconds configured via the web application.\n- [x] When the timer expires, the 4SD display should blink showing 00:00. Pressing the button (BTN) stops the blinking.\n\n### Lighting Control\n\n- [x] Enable turning the BRGB light on/off and controlling its colors via the remote control and IR sensor, as well as through the web application.\n\n### Camera\n\n- [x] Display the webcam video on the web application.\n\n## How to run?\n\n1. Clone the repository\n   - git clone `https://github.com/natasakasikovic/smart-home.git`\n   - cd smart-home\n2. Start Docker services (terminal docker)\n   - cd docker\n   - docker compose up -d\n3. Run Raspberry Pi simulators (in separate terminals)\n   - python main.py PI1\n   - python main.py PI2\n   - python main.py PI3\n4. Start the server (terminal server)\n   - python -m server.server\n5. Start the frontend (terminal frontend)\n   - cd frontend\n   - npm install\n   - npm run dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatasakasikovic%2Fsmart-home","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatasakasikovic%2Fsmart-home","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatasakasikovic%2Fsmart-home/lists"}