primo caricamento
This commit is contained in:
commit
d30984adfe
15 changed files with 658 additions and 0 deletions
25
concentratore/run.sh
Normal file
25
concentratore/run.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/with-contenv bashio
|
||||
# Legge le opzioni impostate dall'interfaccia dell'add-on e avvia il concentratore.
|
||||
|
||||
GATEWAY=$(bashio::config 'gateway')
|
||||
PORTA=$(bashio::config 'gateway_porta')
|
||||
SLAVES=$(bashio::config 'slaves')
|
||||
REFRESH=$(bashio::config 'refresh')
|
||||
TIMEOUT=$(bashio::config 'timeout')
|
||||
|
||||
ZITTO=""
|
||||
if ! bashio::config.true 'log'; then
|
||||
ZITTO="--zitto"
|
||||
fi
|
||||
|
||||
bashio::log.info "Gateway ${GATEWAY}:${PORTA} - inverter ${SLAVES} - rinfresco ${REFRESH}s"
|
||||
|
||||
exec python3 /concentratore.py \
|
||||
--gateway "${GATEWAY}" \
|
||||
--gateway-porta "${PORTA}" \
|
||||
--slaves "${SLAVES}" \
|
||||
--refresh "${REFRESH}" \
|
||||
--timeout "${TIMEOUT}" \
|
||||
--host 0.0.0.0 \
|
||||
--porta 5020 \
|
||||
${ZITTO}
|
||||
Loading…
Add table
Add a link
Reference in a new issue