Hello! I am working on an application which requires preregistering devices using openBalena so that some environment variables can be set for the device as soon as it turns on. As of right now we have a python script which registers the device via the Python SDK, and then modifies a template
config.json file, inserting the uuid we register with Balena. The script then moves the modified file to a the boot partition of an SD card which has already been flashed.
It seems like there should be a better way to do all of this. I would like to use
balena os configure as described here, but it the python SDK doesn’t seem to support it.
Is there something I’m missing that would make the process more streamlined/reliable? I know balena says throughout the documentation that it’s not a great idea to modify the
config.json file directly.