Skip to main content

REUSE status

PyTraeger

This Project enables Traeger Grill Monitoring. For my Use-Case a Grafana Dashboard utilizes a PostgreSQL Database (demo/example02.py).

This lib does 3 things.

  1. It initiates authentication with AWS
  2. It starts the MQTT-Client (thread 1)
  3. It polls for updates (thread 2)

Usage in a Nutshell:

-- DEMO 1 --
from pytraeger.manager import Manager as TraegerManager

def call_me(event_grill):
    _LOGGER.info("Message from %s. Grill: %-5s | Probe: %-5s",
                    event_grill.identifier,
                    event_grill.data['status']['grill'],event_grill.data['status']['probe'] )


a = TraegerManager(interval_idle=10, interval_busy=5)
for grill in a.api.grills:
    grill.register_listener(call_me)

Getting Started

Fill the environmentfile.

cat .devcontainer/devcontainer.env 
PYTRAEGER_PASSWORD=xxx
PYTRAEGER_USERNAME=xxx

# Optional for DB. Enabled in Dockerfile
PGHOST=xxx
PGUSER=xxx
PGPASSWORD=xxx
$ docker build . -t traegertest
$ docker run --env-file .devcontainer/devcontainer.env  traegertest
2023-08-04 20:00:31,474 - root - INFO - Debugging of API
2023-08-04 20:00:37,449 - root - INFO - Message from XXXXXXXXX. Grill: 35    | Probe: 37
2023-08-04 20:00:42,569 - root - INFO - Message from XXXXXXXXX. Grill: 35    | Probe: 37

Known Issues:

  • EMail-Login is case sensitive
  • DB-Usecase doesnt clean up

Metadata

Release files for pytraeger 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytraeger 0.5
File Size Uploaded
pytraeger-0.5.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytraeger 0.5
File Interpreter ABI Platform
pytraeger-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / pytraeger-0.5.tar.gz

Download URL pytraeger-0.5.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
68f518232e61361114617b3d08bb5a88fc779fd952caaee10c55581f3c68a013
BLAKE2b-256 checksum
How to use checksums
8b0bf227dba18e846a4e62fd1fefee9fd81e3911542e5aee8ee4a020dff70c1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / pytraeger-0.5-py3-none-any.whl

Download URL pytraeger-0.5-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fc97cff09c9d4c31c00e3de9632b475eb970c5654ac9cff82ca68c26623963c
BLAKE2b-256 checksum
How to use checksums
85180abe69928e4323c182d7c99495b4bfa531b9f9969fcf436751815e42859a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page