Skip to content
This repository has been archived by the owner on Jan 14, 2023. It is now read-only.

Commit

Permalink
Fixing audio responses in the webui
Browse files Browse the repository at this point in the history
  • Loading branch information
Apipa169 committed Nov 6, 2019
1 parent 912ba3c commit b31be6c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 3 additions & 2 deletions assistant_relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
First release!
- Fix URL of help page
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.
4 changes: 2 additions & 2 deletions assistant_relay/config.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions assistant_relay/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 /
Expand Down
5 changes: 5 additions & 0 deletions assistant_relay/run.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b31be6c

Please sign in to comment.