diff --git a/assistant_relay/CHANGELOG.md b/assistant_relay/CHANGELOG.md index dcea2f4..2089eb1 100755 --- a/assistant_relay/CHANGELOG.md +++ b/assistant_relay/CHANGELOG.md @@ -1,2 +1,3 @@ -First release! -- Fix URL of help page \ No newline at end of file +This update changes the location of the audio responses which are showed in the webinterface. This fix the issue that they get lost after en restart or update. + +It is not required to do the setup again to keep using this addon, but to get the audio responses in the webinterface working you have to reinstall and reconfigure. \ No newline at end of file diff --git a/assistant_relay/config.json b/assistant_relay/config.json index 0b5fe77..ceae965 100755 --- a/assistant_relay/config.json +++ b/assistant_relay/config.json @@ -1,8 +1,8 @@ { "name": "Assistant Relay", - "version": "0.5.3", + "version": "0.5.4", "slug": "assistant_relay", - "description": "Send commands to your Google Assistant via REST command", + "description": "Send (broadcast) commands to your Google Assistant via REST command", "arch": ["armhf", "armv7", "aarch64", "amd64", "i386"], "startup": "before", "url": "https://github.com/Apipa169/Assistant-Relay-for-Hassio", diff --git a/assistant_relay/dockerfile b/assistant_relay/dockerfile index 271841d..6764e27 100755 --- a/assistant_relay/dockerfile +++ b/assistant_relay/dockerfile @@ -18,6 +18,10 @@ RUN wget https://github.com/greghesp/assistant-relay/releases/download/v3.0.3/re && sed -i -e 's#./bin/config.json#/data/config.json#g' /assistant_relay/routes/index.js \ && sed -i -e 's#./bin/config.json#/data/config.json#g' /assistant_relay/routes/server.js \ && sed -i -e 's#./bin/config.json#/data/config.json#g' /assistant_relay/bin/www \ +&& sed -i -e 's#./bin/config.json#/data/config.json#g' /assistant_relay/routes/server.js \ +&& sed -i -e 's#../bin/audio-responses/#/data/audio-responses/#g' /assistant_relay/helpers/server.js \ +&& sed -i -e 's#../bin/audio-responses/#/data/audio-responses/#g' /assistant_relay/routes/server.js \ +&& sed -i -e 's#bin/audio-responses/#/data/audio-responses/#g' /assistant_relay/helpers/server.js \ && npm i COPY run.sh / diff --git a/assistant_relay/run.sh b/assistant_relay/run.sh index 0671437..e270ddc 100755 --- a/assistant_relay/run.sh +++ b/assistant_relay/run.sh @@ -1,3 +1,8 @@ +DIR="/data/audio-responses" +if [ ! -d "$DIR" ]; then + echo Creating an audio-responses folder... This needs to be done once. + mkdir /data/audio-responses +fi cd /assistant_relay echo Assistant Relay is now starting... npm run start \ No newline at end of file