mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
Assist (#817)
* Generic voice Assistant * Renaming * Cleanup * add execution * Rename * Fix options * Update readme * Fix args * Fix lint
This commit is contained in:
@@ -3,6 +3,7 @@ ignored:
|
|||||||
- DL3006
|
- DL3006
|
||||||
- DL3007
|
- DL3007
|
||||||
- DL3008
|
- DL3008
|
||||||
|
- DL3013
|
||||||
- DL3018
|
- DL3018
|
||||||
- DL4006
|
- DL4006
|
||||||
- SC2046
|
- SC2046
|
||||||
|
|||||||
35
ada/Dockerfile
Normal file
35
ada/Dockerfile
Normal file
@@ -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"]
|
||||||
53
ada/README.md
Normal file
53
ada/README.md
Normal file
@@ -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
|
||||||
22
ada/azure-pipelines.yml
Normal file
22
ada/azure-pipelines.yml
Normal file
@@ -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'
|
||||||
9
ada/build.json
Normal file
9
ada/build.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"build_from": {
|
||||||
|
"amd64": "homeassistant/amd64-base-debian:buster",
|
||||||
|
"armv7": "homeassistant/armv7-base-debian:buster"
|
||||||
|
},
|
||||||
|
"args": {
|
||||||
|
"ADA_VERSION": "0.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
18
ada/config.json
Normal file
18
ada/config.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
4
ada/data/run.sh
Executable file
4
ada/data/run.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bashio
|
||||||
|
|
||||||
|
|
||||||
|
exec python3 -m ada
|
||||||
Reference in New Issue
Block a user