Skip to content

Commit

Permalink
fix: update to work with 1.3 firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
PovilasID committed Dec 4, 2023
1 parent 546a1aa commit 2ed19f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM python:3.11-slim-bullseye AS builder
RUN apt-get update; apt-get -y upgrade; apt-get clean; apt-get install binutils -y
RUN apt-get update; apt-get -y upgrade; apt-get clean; apt-get install binutils git -y

# Default port
ENV PORT=9333

RUN pip3 install --no-cache-dir PyInstaller loguru prometheus_client PyP100 click pyyaml
RUN pip3 install --no-cache-dir PyInstaller loguru prometheus_client click pyyaml
RUN pip3 install git+https://github.com/almottier/TapoP100.git@main


COPY . /app
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def collect(self):
})

try:
data = self.get_device_data(device, ip_addr, room)['result']
data = self.get_device_data(device, ip_addr, room)

labels = [ip_addr, room]
metrics[MetricType.TODAY_RUNTIME].add_metric(labels, data['today_runtime'])
Expand Down

0 comments on commit 2ed19f9

Please sign in to comment.