From 9aaa94c8013192d0b190d28173b478e9f283337a Mon Sep 17 00:00:00 2001 From: Apipa169 <44235469+Apipa169@users.noreply.github.com> Date: Thu, 7 Nov 2019 20:47:03 +0100 Subject: [PATCH] arm7 fix (RaspberryPi) Moving to a different base image to support armv7 (Raspberry Pi). --- assistant_relay/CHANGELOG.md | 4 ++++ assistant_relay/README.md | 2 +- assistant_relay/config.json | 6 +++--- assistant_relay/dockerfile | 8 ++++---- assistant_relay/run.sh | 8 ++++++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/assistant_relay/CHANGELOG.md b/assistant_relay/CHANGELOG.md index 2089eb1..4d96064 100755 --- a/assistant_relay/CHANGELOG.md +++ b/assistant_relay/CHANGELOG.md @@ -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. \ No newline at end of file diff --git a/assistant_relay/README.md b/assistant_relay/README.md index f481eb6..3b928d0 100755 --- a/assistant_relay/README.md +++ b/assistant_relay/README.md @@ -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/ diff --git a/assistant_relay/config.json b/assistant_relay/config.json index a684a99..a660919 100755 --- a/assistant_relay/config.json +++ b/assistant_relay/config.json @@ -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", @@ -14,4 +14,4 @@ "ports": { "3000/tcp": 3000 } -} +} \ No newline at end of file diff --git a/assistant_relay/dockerfile b/assistant_relay/dockerfile index 6764e27..bfca693 100755 --- a/assistant_relay/dockerfile +++ b/assistant_relay/dockerfile @@ -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 diff --git a/assistant_relay/run.sh b/assistant_relay/run.sh index e270ddc..4f5ec5d 100755 --- a/assistant_relay/run.sh +++ b/assistant_relay/run.sh @@ -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 \ No newline at end of file