Skip to content

Hands-on-IoT-Programming/chapter7-balena

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code samples for Chapter 7 The IoT Software Package: Raspberry Pi side

  • Code application to run in the IoT Device provisioned in Balena platform

How to include your Pusher credentials

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

Run for 32 bits devices (armhf)

Replace the current version of Dockerfile.template by Dockerfile.template.32bits

$ cd ./nodered/app
$ cp Dockerfile.template.32bits Dockerfile.template

Log into Balena cloud with your credentials and push the local repository with the changes above:

$ balena login
$ balena push Sense-IoT-32bits

Run for 64 bits devices (arm64)

Replace the current version of Dockerfile.template by Dockerfile.template.64bits

$ cd ./nodered/app
$ cp Dockerfile.template.64bits Dockerfile.template

Then proceed as explain above to push the local repository to Balena cloud.

About

Code samples for Chapter 7 The IoT Software Package: Raspberry Pi side

Resources

License

Stars

Watchers

Forks

Packages

No packages published