RESTful API for controlling a Raspberry Pi with a BLINKT(!) board attached over balena cloud.
- Raspberry Pi 3 or 4
- Pimoroni BLINKT(!) board
- A 4GB or greater micro SD card (We always recommend SanDisk Extreme Pro SD cards)
- Power supply
- A download of this project
- Software to flash an SD card (balenaEtcher)
- A free balenaCloud account
- The balena CLI tools
To run this project is as simple as deploying it to a balenaCloud application, no additional configuration is required.
- Sign up for or login to the balenaCloud dashboard
- Create an application, selecting the correct device type for your Raspberry Pi
- Add a device to the application, enabling you to download the OS
- Flash the downloaded OS to your SD card with balenaEtcher
- Power up the board and check it's online in the dashboard
You can deploy this server with one click with the button below. Or, you can follow the manual deployment instructions in the next section.
- Install the balena CLI tools
- Login with
balena login
- Download this project and from the project directory run
balena push <appName>
where<appName>
is the name you gave your balenaCloud application in the first step.
You can use the public device URL from your device for controlling the BLINKT(!) board.
Turn all lights on:
https://***.balena-devices.com/on
Turn all lights off:
https://***.balena-devices.com/off
Turn all lights red:
https://***.balena-devices.com/red
Turn all lights yellow:
https://***.balena-devices.com/yellow
Turn all lights green:
https://***.balena-devices.com/green