How-To: Remote Control the Robin
Robin Tech Note
4.
Upgrade to the latest version:
Command:
curl -u admin:<password> “http://<address>/api/v1/do_upgrade”
Goal:
Start the software upgrade.
Answer:
{
“ok”:true,”rv”:[]
}
5.
Check the status during the
upgrade command
. Continue checking until the output is ‘Ok’ and
the upgrade is finished:
Command:
curl -u admin:<password> “http://<address>/api/v1/get_upgrade_status”
Goal:
Retrieve the actual status during the software upgrade.
Answer:
{
“ok”:true,”rv”:”Upgrading...” -> busy
or
“ok”:true,”rv”:”Ok” -> done
}
6.
As soon as the upgrade is done, check the status of the upgrade using the ‘
get_versions’
com-
mand. Is the “version_installed” higher than the “version running”? The upgrade was success-
ful and the Robin needs to reboot. See step 7:
Command:
curl -u admin:<password> “http://<address>/api/v1/get_versions”
Goal:
Retrieve the software versions.
Answer:
{
“ok”:true,”rv”:{
“version_available”:”dev+3870”,
”version_installed”:”dev+3870”,
”version_running”:”dev+3869”
}
}
7.
Reboot the Robin, the reboot procedure can take up to one minute:
Command:
curl -u admin:<password> “http://<address>/api/v1/reboot”
Goal:
Reboor the Robin
Answer:
{
“ok”:true,”rv”:[]
}