Skip to content

Commit

Permalink
support commands
Browse files Browse the repository at this point in the history
  • Loading branch information
wozz committed Oct 4, 2024
1 parent fdf1edf commit 1c0407a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion juicepassproxy/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**juicebox_device_name**: Set this field to the name of the device given in the Enel X Way app.

**debug**: Enable debug loggin
**debug**: Enable debug logging

# Setup

Expand Down
6 changes: 5 additions & 1 deletion juicepassproxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
ARG BUILD_ARCH
ARG BUILD_ARCH="aarch64"
FROM ghcr.io/home-assistant/${BUILD_ARCH}-base-python:3.12-alpine3.19
# WARNING: Do not update python past 3.12.* if telnetlib is still being used.

ENV DEBUG=false

RUN apk --no-cache add git

ARG JPP_VERSION="v0.3.1"
RUN curl -J -L -o /tmp/jpp.tar.gz \
"https://github.com/snicker/juicepassproxy/archive/refs/tags/${JPP_VERSION}.tar.gz" \
&& mkdir /tmp/jpp \
&& tar zxvf \
/tmp/jpp.tar.gz \
--strip 1 -C /tmp/jpp \
&& curl -L -o /tmp/69.patch "https://github.com/snicker/juicepassproxy/compare/master...juicebox_commands.diff" \
&& cd /tmp/jpp && git apply /tmp/69.patch && cd /tmp \
&& mv /tmp/jpp /juicepassproxy \
&& pip install --root-user-action=ignore --no-cache-dir -r /juicepassproxy/requirements.txt && \
chmod -f +x /juicepassproxy/*.sh && \
Expand Down
4 changes: 2 additions & 2 deletions juicepassproxy/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "JuicePassProxy"
description: "This tool will publish JuiceBox data by using a Man in the Middle UDP proxy to MQTT that is auto-discoverable by HomeAssistant."
version: "0.1.3"
version: "0.2.0"
image: ghcr.io/wozz/ha-addons/juicepassproxy-{arch}
slug: "juicepassproxy"
ports:
Expand All @@ -18,7 +18,7 @@ options:
juicebox_host: null
juicebox_device_name: JuiceBox
debug: false
ignore_enelx: false
ignore_enelx: true
schema:
juicebox_host: str
juicebox_device_name: str
Expand Down

0 comments on commit 1c0407a

Please sign in to comment.