Skip to content

Commit

Permalink
feat: add dsmr_datalogger_api_client.py and update scripts to use abs…
Browse files Browse the repository at this point in the history
…olute paths
  • Loading branch information
sanderdw committed Jan 2, 2025
1 parent a42bd56 commit 0af7516
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
3 changes: 1 addition & 2 deletions dsmr_datalogger/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BUILD_FROM
ARG BUILD_FROM=busybox:dummy
FROM $BUILD_FROM
ARG BUILD_ARCH
ARG HA_RELEASE
Expand All @@ -7,7 +7,6 @@ ENV LANG=C.UTF-8
# Copy data for add-on
COPY config.json /app/ha_addon_version.json
COPY rootfs /
COPY dsmr_datalogger_api_client.py /run/s6/legacy-services/example/dsmr_datalogger_api_client.py
COPY requirements.txt /
RUN mkdir -p /etc/dsmr_logs
RUN pip install --no-cache-dir -r requirements.txt
Expand Down
6 changes: 1 addition & 5 deletions dsmr_datalogger/rootfs/etc/services.d/example/run
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,4 @@ function _hass {
_hass

## Run your program
_info "EXEC"
pwd
python -V
python /run/s6/legacy-services/example/dsmr_datalogger_api_client.py
_info "EXEC"
exec /usr/bin/my_program
4 changes: 1 addition & 3 deletions dsmr_datalogger/rootfs/usr/bin/my_program
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/bash

pwd
python -V
python /run/s6/legacy-services/example/dsmr_datalogger_api_client.py
python /usr/bin/dsmr_datalogger_api_client.py

0 comments on commit 0af7516

Please sign in to comment.