Skip to content

feat(monitoring): show the forecast check, the year comparison and the usual day - #297

Merged
Developer-Simon merged 30 commits into
prereleasefrom
feat/monitoring-forecast-season
Nov 25, 2026
Merged

Developer-Simon merged 30 commits into
prereleasefrom
feat/monitoring-forecast-season

Conversation

@Developer-Simon

Copy link
Copy Markdown
Owner

Squash-merge commit message

The Monitoring tab now shows how well the node predicts the surplus, how the
current year compares with the previous ones, and the learned values as a
usual day.

- New endpoint GET /api/v1/monitoring/forecast (right view_monitoring) with the
  days of the forecast check, the weeks of the season memory and the rules that
  read the remaining surplus.
- New Forecast view: status (forecast, season median or still learning), the
  last 14 days as pairs, and a year comparison of PV, consumption, feed-in,
  base load and outdoor temperature.
- The list of learned values is replaced by a usual day on a 24 hour axis, with
  the energy per run and the values of the site below.
- The demo seeds a forecast check and more than a year of season weeks.
- Fixes TestCycleRunnerCollectsCyclesAndSurvivesRestart, whose fixed time
  window stopped matching once the calendar moved past it.

Highlights:
- dashboard: Monitoring shows the forecast check, a year comparison and the learned values as a usual day

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

Highlight translations

Highlights (de):
- dashboard: Monitoring zeigt die Prognoseprüfung, einen Jahresvergleich und die Lernwerte als üblichen Tag

Tour

{
  "*": {
    "steps": [
      {
        "device": "any",
        "need": "view_monitoring",
        "open": ["monitoring-forecast"],
        "panel": "monitoring-panel",
        "target": "monitoring-forecast",
        "title": {
          "en": "Forecast and year comparison",
          "de": "Prognose und Jahresvergleich"
        },
        "text": {
          "en": "The new Forecast view shows whether the node follows its surplus forecast or the season median, and compares the two over the last 14 days. Below it you compare production, consumption and more with the previous years, week by week.",
          "de": "Die neue Ansicht Prognose zeigt, ob die Node ihrer Überschussprognose oder dem Saisonmedian folgt, und vergleicht beide über die letzten 14 Tage. Darunter vergleichst du Erzeugung, Verbrauch und mehr Woche für Woche mit den Vorjahren."
        }
      },
      {
        "device": "any",
        "need": "view_monitoring",
        "open": ["monitoring-learned"],
        "panel": "monitoring-panel",
        "target": "monitoring-learned",
        "title": {
          "en": "A usual day",
          "de": "Ein üblicher Tag"
        },
        "text": {
          "en": "The learned values now appear as a usual day on a time axis, with night rest and the usual times of your devices. Tap a row to see how it changes over the year.",
          "de": "Die Lernwerte erscheinen jetzt als üblicher Tag auf einer Zeitachse, mit Nachtruhe und den üblichen Zeiten deiner Geräte. Tippe auf eine Zeile, um den Verlauf übers Jahr zu sehen."
        }
      }
    ]
  }
}

Summary

The Monitoring tab gets a Forecast view with a year comparison, and the learned values are shown as a usual day. Look at the new endpoint, the pure chart model monitoring-insight-model.js and the layout at phone width.

Checks

  • The title is a Conventional Commits subject.
  • scripts/dev/check_tracked_secrets.sh is clean.
  • AI assistance disclosed per AI-DISCLAIMER.md: Claude Sonnet 5.5
  • Suites run locally: go vet, go test, node tests, smoke, cache bust check
  • Linked issue: none

Developer-Simon and others added 30 commits November 23, 2026 21:31
…ed value

Add ForecastWindow, ForecastDay and ForecastCheck.Days for the finished
forecast days, and RuleRef and LearnedReaders to list the rules whose
conditions read a learned key.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…the api

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… endpoint

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add dayRows, onAt, runRows and yearBand to window.MonitoringInsight,
ported from psLearned in the draft. Covers windows over midnight,
point and free rows, the duration from the cycle and power values,
and the year band that needs four common weeks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The house row carries a name key instead of a fixed German name.
The sort locale is an optional argument instead of read from I18n.
Equal on and off minutes give a 15 minute point, not a full day.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…plate

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the monitoringDay Alpine component next to the forecast and year
components. It decorates the MonitoringInsight day rows with display
texts, reads the run and site values, follows the learned focus and
handles the time scrubber. Covered by node tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eated focus

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…the usual day

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the usual day

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The day store files new cycles under the running day, so a fixed window stops holding them once that day lies behind it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…earned views

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Developer-Simon
Developer-Simon merged commit 4f93975 into prerelease Nov 25, 2026
20 checks passed
@Developer-Simon
Developer-Simon deleted the feat/monitoring-forecast-season branch November 25, 2026 22:26
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