balena-io-experimental / fin-block

The fin block is a balenaBlock that provides flashing utilities, status tagging, sleep control and firmata control functionality of the balenaFin.
https://balena.io/fin
Apache License 2.0
9 stars 3 forks source link

Read UUID #61

Closed martp00 closed 2 years ago

martp00 commented 2 years ago

How I can read the UUID number from the device (balena-fin v1.1)? SDK (https://github.com/balena-io-hardware/balena-fin-sdk) doesn't work (https://github.com/balena-io-hardware/balena-fin-sdk/issues/5) and deprecated.

Since in this thread is mark done (https://github.com/balenablocks/fin-block/issues/2), I was hoping to find a way. Didn't see any information about this in doc folder. Should it have a REST interface ?

Bucknalla commented 2 years ago

@martp00 are you looking for the manufacturing serial ID of the fin? Or the balena UUID generated at balenaCloud?

martp00 commented 2 years ago

I was searching UUID generated at balenaCloud, but your question makes me realize that they are 2 completely different field. The /firmware method return to the manufacturing serial ID.

I find the Balena UUID into environment variable (os.getenv('BALENA_DEVICE_UUID')).