I’m using Balena Supervisor API to try to make cron tasks in PHP. I would like to restart some services when they are going wild, but the API killed me.
I’m a little confused as to what you are trying to do. The guide you mentioned (Interacting with the balena Supervisor - Balena Documentation) is for calls from within the Balena device. I.e. from within one container, you can call the API of the device that container is stored on, and request a reboot. But you mention using Postman? Postname is on your computer? How are you communicating with the device?
If you are looking to communicate with the device via the cloud/VPN then I don’t think they are the right docs.
Not sure about that one, sorry. Never tried a remote restart.
Someone may have an answer. In the meantime you may be able to work it out by looking at the SDK docs and see how that does it. Could be this: Balena Node.js SDK - Balena Documentation
@fx_sl nice that you could solve your problem. Could you please introduce the complete solution for your problem so in the future the community can read it?