I’ve got a python script that currently monitors all my Balena devices using the fabulous Balena SDK. I’m thinking of expanding the script to include status info about my container applications, so I can easily check if all processes are running, etc. I’ve managed to do this by using Device Environment Variables (balena.models.environment_variables.device), but my gut feeling tells me that this is an ugly hack. Is there a better way to do this?
I already tried to use the dict in balena.models.device.get(uuid), but any changes to the dict is not reflected outside my device. So far, Device Environment Variables seems to be my only optinon.