Skip to content
This repository was archived by the owner on Apr 25, 2019. It is now read-only.

Commit 5c1873e

Browse files
committed
Added avea_server
1 parent 9f53e53 commit 5c1873e

4 files changed

Lines changed: 53 additions & 0 deletions

File tree

avea_server/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
ARG BUILD_FROM
2+
FROM $BUILD_FROM
3+
4+
ENV LANG C.UTF-8
5+
6+
# Install requirements for add-on
7+
RUN apk add --no-cache git nodejs nodejs-npm python make g++ linux-headers bluez bluez-deprecated
8+
9+
# Install avea server
10+
RUN cd /root && export GIT_SSL_NO_VERIFY=1 && \
11+
git config --global http.sslVerify false && \
12+
git clone https://github.com/Marmelatze/avea_server.git
13+
14+
WORKDIR /root/avea_server
15+
RUN cd /root/avea_server && npm install
16+
17+
# Install avea_bulb server branch
18+
RUN rm -R /root/avea_server/node_modules/avea_bulb
19+
RUN cd /root/avea_server/node_modules && \
20+
git clone https://github.com/Marmelatze/avea_bulb.git --branch avea_server
21+
22+
WORKDIR /root/avea_server
23+
24+
# Copy data for add-on
25+
COPY run.sh /
26+
RUN chmod a+x /run.sh
27+
28+
CMD [ "/run.sh" ]

avea_server/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Avea Server
2+
3+
Addon to expose Elgato [Avea Bulbs](https://web.archive.org/web/20160706175035/https://www.elgato.com/en/avea) via a REST API.
4+
Based on [Avea Server](https://github.com/Marmelatze/avea_server) and [Avea Bulb](https://github.com/Marmelatze/avea_bulb)
5+
6+
Note: Please exit all Avea iOS/Android apps and disconnect the Avea bulb from the power before installing!

avea_server/config.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Avea Server",
3+
"version": "0.1",
4+
"slug": "avea_server",
5+
"description": "Addon to expose Elgato Avea Bulbs via REST API",
6+
"url": "https://community.home-assistant.io/t/avea-server-for-elgato-avea-bulb/12618?u=pattyland",
7+
"webui": "http://[HOST]:[PORT:3000]/api/bulbs",
8+
"startup": "application",
9+
"boot": "auto",
10+
"host_network": "true",
11+
"options": {},
12+
"schema": {},
13+
"ports": {
14+
"3000/tcp": 3000
15+
}
16+
}

avea_server/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
hcitool dev
3+
node /root/avea_server/index.js

0 commit comments

Comments
 (0)