Discovery Overseerr integration

This commit is contained in:
Joostlek 2025-01-22 16:31:46 +01:00
parent c295e7530b
commit d67ad83256
6 changed files with 26 additions and 0 deletions

View file

@ -15,5 +15,7 @@ map:
- addon_config:rw - addon_config:rw
- share:rw - share:rw
- media:rw - media:rw
discovery:
- overseerr
ports: ports:
5055/tcp: 5055 5055/tcp: 5055

View file

@ -0,0 +1,22 @@
#!/command/with-contenv bashio
# shellcheck shell=bash
# ==============================================================================
# Home Assistant Community Add-on: Overseerr
# Sends discovery information to Home Assistant.
# ==============================================================================
declare config
# Wait for Overseerr to become available
bashio::net.wait_for 5055 127.0.0.1 300
config=$(\
bashio::var.json \
host "127.0.0.1" \
port "^5055" \
)
if bashio::discovery "overseerr" "${config}" > /dev/null; then
bashio::log.info "Successfully send discovery information to Home Assistant."
else
bashio::log.error "Discovery message to Home Assistant failed!"
fi

View file

@ -0,0 +1 @@
oneshot

View file

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/discovery/run