Skip to content

Per-grill filtering (--grill <thingName>) in trend/history/plot/export #23

Description

@ctopherwilliams

Problem / motivation

cook_log.csv already tags every row with thing (the grill's thingName), and poll.py polls every grill on the account each tick — but trend.py, history.py, plot.py, and export.py all operate on the whole log with no way to select a specific grill. An account with more than one Traeger currently gets interleaved/ambiguous analysis.

Proposed solution

  • Add a --grill <thingName> flag to each analysis tool, filtering rows by the thing column before any session-splitting/trend/plot logic runs.
  • history.py list could also print the thing (or a short suffix of it) per row when more than one distinct grill appears in the log, so it's discoverable without grepping the CSV.
  • No change needed to poll.py itself — logging already carries the right column.

Alternatives considered

Splitting into one log file per grill — would need every existing tool's LOG path threaded through differently, more invasive than filtering the existing single log, and loses the ability to ever look at both grills at once (e.g. history.py summary across everything).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions