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

Commit

Permalink
adding beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Apipa169 committed Nov 26, 2019
1 parent 9aaa94c commit 8355139
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 0 deletions.
17 changes: 17 additions & 0 deletions assistant_relay_beta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## 5.7

New image

## 5.6
Update to Assistant Relay v3.0.4:

- Bug fixed in Sandbox JSON creation
- Fixed naming convention in Sandbox

## 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.
39 changes: 39 additions & 0 deletions assistant_relay_beta/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Assistant Relay for Hassio
This add-on brings Assistant Relay (by greghesp) to Hass.io.

> Assistant Relay is a Node.js server that exposes the Google Assistant as a REST API.
> Send Assistant Relay any query you would send the Google Assistant SDK, and get a response back.
> It also supports the Google Home Broadcast command so you can send audio notifications to your Google Home devices, without interrupting music.

### Usage

1. Add https://github.com/Apipa169/Assistant-Relay-for-Hassio in the add-on store.
2. Install the add-on
3. Start the add-on and open the add-on in your browser: http://[IP]:[PORT]
4. Follow the instructions in the browser.
5. You can now use Assistant Relay.


#### Example
Example command to broadcast.
```yaml
# Example configuration.yaml entry
rest_command:
my_broadcast:
url: http://<ip_address>:<port>/assistant
method: POST
headers:
content-type: 'application/json; charset=utf-8'
payload: '{"command":"hello world", "user":"greg", "broadcast":"true"}'
```
*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/
### More info
Check the repository of Assistant Relay for more: https://github.com/greghesp/assistant-relay
18 changes: 18 additions & 0 deletions assistant_relay_beta/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "Assistant Relay",
"version": "0.6",
"slug": "assistant_relay_beta",
"description": "Send (broadcast) commands to your Google Assistant via REST command",
"arch": ["amd64"],
"startup": "before",
"url": "https://github.com/Apipa169/Assistant-Relay-for-Hassio",
"boot": "auto",
"webui":"http://[HOST]:[PORT:3000]",
"options": {
},
"schema": {},
"ports": {
"3000/tcp": 3000
},
"image": "apipa169/{arch}-hassio-assistant_relay"
}
10 changes: 10 additions & 0 deletions assistant_relay_beta/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ARG BUILD_FROM
FROM $BUILD_FROM

ENV LANG C.UTF-8

WORKDIR /assistant_relay

COPY run.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]
Binary file added assistant_relay_beta/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assistant_relay_beta/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assistant_relay_beta/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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 8355139

Please sign in to comment.