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

Commit

Permalink
arm7 fix (RaspberryPi)
Browse files Browse the repository at this point in the history
Moving to a different base image to support armv7 (Raspberry Pi).
  • Loading branch information
Apipa169 committed Nov 7, 2019
1 parent ab9b6c9 commit 9aaa94c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions assistant_relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.5
Moving to a different base image to support armv7 (Raspberry Pi).

## 5.4:
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.
2 changes: 1 addition & 1 deletion assistant_relay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rest_command:
payload: '{"command":"hello world", "user":"greg", "broadcast":"true"}'
```
*User needs to be de user you used in the setup.*
*User needs to be the user you used in the setup.*
How to use Home Assistant's RESTful command check: https://www.home-assistant.io/integrations/rest_command/
Expand Down
6 changes: 3 additions & 3 deletions assistant_relay/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Assistant Relay",
"version": "0.5.4",
"version": "0.5.5",
"slug": "assistant_relay",
"description": "Send (broadcast) commands to your Google Assistant via REST command",
"arch": ["armhf", "aarch64", "amd64", "i386"],
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "before",
"url": "https://github.com/Apipa169/Assistant-Relay-for-Hassio",
"boot": "auto",
Expand All @@ -14,4 +14,4 @@
"ports": {
"3000/tcp": 3000
}
}
}
8 changes: 4 additions & 4 deletions assistant_relay/dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG BUILD_FROM
FROM $BUILD_FROM
FROM node

ENV LANG C.UTF-8

RUN apk add --no-cache npm \
&& npm i pm2 -g \
&& mkdir /assistant_relay

RUN mkdir /assistant_relay \
&& npm i pm2 -g

WORKDIR /assistant_relay

Expand Down
8 changes: 6 additions & 2 deletions assistant_relay/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
DIR="/data/audio-responses"
if [ ! -d "$DIR" ]; then
cd /assistant_relay

ARDIR="/data/audio-responses"
if [ ! -d "$ARDIR" ]; 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 9aaa94c

Please sign in to comment.