Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gbbirkisson/rpi-balena
Example of how to run rpi-server on balena.io
https://github.com/gbbirkisson/rpi-balena
Last synced: about 9 hours ago
JSON representation
Example of how to run rpi-server on balena.io
- Host: GitHub
- URL: https://github.com/gbbirkisson/rpi-balena
- Owner: gbbirkisson
- Created: 2019-02-04T16:34:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T15:13:41.000Z (over 3 years ago)
- Last Synced: 2024-11-06T01:39:35.186Z (about 2 months ago)
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
rpi-balena
Repository showcasing how to deploy the [rpi-server](https://github.com/gbbirkisson/rpi) to a RaspberryPi running on [balena.io](https://www.balena.io/).
- [Setting up a balena project](#setting-up-a-balena-project)
- [Deploy rpi to balena](#deploy-rpi-to-balena)
- [Enabling services](#enabling-services)
- [GPIO](#gpio)
- [Pi Camera](#pi-camera)
- [Ngrok tunnel](#ngrok-tunnel)
- [Updating rpi version](#updating-rpi-version)## Setting up a balena project
Follow the [get started](https://www.balena.io/docs/learn/getting-started/raspberrypi3/go/) instructions provided by [balena.io](https://www.balena.io/).
## Deploy rpi to balena
1. Clone this repository: `git clone https://github.com/gbbirkisson/rpi-balena.git`
2. Add balena remote: `git remote add balena @git.balena-cloud.com:/.git`
3. Push to balena: `git push balena master`## Enabling services
To enable services on [balena.io](https://www.balena.io/) you have to set device configuration and device service variables.
### GPIO
* Device Service variables
* `RPI_GPIO_ENABLED`: `true`
* `RPI_GPIO_OPEN`: `true` *(if you want to open the GPIO pins on startup)*### Pi Camera
* Device Configuration
* `RESIN_HOST_CONFIG_gpu_mem`: `128`
* `RESIN_HOST_CONFIG_start_x`: `1`
* Device Service variables
* `RPI_PICAM_ENABLED`: `true`
* `RPI_MODPROBE`: `bcm2835-v4l2`
* `RPI_PICAM_OPEN`: `true` *(if you want to turn on the camera on startup)*### Ngrok tunnel
* Device Service variables
* `RPI_NGROK_ENABLED`: `true`
* `RPI_NGROK_TOKEN`: ``
* `RPI_NGROK_REGION`: `us` *(if you want to use a different region)*## Updating rpi version
1. 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.
2. Commit the change: `git commit -am "Update version"`
3. Push to balena: `git push balena master`