-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,7 @@ map: | |
- addon_config:rw | ||
- share:rw | ||
- media:rw | ||
discovery: | ||
- overseerr | ||
ports: | ||
5055/tcp: 5055 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
oneshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/etc/s6-overlay/s6-rc.d/discovery/run |
Empty file.