Update script.sh

This commit is contained in:
wjansenw
2021-02-01 15:57:24 +01:00
committed by GitHub
parent ba589f9c03
commit fc99d2e66d
+38 -38
View File
@@ -1,42 +1,42 @@
#!/usr/bin/with-contenv bashio
export gverbose="$(bashio::config 'gverbose')"
export gminrecl="$(bashio::config 'gminrecl')"
export gmode="$(bashio::config 'gmode')"
export ggrottip="$(bashio::config 'ggrottip')"
export ggrottport="$(bashio::config 'ggrottport')"
export gblockcmd="$(bashio::config 'gblockcmd')"
export gnoipf="$(bashio::config 'gnoipf')"
export gtime="$(bashio::config 'gtime')"
export gsendbuf="$(bashio::config 'gsendbuf')"
export gcompat="$(bashio::config 'gcompat')"
export gvalueoffset="$(bashio::config 'gvalueoffset')"
export ginverterid="$(bashio::config 'ginverterid')"
export gdecrypt="$(bashio::config 'gdecrypt')"
export ggrowattip="$(bashio::config 'ggrowattip')"
export ggrowattport="$(bashio::config 'ggrowattport')"
export gnomqtt="$(bashio::config 'gnomqtt')"
export gmqttip="$(bashio::config 'gmqttip')"
export gmqttport="$(bashio::config 'gmqttport')"
export gmqtttopic="$(bashio::config 'gmqtttopic')"
export gmqttauth="$(bashio::config 'gmqttauth')"
export gmqttuser="$(bashio::config 'gmqttuser')"
export gmqttpassword="$(bashio::config 'gmqttpassword')"
export gpvoutput="$(bashio::config 'gpvoutput')"
export gpvapikey="$(bashio::config 'gpvapikey')"
export gpvsystemid="$(bashio::config 'gpvsystemid')"
export ginflux="$(bashio::config 'ginflux')"
export ginflux2="$(bashio::config 'ginflux2')"
export gifdbname="$(bashio::config 'gifdbname')"
export gifip="$(bashio::config 'gifip')"
export gifport="$(bashio::config 'gifport')"
export gifuser="$(bashio::config 'gifuser')"
export gifpassword="$(bashio::config 'gifpassword')"
export giforg="$(bashio::config 'giforg')"
export gifbucket="$(bashio::config 'gifbucket')"
export giftoken="$(bashio::config 'giftoken')"
export gextension="$(bashio::config 'gextension')"
export gextname="$(bashio::config 'gextname')"
export gextvar="$(bashio::config 'gextvar')"
if [[ bashio::config.has_value 'gverbose']]; then export gverbose="$(bashio::config 'gverbose')" fi
if [[ bashio::config.has_value 'gminrecl']]; then export gminrecl="$(bashio::config 'gminrecl')" fi
if [[ bashio::config.has_value 'gmode']]; then export gmode="$(bashio::config 'gmode')" fi
if [[ bashio::config.has_value 'ggrottip']]; then export ggrottip="$(bashio::config 'ggrottip')" fi
if [[ bashio::config.has_value 'ggrottport']]; then export ggrottport="$(bashio::config 'ggrottport')" fi
if [[ bashio::config.has_value 'gblockcmd']]; then export gblockcmd="$(bashio::config 'gblockcmd')" fi
if [[ bashio::config.has_value 'gnoipf']]; then export gnoipf="$(bashio::config 'gnoipf')" fi
if [[ bashio::config.has_value 'gtime']]; then export gtime="$(bashio::config 'gtime')" fi
if [[ bashio::config.has_value 'gsendbuf']]; then export gsendbuf="$(bashio::config 'gsendbuf')" fi
if [[ bashio::config.has_value 'gcompat']]; then export gcompat="$(bashio::config 'gcompat')" fi
if [[ bashio::config.has_value 'gvalueoffset']]; then export gvalueoffset="$(bashio::config 'gvalueoffset')" fi
if [[ bashio::config.has_value 'ginverterid']]; then export ginverterid="$(bashio::config 'ginverterid')" fi
if [[ bashio::config.has_value 'gdecrypt']]; then export gdecrypt="$(bashio::config 'gdecrypt')" fi
if [[ bashio::config.has_value 'ggrowattip']]; then export ggrowattip="$(bashio::config 'ggrowattip')" fi
if [[ bashio::config.has_value 'ggrowattport']]; then export ggrowattport="$(bashio::config 'ggrowattport')" fi
if [[ bashio::config.has_value 'gnomqtt']]; then export gnomqtt="$(bashio::config 'gnomqtt')" fi
if [[ bashio::config.has_value 'gmqttip']]; then export gmqttip="$(bashio::config 'gmqttip')" fi
if [[ bashio::config.has_value 'gmqttport']]; then export gmqttport="$(bashio::config 'gmqttport')" fi
if [[ bashio::config.has_value 'gmqtttopic']]; then export gmqtttopic="$(bashio::config 'gmqtttopic')" fi
if [[ bashio::config.has_value 'gmqttauth']]; then export gmqttauth="$(bashio::config 'gmqttauth')" fi
if [[ bashio::config.has_value 'gmqttuser']]; then export gmqttuser="$(bashio::config 'gmqttuser')" fi
if [[ bashio::config.has_value 'gmqttpassword']]; then export gmqttpassword="$(bashio::config 'gmqttpassword')" fi
if [[ bashio::config.has_value 'gpvoutput']]; then export gpvoutput="$(bashio::config 'gpvoutput')" fi
if [[ bashio::config.has_value 'gpvapikey']]; then export gpvapikey="$(bashio::config 'gpvapikey')" fi
if [[ bashio::config.has_value 'gpvsystemid']]; then export gpvsystemid="$(bashio::config 'gpvsystemid')" fi
if [[ bashio::config.has_value 'ginflux']]; then export ginflux="$(bashio::config 'ginflux')" fi
if [[ bashio::config.has_value 'ginflux2']]; then export ginflux2="$(bashio::config 'ginflux2')" fi
if [[ bashio::config.has_value 'gifdbname']]; then export gifdbname="$(bashio::config 'gifdbname')" fi
if [[ bashio::config.has_value 'gifip']]; then export gifip="$(bashio::config 'gifip')" fi
if [[ bashio::config.has_value 'gifport']]; then export gifport="$(bashio::config 'gifport')" fi
if [[ bashio::config.has_value 'gifuser']]; then export gifuser="$(bashio::config 'gifuser')" fi
if [[ bashio::config.has_value 'gifpassword']]; then export gifpassword="$(bashio::config 'gifpassword')" fi
if [[ bashio::config.has_value 'giforg']]; then export giforg="$(bashio::config 'giforg')" fi
if [[ bashio::config.has_value 'gifbucket']]; then export gifbucket="$(bashio::config 'gifbucket')" fi
if [[ bashio::config.has_value 'giftoken']]; then export giftoken="$(bashio::config 'giftoken')" fi
if [[ bashio::config.has_value 'gextension']]; then export gextension="$(bashio::config 'gextension')" fi
if [[ bashio::config.has_value 'gextname']]; then export gextname="$(bashio::config 'gextname')" fi
if [[ bashio::config.has_value 'gextvar']]; then export gextvar="$(bashio::config 'gextvar')" fi
python -u grott.py -v