{"id":15197078,"url":"https://github.com/meinside/telegram-rpi-camera-bot","last_synced_at":"2025-03-29T18:31:08.183Z","repository":{"id":53708874,"uuid":"60835667","full_name":"meinside/telegram-rpi-camera-bot","owner":"meinside","description":"Telegram bot for capturing images with Raspberry Pi camera module","archived":false,"fork":false,"pushed_at":"2025-03-13T02:40:10.000Z","size":155,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-22T20:33:40.003Z","etag":null,"topics":["golang","raspberry-pi","raspberry-pi-camera","telegram-bot"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/meinside.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":"2016-06-10T09:00:35.000Z","updated_at":"2025-03-13T02:40:13.000Z","dependencies_parsed_at":"2024-04-02T13:50:29.963Z","dependency_job_id":"58c12ee6-4a32-482c-a4ac-eff52caff910","html_url":"https://github.com/meinside/telegram-rpi-camera-bot","commit_stats":{"total_commits":83,"total_committers":3,"mean_commits":"27.666666666666668","dds":"0.22891566265060237","last_synced_commit":"981e7c44483f9771e9f7a4b61a15bdf0b5b70c92"},"previous_names":["meinside/telegram-rpi-camera-bot","meinside/telegram-bot-rpi-camera"],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Ftelegram-rpi-camera-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Ftelegram-rpi-camera-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Ftelegram-rpi-camera-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meinside%2Ftelegram-rpi-camera-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meinside","download_url":"https://codeload.github.com/meinside/telegram-rpi-camera-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246226870,"owners_count":20743838,"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":["golang","raspberry-pi","raspberry-pi-camera","telegram-bot"],"created_at":"2024-09-28T00:41:23.310Z","updated_at":"2025-03-29T18:31:07.764Z","avatar_url":"https://github.com/meinside.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot for Capturing Images with Raspberry Pi Camera Module\n\nWith this bot, you can capture images with camera module on your Raspberry Pi.\n\n## 0. Prepare,\n\nInstall Go and generate your Telegram bot's API token.\n\n## 1. Install and configure,\n\n```bash\n$ go get -d github.com/meinside/telegram-rpi-camera-bot\n$ cd $GOPATH/src/github.com/meinside/telegram-rpi-camera-bot\n$ cp config.json.sample config.json\n$ vi config.json\n```\n\nand edit values to yours:\n\n```json\n{\n  \"available_ids\": [\n    \"telegram_id_1\",\n    \"telegram_id_2\",\n    \"telegram_id_3\"\n  ],\n  \"monitor_interval\": 3,\n  \"image_width\": 1600,\n  \"image_height\": 1200,\n  \"is_verbose\": false,\n\n  \"api_token\": \"0123456789:abcdefghijklmnopqrstuvwyz-x-0a1b2c3d4e\"\n}\n```\n\n### Using Infisical\n\nYou can also use [Infisical](https://infisical.com/) for retrieving your bot api token:\n\n```json\n{\n  \"available_ids\": [\n    \"telegram_id_1\",\n    \"telegram_id_2\",\n    \"telegram_id_3\"\n  ],\n  \"monitor_interval\": 3,\n  \"image_width\": 1600,\n  \"image_height\": 1200,\n  \"is_verbose\": false,\n\n  \"infisical\": {\n    \"client_id\": \"012345-abcdefg-987654321\",\n    \"client_secret\": \"aAbBcCdDeEfFgG0123456789xyzwXYZW\",\n\n    \"project_id\": \"012345abcdefg\",\n    \"environment\": \"dev\",\n    \"secret_type\": \"shared\",\n\n    \"api_token_key_path\": \"/path/to/your/KEY_TO_API_TOKEN\"\n  }\n}\n```\n\n## 2. Build,\n\n### A. build manually,\n\n```bash\n$ go build\n```\n\n### B. or build with docker-compose\n\n#### a. Raspberry Pi 3B, 3B+\n\n```bash\n$ docker-compose build\n```\n\n#### b. Raspberry Pi 2\n\n```bash\n$ docker-compose build --build-arg RPI=raspberry-pi2\n```\n\n#### c. Raspberry Pi B / Zero\n\n```bash\n$ docker-compose build --build-arg RPI=raspberry-pi\n```\n\n## 3. And Run\n\n### A. run manually,\n\n```bash\n$ ./telegram-rpi-camera-bot\n```\n\n### B. run as a service with systemd,\n\n```bash\n$ sudo cp systemd/telegram-rpi-camera-bot.service /etc/systemd/system/\n$ sudo vi /etc/systemd/system/telegram-rpi-camera-bot.service\n```\n\nand edit **User**, **Group**, **WorkingDirectory** and **ExecStart** values.\n\nIt will launch automatically on boot with:\n\n```bash\n$ sudo systemctl enable telegram-rpi-camera-bot.service\n```\n\nand will start with:\n\n```bash\n$ sudo systemctl start telegram-rpi-camera-bot.service\n```\n\n### C. or run with docker-compose\n\n```bash\n$ docker-compose up -d\n```\n\n## 998. Trouble shooting\n\nTODO\n\n## 999. License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeinside%2Ftelegram-rpi-camera-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeinside%2Ftelegram-rpi-camera-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeinside%2Ftelegram-rpi-camera-bot/lists"}