This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
forked from home-assistant/addons-example
-
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.
- Loading branch information
Showing
4 changed files
with
53 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
ARG BUILD_FROM | |||
FROM $BUILD_FROM | |||
|
|||
ENV LANG C.UTF-8 | |||
|
|||
# Install requirements for add-on | |||
RUN apk add --no-cache git nodejs nodejs-npm python make g++ linux-headers bluez bluez-deprecated | |||
|
|||
# Install avea server | |||
RUN cd /root && export GIT_SSL_NO_VERIFY=1 && \ | |||
git config --global http.sslVerify false && \ | |||
git clone https://github.com/Marmelatze/avea_server.git | |||
|
|||
WORKDIR /root/avea_server | |||
RUN cd /root/avea_server && npm install | |||
|
|||
# Install avea_bulb server branch | |||
RUN rm -R /root/avea_server/node_modules/avea_bulb | |||
RUN cd /root/avea_server/node_modules && \ | |||
git clone https://github.com/Marmelatze/avea_bulb.git --branch avea_server | |||
|
|||
WORKDIR /root/avea_server | |||
|
|||
# Copy data for add-on | |||
COPY run.sh / | |||
RUN chmod a+x /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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
# Avea Server | |||
|
|||
Addon to expose Elgato [Avea Bulbs](https://web.archive.org/web/20160706175035/https://www.elgato.com/en/avea) via a REST API. | |||
Based on [Avea Server](https://github.com/Marmelatze/avea_server) and [Avea Bulb](https://github.com/Marmelatze/avea_bulb) | |||
|
|||
Note: Please exit all Avea iOS/Android apps and disconnect the Avea bulb from the power before installing! |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
{ | |||
"name": "Avea Server", | |||
"version": "0.1", | |||
"slug": "avea_server", | |||
"description": "Addon to expose Elgato Avea Bulbs via REST API", | |||
"url": "https://community.home-assistant.io/t/avea-server-for-elgato-avea-bulb/12618?u=pattyland", | |||
"webui": "http://[HOST]:[PORT:3000]/api/bulbs", | |||
"startup": "application", | |||
"boot": "auto", | |||
"host_network": "true", | |||
"options": {}, | |||
"schema": {}, | |||
"ports": { | |||
"3000/tcp": 3000 | |||
} | |||
} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
#!/bin/bash | |||
hcitool dev | |||
node /root/avea_server/index.js |