Skip to content
Permalink
Browse files

Added avea_server

  • Loading branch information...
pattyland committed Jun 24, 2018
1 parent 9f53e53 commit 5c1873e412a66b4c7df122121685cf23f8c44ece
Showing with 53 additions and 0 deletions.
  1. +28 −0 avea_server/Dockerfile
  2. +6 −0 avea_server/README.md
  3. +16 −0 avea_server/config.json
  4. +3 −0 avea_server/run.sh
@@ -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" ]
@@ -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!
@@ -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
}
}
@@ -0,0 +1,3 @@
#!/bin/bash
hcitool dev
node /root/avea_server/index.js

0 comments on commit 5c1873e

Please sign in to comment.
You can’t perform that action at this time.