This is a project to get you started with the Pimoroni Enviro pHat and its awesome python library on balenaOS and balenaCloud.
- Provision a device in your application following the balenaCloud Getting Started Guide.
- Clone this repository locally and add the
balena git remote ...
to the repo. - Run
git push balena master
and wait for the code to be deployed, build and run.
- Follow the balenaOS Getting Started Guide and get your device set up. Make sure you are familiar with
balena-cli
and can push a basic container. - Once your balenaOS device is showing on the local network, ssh into it doing
balena ssh --host
. On the host load up the i2c kernel module by running:modprobe i2c-dev
- Clone this repository locally and run
balena push balena.local -s .
from the root of the repository folder.