This is the repository that contains the robots for the different levels of certification.
In the tutorials it is recommended to use Visual Studio Code as the IDE. But it is possible to use any other IDE (e.g. PyCharm). These IDEs lacks some of the practical commands of Visual Studio Code, but you can use the rcc command line tool to do this.
In the following sections you will find some useful tips on how to set up and use rcc
.
# MacOS
brew install robocorp/tools/rcc
-
If the environment variable
FPATH
does not hold any value add one-
Create a new folder in your home directory
mkdir ~/.zfunc
-
Open
~/.zshrc
in your favorite editor and add the following linefpath=(~/.zfunc $fpath)
-
-
Create the autocompletion script
rcc completion > ~/.zfunc/_rcc
-
Make the script executable
chmod +x ~/.zfunc/_rcc
-
Reload your shell
exec zsh
Enter the following command in the terminal and follow the instructions.
rcc create
-
Ensure you have access to the workspace
- Open the
Control Center
- Select your
Workspace
(top left corner) - Go to
User Settings
(top right corner) - Go to
Access Credentials
and add your credentials
- Open the
-
Add your credentials to the rcc config
# Get the Workspace ID rcc cloud workspace
# This will add the credentials to your default account rcc configure credentials <YOUR_CREDENTIALS>
# This will add the credentials to a specific account or will create a new one rcc configure -a <YOUR_ACCOUNT> credentials <YOUR_CREDENTIALS>
Note: You can find the file with the configuration at
$ROBOCORP_HOME/rcc.yml
(default: ~/.robocorp/rcc.yml) -
Create a new robot in your workspace
rcc cloud new -r <YOUR_DESIRED_TASK_NAME> -w <WORKSPACE_ID>
-
Push your local robot to Control Room
# Get the Task ID rcc cloud workspace -w <WORKSPACE_ID>
rcc cloud push -r <TASK_ID> -w <WORKSPACE_ID>
# MacOS
brew install miniconda
conda init "$(basename "${SHELL}")"
If you used rcc
to create a new robot project, you can use the conda.yaml
file to create a new environment.
conda env create -f conda.yaml -n <your-conda-env>
Open your robot project in PyCharm and add new Python Interpreter
PyCharm
>Settings
Project: <your-project-name>
>Python Interpreter
Add Interpreter
>Add Local Interpreter...
- Select
Conda Environment
>Existing environment
- Select
<your-conda-env>
as the existing environment
-
Install
EnvFile
plugin for using JSON files instead of .env filesℹ️ Dependent on the template you used while creating the project with
rcc
there might already be some environment variables under/devdata
. These environment variables are stored in a JSON file. -
Add a Run Configuration
⚠️ You can find the necessary information for the Run Configurations in therobot.yaml
file created byrcc
.ℹ️ You can find my Run Configurations in
.run
in the respective project folders.