mirror of
https://github.com/hassio-addons/addon-overseerr.git
synced 2025-05-04 19:41:23 +00:00
Discovery Overseerr integration
This commit is contained in:
parent
c295e7530b
commit
d67ad83256
6 changed files with 26 additions and 0 deletions
|
@ -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
|
||||||
|
|
22
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/run
Executable file
22
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/run
Executable 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
|
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/type
Normal file
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/type
Normal file
|
@ -0,0 +1 @@
|
||||||
|
oneshot
|
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/up
Normal file
1
overseerr/rootfs/etc/s6-overlay/s6-rc.d/discovery/up
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/etc/s6-overlay/s6-rc.d/discovery/run
|
Loading…
Add table
Add a link
Reference in a new issue