Code samples for Chapter 7 The IoT Software Package: Raspberry Pi side
- Code application to run in the IoT Device provisioned in Balena platform
Make a copy of the .env.template file and add you account credentials:
$ cd ./nodered/app
$ cp .env.template .env
Then add your Pusher credentials to .env file
Replace the current version of Dockerfile.template by Dockerfile.template.32bits
$ cd ./nodered/app
$ cp Dockerfile.template.32bits Dockerfile.templateLog into Balena cloud with your credentials and push the local repository with the changes above:
$ balena login
$ balena push Sense-IoT-32bits
Replace the current version of Dockerfile.template by Dockerfile.template.64bits
$ cd ./nodered/app
$ cp Dockerfile.template.64bits Dockerfile.templateThen proceed as explain above to push the local repository to Balena cloud.