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).
Problem / motivation
cook_log.csvalready tags every row withthing(the grill'sthingName), andpoll.pypolls every grill on the account each tick — buttrend.py,history.py,plot.py, andexport.pyall 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
--grill <thingName>flag to each analysis tool, filtering rows by thethingcolumn before any session-splitting/trend/plot logic runs.history.py listcould also print thething(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.poll.pyitself — logging already carries the right column.Alternatives considered
Splitting into one log file per grill — would need every existing tool's
LOGpath 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 summaryacross everything).