Getting Started¶
Prerequisites¶
- Go 1.27+ — download
- A C toolchain — the SQLite driver (
mattn/go-sqlite3) is cgo-based;CGO_ENABLED=1(the default when a C compiler is onPATH) is required to build - A Tunarr instance — setup guide
Install¶
Option 1: build from source¶
git clone https://github.com/christopherime/schedularr.git
cd schedularr
go build -o schedularr main.go
# Optional: install to your PATH
sudo mv schedularr /usr/local/bin/
Option 2: go install¶
go install github.com/christopherime/schedularr@latest
Option 3: Docker¶
No local Go, Hugo, or Node needed — see Deployment for the full docker run reference.
docker build -t schedularr:local .
Initial setup¶
- Generate configuration files:
# Application config
schedularr config generate config.yaml
# Scheduler config (first-run block import — see Scheduling Concepts)
schedularr scheduler init scheduler.yaml
- Configure the Tunarr connection.
config generate writes tunarr.url/tunarr.api_key as literal ${SCHEDULARR_TUNARR_URL}/${SCHEDULARR_TUNARR_API_KEY} placeholders (CUE-loaded config files support ${VAR} env interpolation — see Deployment's config reference). Either export those two environment variables, or edit config.yaml directly and replace both with literal values (an unset ${VAR} simply becomes an empty string):
tunarr:
url: "http://localhost:8000"
api_key: ""
log:
level: "info"
format: "text"
- Validate the configuration:
schedularr validate config.yaml
schedularr validate scheduler.yaml
- Verify the Tunarr connection:
schedularr --config config.yaml channels
Next steps¶
- Read Scheduling Concepts to write your first blocks.
- Run
schedularr generateto preview a schedule, thenschedularr generate --apply --yesto push it to Tunarr — see the CLI Reference. - Run
schedularr servefor the HTTP API and web UI — see the Web UI Guide.