I’m trying to map a naming convention against my devices. When flashing all of them I specified a “hostname” on the config.json which would be their unique identifiers. My Node application then grabs the hostname and identifies itself to my external server. However, it seems that docker is detecting and using the container hostname ie.
Wondering what would be easiest/best way to handle this? My understanding is that the RESIN_HOST_CONFIG_* variables are available container side. Within my Node application how can I gain access to this value?
UPDATE: I’ve learned that I can use
resin device rename to change the device name. So rather than depend on hostname I’m going to use the device name from Resin. So to revise my question, how can I easily snag the device name of from within my Node app (running inside the container?).