Skip to content

Commit

Permalink
Assist (#817)
Browse files Browse the repository at this point in the history
* Generic voice Assistant

* Renaming

* Cleanup

* add execution

* Rename

* Fix options

* Update readme

* Fix args

* Fix lint
  • Loading branch information
pvizeli committed Nov 7, 2019
1 parent 8d22ca9 commit d865c24
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 0 deletions.
1 change: 1 addition & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ignored:
- DL3006
- DL3007
- DL3008
- DL3013
- DL3018
- DL4006
- SC2046
35 changes: 35 additions & 0 deletions ada/Dockerfile
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"]
53 changes: 53 additions & 0 deletions ada/README.md
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
22 changes: 22 additions & 0 deletions ada/azure-pipelines.yml
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'
9 changes: 9 additions & 0 deletions ada/build.json
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"
}
}
18 changes: 18 additions & 0 deletions ada/config.json
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"
}
4 changes: 4 additions & 0 deletions ada/data/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bashio


exec python3 -m ada

0 comments on commit d865c24

Please sign in to comment.