Installer OctoBot sur Raspberry Pi
La traduction française de cette page est en cours.
1. Preparing the Raspberry Pi
- Install Rapberry OS and configure it.
- Enable
ssh
as it will be essential for accessing the Raspberry remotely from a local network - Create a new user or use the default one and change the password to use a strong password.
2. Install OctoBot
- On the Octobot latest release page, download the
OctoBot_linux_arm64
file: this is the Raspberry Pi x64 compatible version of OctoBot.
-
Copy the file to the
/home/pi/
folder
Note: herepi
it is the folder of thepi
user (default user). -
To facilitate this process (when using Windows), you can use WinSCP: it has a graphical interface and works like the Windows “file explorer”. It will also be easier to later edit your Raspberry Pi files.
-
Connect to Raspberry through a terminal using the following command:
ssh pi@192.168.1.XX
replacepi
by your Raspberry username and192.168.1.XX
by your Raspberry IP address and enter the password you created in setp 1. -
After logging on to the Raspeberry it is necessary to make the file “OctoBot_linux_arm64” into an executable. To do this, still from the terminal, type this command:
sudo chmod +x OctoBot_linux_arm64
-
Done. Nothing else is needed!
3. Run OctoBot
-
To run OctoBot, use the terminal from the previous step or open a new one and go to the folden containing the OctoBot executable and type in
./OctoBot_linux_arm64
OctoBot starts and creates the necessary folders the first time it runs. -
In the Web browser you already have access to your OctoBot through the Raspberry Pi’s local IP at the following address:
http://192.168.1.XX:5001
where192.168.1.XX
is the IP address of your Rapberry Pi. It is the same as the one you use to connect to your Rapberry Pi. -
Press
Ctrl-A
thenCtrl-D
. This will detach your screen session but leave your OctoBot process running. You can now close the terminal.
4. Starting OctoBot automatically
You might want OctoBot to start automatically when starting your Raspberry Pi.
To start OctoBot automatically after restarting Raspberry Pi, proceed as follows.
Still from a terminal:
- Type in the following command:
crontab -e
- Add the following line at the end:
@reboot /home/pi/OctoBot_linux_arm64
wherepi
is your username - Save
In the event of a power outage, your Raspberry Pi will automatically restart your OctoBot and continue executing its configured strategies.
Also, every time your Raspberry Pi starts up, it will run Octobot and you will be able to access it from your browser.