Skip to content

Commit

Permalink
Merge pull request #2 from maikel-09/v0.0.4
Browse files Browse the repository at this point in the history
v0.0.4
  • Loading branch information
maikel-09 authored Oct 18, 2024
2 parents 3e66454 + 99059c6 commit f845aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3-slim

LABEL authors="Maikel Wagteveld"
LABEL version="v0.0.3"
LABEL version="v0.0.4"

WORKDIR /home/metrics
COPY src/ /home/metrics
Expand All @@ -10,4 +10,4 @@ RUN python3 -m pip install --no-cache-dir -r requirements.txt

EXPOSE 9002

CMD ["python3", "homewizard-exporter.py"]
CMD ["python3", "homewizard-exporter.py", "--port", "9002"]
2 changes: 1 addition & 1 deletion src/homewizard-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def main():
metrics[key].info({'value': value})
elif isinstance(value, datetime):
metrics[key].info({'value': value.isoformat()})
await asyncio.sleep(5)
await asyncio.sleep(int(INTERVAL))
except Exception as e:
logging.error(f"Error fetching data: {e}")

Expand Down

0 comments on commit f845aca

Please sign in to comment.