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

Commit

Permalink
Added avea_server
Browse files Browse the repository at this point in the history
  • Loading branch information
pattyland committed Jun 24, 2018
1 parent 9f53e53 commit 5c1873e
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
28 changes: 28 additions & 0 deletions avea_server/Dockerfile
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" ]
6 changes: 6 additions & 0 deletions avea_server/README.md
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!
16 changes: 16 additions & 0 deletions avea_server/config.json
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
}
}
3 changes: 3 additions & 0 deletions avea_server/run.sh
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

0 comments on commit 5c1873e

Please sign in to comment.