forked from home-assistant/addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Generic voice Assistant * Renaming * Cleanup * add execution * Rename * Fix options * Update readme * Fix args * Fix lint
- Loading branch information
Showing
7 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ ignored: | |
- DL3006 | ||
- DL3007 | ||
- DL3008 | ||
- DL3013 | ||
- DL3018 | ||
- DL4006 | ||
- SC2046 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
ARG BUILD_FROM | ||
FROM ${BUILD_FROM} | ||
|
||
# Install Dude | ||
WORKDIR /usr/src/ada | ||
ARG ADA_VERSION | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
portaudio19-dev \ | ||
libsndfile1 \ | ||
mplayer \ | ||
libffi-dev \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
git \ | ||
build-essential \ | ||
\ | ||
&& git clone --depth 1 -b ${ADA_VERSION} https://github.com/home-assistant/dude . \ | ||
&& rm -rf .git \ | ||
&& pip3 install -U setuptools wheel \ | ||
&& pip3 install -r requirements.txt \ | ||
&& pip3 install -e . \ | ||
&& python3 -m compileall dude \ | ||
\ | ||
&& apt-get purge -y --auto-remove \ | ||
git \ | ||
build-essential \ | ||
python3-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
COPY data/run.sh / | ||
|
||
CMD ["/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Hass.io Core Add-on: Ada | ||
|
||
Home Assistant featured voice assist. | ||
|
||
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield] ![Supports i386 Architecture][i386-shield] | ||
|
||
## About | ||
|
||
## Installation | ||
|
||
The installation of this add-on is straightforward and easy to do. | ||
|
||
1. Navigate in your Home Assistant frontend to **Hass.io** -> **Add-on Store**. | ||
2. Find the "Almond" add-on and click it. | ||
3. Click on the "INSTALL" button. | ||
|
||
## How to use | ||
|
||
The basic thing to get the add-on running would be: | ||
|
||
1. Start the add-on. | ||
|
||
## Configuration | ||
|
||
Example add-on configuration: | ||
|
||
```json | ||
{ | ||
} | ||
``` | ||
|
||
## Support | ||
|
||
Got questions? | ||
|
||
You have several options to get them answered: | ||
|
||
- The [Home Assistant Discord Chat Server][discord]. | ||
- The Home Assistant [Community Forum][forum]. | ||
- Join the [Reddit subreddit][reddit] in [/r/homeassistant][reddit] | ||
|
||
In case you've found an bug, please [open an issue on our GitHub][issue]. | ||
|
||
[aarch64-shield]: https://img.shields.io/badge/aarch64-no-red.svg | ||
[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg | ||
[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg | ||
[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg | ||
[discord]: https://discord.gg/c5DvZ4e | ||
[forum]: https://community.home-assistant.io | ||
[i386-shield]: https://img.shields.io/badge/i386-no-red.svg | ||
[issue]: https://github.com/home-assistant/hassio-addons/issues | ||
[reddit]: https://reddit.com/r/homeassistant | ||
[repository]: https://github.com/hassio-addons/repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# https://dev.azure.com/home-assistant | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- ada/* | ||
pr: none | ||
|
||
variables: | ||
- name: versionBuilder | ||
value: '2.0' | ||
- group: docker | ||
|
||
|
||
jobs: | ||
- template: /.azure/azp-template-addon.yml | ||
parameters: | ||
addon: 'ada' | ||
arch: '--amd64 --armv7' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"build_from": { | ||
"amd64": "homeassistant/amd64-base-debian:buster", | ||
"armv7": "homeassistant/armv7-base-debian:buster" | ||
}, | ||
"args": { | ||
"ADA_VERSION": "0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "Hey Ada!", | ||
"version": "0.1", | ||
"slug": "ada", | ||
"description": "Home Assistant featured voice assist", | ||
"url": "https://home-assistant.io/addons/ada/", | ||
"arch": ["armv7", "amd64"], | ||
"startup": "application", | ||
"boot": "auto", | ||
"audio": true, | ||
"homeassistant": "0.102.0.dev", | ||
"homeassistant_api": true, | ||
"options": { | ||
}, | ||
"schema": { | ||
}, | ||
"image": "homeassistant/{arch}-addon-ada" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bashio | ||
|
||
|
||
exec python3 -m ada |