Skip to content

Robotair Installationâ¿»

Estimated time to read: 2 minutes

This guide explains how to use the robotair.sh script to install and start the Robotair client on your system.


Step 1: How to Use robotair.shâ¿»

The robotair.sh script automates the installation of all dependencies and the setup of the Robotair service.

Usageâ¿»

Open a terminal and run:

bash robotair.sh <robot_id> <robot_token> [options]

Arguments: - <robot_id>: Your unique Robotair robot identifier. - <robot_token>: The authentication token for your robot.

Options: - -v or --verbose: Enable verbose output for debugging. - --install-only: Only install dependencies, do not start the Robotair service.

Examples:

Install and start Robotair:

bash robotair.sh my_robot_id my_robot_token

Install dependencies only (do not start service):

bash robotair.sh --install-only

Enable verbose output:

bash robotair.sh my_robot_id my_robot_token --verbose


Step 2: What Does robotair.sh Do?â¿»

The script performs the following actions:

  1. Argument Handling
    Parses the provided arguments and options to determine the installation mode and verbosity.

  2. Dependency Installation

  3. Docker:
    Checks if Docker is installed. If not, downloads and installs Docker, sets up user permissions, and verifies the installation.
  4. Robotair Client:
    Checks if the Robotair client is installed. If not, adds the Robotair APT repository and GPG key, updates APT, and installs the Robotair client package. Adds the current user to the robotair group.

  5. Service Startup
    Unless --install-only is specified, waits for the Robotair service to be ready, then starts the Robotair client using the provided robot ID and token.


Additional Notesâ¿»

  • The script supports installation from a local Robotair package if the LOCAL_ROBOTAIR_PACKAGE environment variable is set to true.
  • All major actions are logged with colored output for clarity.
  • If you encounter errors, try running with the --verbose flag for more detailed output.