Skip to content

Zone editor in the wood diagram and limits in the time chart - #46

Merged
CervezaStallone merged 4 commits into
mainfrom
feat/draw-wood-and-limit-bands
Nov 2, 2026
Merged

CervezaStallone merged 4 commits into
mainfrom
feat/draw-wood-and-limit-bands

Conversation

@CervezaStallone

Copy link
Copy Markdown
Owner

Summary

Zones move to the wood diagram with a shape editor, and limits show up in the time chart. Goes into v2.3.0 (re-release; it had not been downloaded yet).

  • Zone editor (wood diagram): + Zone starts a square; drag the corners, drag the dot in the middle of a side to add a corner, double-click a corner to remove it (at least 3). Mouse and touch. Click a zone (or pick it from Edit zone…) to change its shape and properties or delete it. Saving and deleting require being logged in.
  • Mollier diagram: no user zones and no draw button anymore, only the fixed comfort zone.
  • Settings → Zones: name, sensor, notification, level, colour, enabled and remove; no min/max fields or add button (shape is made in the diagram).
  • Time chart: limits of the shown quantity as dashed lines (yellow = warning, red = alarm).
  • The zone being edited is redrawn by its own callback, so the one-second refresh can no longer overwrite it.
  • README, changelog and screenshots updated.

Test plan

  • python test_app.py: 86/86 tests pass
  • Browser: new zone as square, midpoint drag (pentagon), corner drag, double-click removes a corner, save; edit an existing zone by clicking it and from the list; delete; cancel
  • Mollier diagram without zones; settings form without shape fields

The limits of the selected quantity (all sensors, or the selected sensor) are drawn as dashed lines with their level and value: yellow for warning, red for alarm.
The Mollier diagram shows its fixed comfort zone again, without user zones or the draw button; zones belong to the wood diagram (temperature x humidity), where a shape editor replaces free drawing.
- '+ Zone' starts a square; drag the corners, drag the dot in the middle of a side to add a corner, double-click a corner to remove it (at least 3), with mouse or touch
- Click a zone in the diagram (or pick it from 'Edit zone…') to change its shape, name, sensor, notification, level and colour, or delete it
- Saving and deleting require being logged in
- The zone being edited is hidden from the diagram by its own callback, so the one-second refresh cannot overwrite it
- Settings no longer has min/max fields or an add button for zones; it edits the other properties
@CervezaStallone
CervezaStallone merged commit 7aceb77 into main Nov 2, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant