Skip to content

Commit

Permalink
more packages for arm/v7 build
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGlauser committed Aug 9, 2023
1 parent af8efcd commit e06764b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM python:3.10 as builder
WORKDIR /app/

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

RUN apt-get update && \
apt-get install -y libtiff5-dev libjpeg62-turbo-dev libopenjp2-7-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import os
import sys
from datetime import datetime
Expand Down Expand Up @@ -45,7 +46,7 @@ def loop():
try:
mqtt_client.publish(
f"{os.getenv('MQTT_TOPIC_PREFIX', 'homeassistant')}/{type(sensor).__name__}",
payload=sensor.read_data(),
payload=json.dumps(sensor.read_data()),
retain=True,
)
print(f"[{datetime.utcnow()}] - reading {type(sensor).__name__}")
Expand Down

0 comments on commit e06764b

Please sign in to comment.