Get started
Entware package
The opkg package installs warmup-rs and its systemd units on a CoreELEC box with Entware. Upgrades keep your settings and your API key.
Before you start
- An arm64 box. The feed has one package, for Entware's
aarch64-k3.10architecture. Runopkg print-architectureto check yours. - Entware. On CoreELEC, run
installentwareand reboot. - TMDBHelper, installed and run once, so
ItemDetails.dbexists. - A USB SSD, mounted at
/var/media/CACHE_DRIVE. To use other locations, set the paths in the settings file.
Install
The feed uses HTTPS, so opkg needs wget-ssl and ca-bundle first:
opkg update
opkg install wget-ssl ca-bundle
echo 'src/gz warmup-rs https://appz4fun.github.io/tmdbhelper/opkg/aarch64-k3.10' >> /opt/etc/opkg.conf
opkg update
opkg install warmup-rs
The package installs:
| Path | What it is |
|---|---|
/opt/bin/warmup-rs |
The static binary. |
/opt/etc/warmup-rs.env |
The settings file, readable only by root. |
/storage/.config/system.d/tmdbhelper-warmup-rs.service |
The metadata crawl. |
/storage/.config/system.d/tmdbhelper-warmup-images.service |
The image crawl. |
Start the crawls
A new install starts nothing, because the services need your TMDB API key first.
-
Open
/opt/etc/warmup-rs.env, remove the#from theWARMUP_TMDB_API_KEYline, and add your key. -
Create the folder for the crawl queue:
bashmkdir -p /var/media/CACHE_DRIVE/tmdb/scriptcache -
Start the services, and keep them running after a reboot:
bashsystemctl enable --now tmdbhelper-warmup-rs tmdbhelper-warmup-images
See Operate for logs and progress.
Systems without systemd
On an Entware system without systemd, the package doesn't install the units. Two init scripts in /opt/etc/init.d run the crawls instead:
| Script | Crawl |
|---|---|
S90warmup-rs |
The metadata crawl. |
S91warmup-images |
The image crawl. |
Both scripts start turned off. To run them:
-
Add your TMDB API key to
/opt/etc/warmup-rs.env. -
In each script, change
ENABLED=notoENABLED=yes. Entware then starts the crawls at boot. -
Start the crawls now:
bash/opt/etc/init.d/S90warmup-rs start /opt/etc/init.d/S91warmup-images start
Each script also takes stop, restart, and check. The logs are in /opt/var/log. Unless the settings file sets other paths, the databases and images go in /opt/var/lib/warmup-rs/output. Upgrades keep your ENABLED setting and restart any crawl that's running.
Change the settings
Each line in /opt/etc/warmup-rs.env sets one environment variable from Command-line options. After you change the file, restart the services:
systemctl restart tmdbhelper-warmup-rs tmdbhelper-warmup-images
Upgrade
opkg update
opkg upgrade warmup-rs
An upgrade restarts any service that's running, and enabled services stay enabled.
Remove
opkg remove warmup-rs
This stops and disables the services and removes the units and the binary. It keeps your edited settings file and all the caches. Delete /opt/etc/warmup-rs.env by hand if you don't plan to reinstall, because it holds your API key.
Build the package yourself
just build-opkg writes the package and a feed to target/opkg/aarch64-k3.10. To install that package without a feed, copy the .ipk file to the box and run opkg install with its path.