{"id":28288422,"url":"https://github.com/shchoholiev/sis-access-point","last_synced_at":"2026-05-17T03:36:28.257Z","repository":{"id":291441559,"uuid":"721386131","full_name":"Shchoholiev/sis-access-point","owner":"Shchoholiev","description":"A Python-based access control system integrating PIR motion sensors and camera operations to detect motion, capture images, and interact with a backend for smart inventory management.","archived":false,"fork":false,"pushed_at":"2025-05-04T16:46:15.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T16:51:49.556Z","etag":null,"topics":["camera","pir-sensor","python","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shchoholiev.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}},"created_at":"2023-11-21T00:34:14.000Z","updated_at":"2025-05-04T16:47:20.000Z","dependencies_parsed_at":"2025-05-04T17:47:51.405Z","dependency_job_id":null,"html_url":"https://github.com/Shchoholiev/sis-access-point","commit_stats":null,"previous_names":["shchoholiev/sis-access-point"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Shchoholiev/sis-access-point","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shchoholiev%2Fsis-access-point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shchoholiev%2Fsis-access-point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shchoholiev%2Fsis-access-point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shchoholiev%2Fsis-access-point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shchoholiev","download_url":"https://codeload.github.com/Shchoholiev/sis-access-point/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shchoholiev%2Fsis-access-point/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33126542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"online","status_checked_at":"2026-05-17T02:00:05.366Z","response_time":107,"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":["camera","pir-sensor","python","raspberry-pi"],"created_at":"2025-05-22T00:11:54.579Z","updated_at":"2026-05-17T03:36:28.223Z","avatar_url":"https://github.com/Shchoholiev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sis-access-point\nA Python-based access control system integrating PIR motion sensors and camera operations to detect motion, capture images, and interact with a backend for smart inventory management.\n\n## Table of Contents\n- [Features](#features)\n- [Stack](#stack)\n- [Installation](#installation)\n  - [Prerequisites](#prerequisites)\n  - [Setup Instructions](#setup-instructions)\n- [Configuration](#configuration)\n\n## Features\n- Monitors PIR motion sensors for detection of motion.\n- Captures images automatically via a connected camera when motion is detected.\n- Sends captured images to a backend API for identifying items.\n- Provides logging with rotating log files for detailed operational insights.\n- Supports device and application configuration through JSON files.\n- Designed for Raspberry Pi hardware integration (GPIO and camera).\n\n## Stack\n- Python 3.9+\n- [gpiozero](https://gpiozero.readthedocs.io) for motion sensor interfacing.\n- [Pillow](https://python-pillow.org/) for image handling.\n- Requests for HTTP communication.\n- libcamera tools (libcamera-still) for camera image capture.\n- Logging with Python `logging` and `RotatingFileHandler`.\n- Packaging and environment management with setuptools and devcontainers.\n\n## Installation\n\n### Prerequisites\n- Raspberry Pi running a compatible OS (e.g., Raspberry Pi OS).\n- Python 3.9 or above installed.\n- Camera module compatible with `libcamera-still`.\n- PIR motion sensor connected to an appropriate GPIO pin.\n- Install `libcamera` tools on your system.\n- Internet connection for backend API access.\n\n### Setup Instructions\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/Shchoholiev/sis-access-point.git\n   cd sis-access-point\n   ```\n\n2. Create and activate a Python virtual environment (optional, but recommended):\n   ```bash\n   python3 -m venv venv\n   source venv/bin/activate\n   ```\n\n3. Install required Python packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. (Optional) If using the devcontainer, open the folder with VSCode and launch the devcontainer for a consistent dev environment.\n\n5. Run the application with:\n   ```bash\n   accesspoint\n   ```\n   Or alternatively:\n   ```bash\n   python -m access_point.app.app\n   ```\n\n## Configuration\nConfiguration files are located in the `access_point/app` directory:\n\n- `appconfig.json` — Contains backend API URLs and Azure IoT Hub hostname.\n- `deviceconfig.json` — Stores device-specific identifiers and access keys.\n\nExample `appconfig.json` content:\n```json\n{\n    \"apiUrl\": \"https://smart-inventory-system.azurewebsites.net\",\n    \"azureIoTHub\": {\n        \"hostName\": \"smart-inventory-system.azure-devices.net\"\n    }\n}\n```\n\nExample `deviceconfig.json` content:\n```json\n{\n    \"deviceId\": \"your-device-id\",\n    \"accessKey\": \"your-access-key\"\n}\n```\n\nModify these JSON files to match your environment and credentials before running the application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshchoholiev%2Fsis-access-point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshchoholiev%2Fsis-access-point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshchoholiev%2Fsis-access-point/lists"}