{"id":15172769,"url":"https://github.com/kwee-veen/snacktrap","last_synced_at":"2026-01-25T18:31:53.955Z","repository":{"id":208862261,"uuid":"722663119","full_name":"Kwee-Veen/SnackTrap","owner":"Kwee-Veen","description":"A portable RaspberryPi-based motion detector and alarm, designed for cupboards or drawers. Python-based Ubuntu script, integrating the Blynk IoT platform for mobile monitoring \u0026 interactivity.","archived":false,"fork":false,"pushed_at":"2024-09-22T18:50:17.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T09:42:27.706Z","etag":null,"topics":["blynk-iot-platform","firebase-database","internet-of-things","python3","raspberry-pi-4","ubuntu"],"latest_commit_sha":null,"homepage":"https://snacktrap.glitch.me/","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/Kwee-Veen.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}},"created_at":"2023-11-23T16:31:43.000Z","updated_at":"2024-09-22T18:26:00.000Z","dependencies_parsed_at":"2024-01-15T21:25:05.201Z","dependency_job_id":"a4312c8b-7719-416c-979e-0db91ab653e6","html_url":"https://github.com/Kwee-Veen/SnackTrap","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"c7d928d8d780883cedf6f4e8f3e6fe3aa9be5324"},"previous_names":["kwee-veen/snacktrap"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kwee-Veen%2FSnackTrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kwee-Veen%2FSnackTrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kwee-Veen%2FSnackTrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kwee-Veen%2FSnackTrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kwee-Veen","download_url":"https://codeload.github.com/Kwee-Veen/SnackTrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239686078,"owners_count":19680448,"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","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":["blynk-iot-platform","firebase-database","internet-of-things","python3","raspberry-pi-4","ubuntu"],"created_at":"2024-09-27T10:04:18.340Z","updated_at":"2025-12-16T10:30:21.351Z","avatar_url":"https://github.com/Kwee-Veen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SnackTrap is an IoT solution aimed at catching housemates who are trying to steal food from your cupboards.\n\n![SnackTrap2](https://github.com/user-attachments/assets/2d1bff5f-3b1d-4bf6-b699-4fdbcb2fed14)\n\nIt incorporates a Raspberry Pi 4 installed with a SenseHAT's light sensor and LED array.\nThe device employs the Blynk IoT platform to interface with sensor data and record a history of device events.\nAlarm data is also sent to the Firebase cloud database in JSON format\n\nThe Blynk smartphone app can be used to monitor sensor data, and monitor or change the alarm or armed states.\nThe device can also be armed or disarmed using the SenseHAT's physical joystick:\n- Pressing Up, Down, Up will arm the device to respond to light.\n- Pressing Down, Up, Down while the device is in the alarm state (or flashing a warning prior to the alarm) will deactivate the alarm \u0026 armed states.\n\nThe device uses the SenseHAT pixel array to visually illustrate when the device is: \n- Running\n- In the alarm state\n- Being armed\n- Being disarmed\n\n![SnackTrap](https://github.com/Kwee-Veen/SnackTrap/assets/118535981/247a2dc6-28d4-4078-ab6d-c8d366b7e2c6)\n\nTo use the device, arm the device using either the joystick-press sequence or the Blynk smartphone app.\nThe device will then respond if light levels are raised above a low threshold (5/255).\nWhile inside a dark area, such as the inside of a cupboard being monitored, the alarm will not be triggered.\nIf the cupboard is opened, however, the sharp increase in light will trigger the alarm and notify the user.\n\nThe device indicates an alarm state in three ways:\n1) Optically, via the SenseHAT light pixel array\n2) Via a Blynk smartphone app urgent notification\n3) Via email sent to the Blynk project owner\n\nThe device's events, including device alarm, armed and disarmed state changes, are recorded via Blynk events.\nThese events are triggered by HTTP requests sent from the device to the Blynk platform upon state changes.\nReviewing the device's Timeline provides a full history of events, with alarms emphasised as Warning events.\nAn additional copy of JSON data highlight the time of the event is sent to Firebase, serving as a backup of events and facilitating further data processing available if desired.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwee-veen%2Fsnacktrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkwee-veen%2Fsnacktrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkwee-veen%2Fsnacktrap/lists"}