Programaticly control download of updates?

Hi,

I was wondering. Is it possible to control from the device when the download for a update will start?

Our devices are connected to the internet by varying means wireless means. It can be satellite or mobile 4g and even public wifi . We do have a means for user interaction with the device.

We would like to give our users control over when updates are downloaded, so they can do it when the connection is cheap. Or maybe we ake something that estimates available bandwith to find the optimum time to force an update.

Is it possible to programmatically control from the device when an update is being downloaded? I found the update lock file, but that just postpones the restart not the downloading.

Also, ideally we’d like to be able to control this for OS updates as well. Maybe using the cloud API?

Cheers,
Erik

Hi, you can pin device or application to specific release (both, programmatically and from balena dashboard). See: https://github.com/balena-io-projects/balena-fleet-management-masterclass#6-release-policy

There is also a method in balena-sdk to update os

Oh yes, that looks great, we can work with that. Thanks for the help!