How-To: Remote Control the Robin
Robin Tech Note
Upgrade software version using HTTP commands
The software of the Robin can be upgraded using HTTP commands. It takes eight steps to upgrade
the Robin.
The Robin will answer to these commands in JSON.
! Note: Use an interval time of 5 seconds between each command. !
1.
Check for a new software version:
Command:
curl -u admin:<password> “http://<address>/api/v1/do_update”
Goal:
Start the check for a new software version.
Answer:
{
“ok”:true,”rv”:[]
}
2.
Check the status during the
update command
. Continue checking until the output is ‘empty’:
Command:
curl -u admin:<password> “http://<address>/api/v1/get_upgrade_status”
Goal:
Retrieve the actual status during the update check.
Answer:
{
“ok”:true,”rv”:”Checking for new versions...” -> busy
or
“ok”:true,”rv”:”” -> done
}
3.
Retrieve the software versions. Is the “version_available” identical to the “version_installed”?
No update available. Is the “version_available” higher than the “version_installed”? New up-
date available, see step 4:
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+3869”,
”version_running”:”dev+3869”
}
}