Environment variables not visible in HostOS

Hi, I have read the documentation about env variables and some forum topics, but I cant find the answer. I have created the environment variables via dashboard Device variables. Those variables are visible in the services I run on the device, but not in the HostOS. How to set HostOS environment variables. For example I would like to have possibility to change wifi SSID and pass via env variable, and read it in host os in resin-wifi-01.

Hello! The idea is that no module should touch the HostOS for reliability reasons. What you are describing can be achieved from a container using dbus to communicate with the hostOS. You can check our docs here on how to do that here https://www.balena.io/docs/learn/develop/runtime/#dbus-communication-with-host-os .

1 Like

Thank you. I will do that.