Balena is much about managing many devices - possibly with multiple services in them. If you only have a single device with a single service it shouldn’t matter much, but generally, it works like this:
Application → Env Var: variables that are set for all devices and all services
Application → Services Vars: variables that are set for one service (aka one container) for all devices
Device → Env Var: variables that are set for all services for one device
Device → Service Var: variables that are set for one services for one device
remember that all of these DO NOT work if you are in local mode. Either don’t use local mode or add the variables to the
Dockerfile with a
ENV variable1=value1 kind of line.
The supported env vars are listed here: GitHub - balenalabs/uk-train-departure-display: A balenaCloud Raspberry Pi app to display replica near real-time UK railway station departure data on SSD1322 screens.
Unfortunately we can’t support you with changes to the application code itself. But if you want to make changes in general, just download the source from GitHub do the changes locally and use our balena CLI to push the updates via
balena push "myAppName"
Hope this helps!