Getting device UUID - NodeJS + rPi3

Hi all,

I am currently trying to access the device UUID within my NodeJS app.
The way I’m trying to access this is via process.env.BALENA_DEVICE_UUID, but it is returning as undefined. Am I doing something incorrect here? I have read the documentation on this function but I can’t see what I’ve missed.

Thanks again

Hi @kildcael

When you ssh into your application, and run env, does the device UUID show up the list? If not, try to ssh into the hostOS, and running env there to find the variable. The UUID might only be available on the hostOS and not in the container.

Let us know if this helps!

Kind regards
Alida