How implement environment variables?

Hello community

i was watching this helpful video to setup openBalena


And works properly without any problem.

After this i deployed with " balena deploy testApp --emulated --logs --build"
this git repo https://github.com/jpmeijers/ttn-resin-gateway-rpi to the openBalena Server
But i have no idea how can set this enviroment variable.
|GW_ID|The gateway ID from the TTN console|
|GW_KEY|The gateway KEY from the TTN console|
|GW_RESET_PIN|22 (optional)|
Can anyone help me to implement the environment variable ?

Best regards Joachim

Hey,
One could setup env var using the dashboard and here is a relevant doc:
https://www.balena.io/docs/learn/manage/serv-vars/
or directly from the CLI (remove/add/list):
https://www.balena.io/docs/reference/cli/#envs
See the CLI doc, as it allows you to quickly verify the variables configuration on your local device.

hth

1 Like

Thank you very much for your help.
Problem solved.

Regards Joachim

1 Like