Initial commit: SIP Voice Notifier v2 - single add-on with integrated service
This commit is contained in:
16
sip-notifier/run.sh
Normal file
16
sip-notifier/run.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
|
||||
bashio::log.info "Starting SIP Voice Notifier..."
|
||||
|
||||
# Get config from add-on options
|
||||
SIP_SERVER=$(bashio::config 'sip_server')
|
||||
SIP_USER=$(bashio::config 'sip_user')
|
||||
SIP_PASSWORD=$(bashio::config 'sip_password')
|
||||
DEFAULT_DURATION=$(bashio::config 'default_duration')
|
||||
|
||||
bashio::log.info "SIP Server: ${SIP_SERVER}"
|
||||
bashio::log.info "SIP User: ${SIP_USER}"
|
||||
bashio::log.info "Default Duration: ${DEFAULT_DURATION}s"
|
||||
|
||||
# Start the service
|
||||
exec python3 /app/sip_service.py
|
||||
Reference in New Issue
Block a user