{"id":13584220,"url":"https://github.com/gbbirkisson/rpi-balena","last_synced_at":"2026-03-19T04:46:33.104Z","repository":{"id":129112193,"uuid":"169110408","full_name":"gbbirkisson/rpi-balena","owner":"gbbirkisson","description":"Example of how to run rpi-server on balena.io","archived":false,"fork":false,"pushed_at":"2021-08-24T15:13:41.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-25T17:27:03.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/gbbirkisson.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":"2019-02-04T16:34:47.000Z","updated_at":"2023-03-28T20:09:39.000Z","dependencies_parsed_at":"2023-04-19T22:18:12.337Z","dependency_job_id":null,"html_url":"https://github.com/gbbirkisson/rpi-balena","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbirkisson%2Frpi-balena","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbirkisson%2Frpi-balena/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbirkisson%2Frpi-balena/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbirkisson%2Frpi-balena/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbbirkisson","download_url":"https://codeload.github.com/gbbirkisson/rpi-balena/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212566,"owners_count":19600833,"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":[],"created_at":"2024-08-01T15:04:06.009Z","updated_at":"2026-01-24T16:41:53.045Z","avatar_url":"https://github.com/gbbirkisson.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"\u003cimg align=\"right\" width=\"128\" height=\"128\" src=\"logo.png\"\u003e\n\u003ch1\u003erpi-balena\u003c/h1\u003e\n\nRepository showcasing how to deploy the [rpi-server](https://github.com/gbbirkisson/rpi) to a RaspberryPi running on [balena.io](https://www.balena.io/).\n\n- [Setting up a balena project](#setting-up-a-balena-project)\n- [Deploy rpi to balena](#deploy-rpi-to-balena)\n- [Enabling services](#enabling-services)\n  - [GPIO](#gpio)\n  - [Pi Camera](#pi-camera)\n  - [Ngrok tunnel](#ngrok-tunnel)\n- [Updating rpi version](#updating-rpi-version)\n\n## Setting up a balena project\n\nFollow the [get started](https://www.balena.io/docs/learn/getting-started/raspberrypi3/go/) instructions provided by [balena.io](https://www.balena.io/).\n\n## Deploy rpi to balena\n\n1. Clone this repository: `git clone https://github.com/gbbirkisson/rpi-balena.git`\n2. Add balena remote: `git remote add balena \u003cUSERNAME\u003e@git.balena-cloud.com:\u003cUSERNAME\u003e/\u003cAPPNAME\u003e.git`\n3. Push to balena: `git push balena master`\n\n## Enabling services\n\nTo enable services on [balena.io](https://www.balena.io/) you have to set device configuration and device service variables.\n\n### GPIO\n\n* Device Service variables\n    * `RPI_GPIO_ENABLED`: `true`\n    * `RPI_GPIO_OPEN`: `true` *(if you want to open the GPIO pins on startup)*\n\n### Pi Camera\n\n* Device Configuration\n    * `RESIN_HOST_CONFIG_gpu_mem`: `128`\n    * `RESIN_HOST_CONFIG_start_x`: `1`\n* Device Service variables\n    * `RPI_PICAM_ENABLED`: `true`\n    * `RPI_MODPROBE`: `bcm2835-v4l2`\n    * `RPI_PICAM_OPEN`: `true` *(if you want to turn on the camera on startup)*\n\n### Ngrok tunnel\n\n* Device Service variables\n    * `RPI_NGROK_ENABLED`: `true`\n    * `RPI_NGROK_TOKEN`: `\u003cyour ngrok token\u003e`\n    * `RPI_NGROK_REGION`: `us` *(if you want to use a different region)*\n\n## Updating rpi version\n\n1. Change `ENV RPI_VERSION=\"vX.X.X\"` in the [Dockerfile.template](https://github.com/gbbirkisson/rpi-balena/blob/master/Dockerfile.template#L11) to your desired version.\n2. Commit the change: `git commit -am \"Update version\"`\n3. Push to balena: `git push balena master`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbbirkisson%2Frpi-balena","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbbirkisson%2Frpi-balena","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbbirkisson%2Frpi-balena/lists"}