-
-
Notifications
You must be signed in to change notification settings - Fork 3
Installation
Christian Blank edited this page Nov 8, 2024
·
2 revisions
- Windows 10/11
- Linux (Ubuntu 20.04+, Debian 10+, CentOS 8+)
- macOS (10.15 Catalina or newer)
- Python 3.9 or higher
- pip (Python package installer)
- At least one of: Radarr, Sonarr, or Lidarr instance(s)
- Telegram Bot Token (from @BotFather)
- Download Python from python.org
- Run the installer (make sure to check "Add Python to PATH")
- Verify installation:
python --version pip --version
# Update package list
sudo apt update
# Install Python and pip
sudo apt install python3 python3-pip
# Verify installation
python3 --version
pip3 --version- Install Homebrew if not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Install Python:
brew install python
- Verify installation:
python3 --version pip3 --version
Using curl:
curl -sSL https://raw.githubusercontent.com/cyneric/addarr/main/install.sh | bashOr using wget:
wget -qO- https://raw.githubusercontent.com/cyneric/addarr/main/install.sh | bashThe installer will:
- Create a dedicated installation directory at
~/.addarr - Set up a Python virtual environment
- Install all required dependencies
- Create the
addarrcommand for easy access - Back up any existing installation
Open PowerShell as Administrator and run:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/cyneric/addarr/main/install.ps1'))The installer will:
- Create a dedicated installation directory at
C:\Users\<username>\AppData\Local\Addarr - Set up a Python virtual environment
- Install all required dependencies
- Create the
addarrcommand for easy access - Back up any existing installation
- Clone the repository:
git clone https://github.com/Cyneric/Addarr.git
cd addarr- Install dependencies:
pip install -r requirements.txt- Start the bot:
python run.pyThe bot will automatically start the setup wizard if no configuration file is found.
(Windows)
- Download the zip file from here
- Extract the zip file and change into the Addarr directory
- Copy or rename
config_example.yamltoconfig.yaml - Edit
config.yamlwith your settings - Run configuration check:
python run.py --check
- Start the bot:
python run.py
- Create a docker-compose.yml file:
version: '3'
services:
addarr:
image: cyneric/addarr
container_name: addarr
volumes:
- /path/to/config:/config
environment:
- TZ=Your/Timezone
- PUID=1000
- PGID=1000
restart: unless-stopped
networks:
- media-network- Start the container:
docker-compose up -ddocker run -d \
--name=addarr \
-v /path/to/config:/config \
-e TZ=Your/Timezone \
-e PUID=1000 \
-e PGID=1000 \
--restart unless-stopped \
cyneric/addarr- Open PowerShell as Administrator
- Navigate to scripts directory:
cd C:\Users\<username>\AppData\Local\Addarr\scripts- Install service:
.\addarr.service.ps1- Manage service:
Start-Service AddarrBot
Stop-Service AddarrBot
Restart-Service AddarrBot
Get-Service AddarrBot- Create user service directory:
mkdir -p ~/.config/systemd/user/- Copy service file:
cp ~/.addarr/scripts/addarr.service ~/.config/systemd/user/- Enable and start service:
systemctl --user daemon-reload
systemctl --user enable addarr
systemctl --user start addarr
loginctl enable-linger $USERThe bot can be controlled through various command-line options:
# Normal startup
python run.py
# Run the interactive setup wizard
python run.py --setup
# Reset the configuration and start from scratch
python run.py --reset
# Create a backup of the current configuration
python run.py --backup
# Check current configuration and service status
python run.py --check
# Show version information
python run.py --version
# Validate translation files
python run.py --validate-i18n
# Show help message and available commands
python run.py --helpaddarr --updatedocker pull cyneric/addarr
docker-compose up -dgit pull
pip install -r requirements.txtAfter installation:
- Run
addarr --setupto configure the bot - Create a Telegram bot through @BotFather
- Configure your Sonarr/Radarr/Lidarr connection details
- Start using the bot!