Commit Graph
15 Commits
Author SHA1 Message Date
maximeandClaude Opus 5.5 e058a2e3e7 Plot DAILY_BATTERY_TREND as the fourth analysis panel
One bar per day for the night-end voltage delta, coloured by trend
(blue better, grey stable, red worse), with the 0.05 V dead band.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:35:40 +02:00
maximeandClaude Opus 5.5 005e006b2f Add analysis 04 DAILY_BATTERY_TREND computation
Day-over-day trend from DAILY_BATTERY_STATE: a state change decides
(FULL > PARTIAL > NO_CHARGE > BELOW_PLATEAU), otherwise the night-end
voltage delta with a 0.05 V dead band. No verdict (anomaly = None).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:34:00 +02:00
maximeandClaude Opus 5.5 5e039ef3bb Fix DAILY_BATTERY_STATE night end and rise, document phase C contract
The night end and rise were anchored on the first daily maximum,
which can be the 00:00 tail of the previous evening: 2026-05-05 was
read NO_CHARGE despite a +0.079 V rise, 2026-09-30 showed a wrong
night end, and 2026-09-26 stayed unknown from 04:00 to 11:00 when
evaluated mid-day. The rise now starts from an earlier minimum and
the knee is tested on the daily minimum (min_v). VERMONT: 139 / 31 /
14 / 0.

Docs: sheet 02 page order, battery_state.py in the CLAUDE.md map,
phase C exception to "anomaly = None means UNKNOWN".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 11:03:23 +02:00
maximeandClaude Opus 5.5 eacc0ecd4a Add analysis 03 entry point and documentation
src/analyse_03.py launches the common page; sheet 03 moves to
"prototype en place" with VERMONT results; CLAUDE.md, README and
sheet 01 list the third panel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:53:15 +02:00
maximeandClaude Opus 5.5 a3590fab62 Plot DAILY_BATTERY_STATE as the third analysis panel
Daily maximum and night-end voltage, 14.0 V and 12.8 V thresholds,
one marker colour and symbol per day state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:52:40 +02:00
maximeandClaude Opus 5.5 1ae176cc5a Add analysis 03 DAILY_BATTERY_STATE computation (phase C)
One state per UTC day from BusVoltage: FULL_CHARGE, BELOW_PLATEAU,
NO_CHARGE, PARTIAL_CHARGE or unknown, with hardware thresholds
(14.0 V end of charge, 12.8 V LiFePO4 knee). No verdict yet.
Includes the implementation plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:52:08 +02:00
maximeandClaude Opus 5.5 9be9a636f7 Shade battery state voltage zones on the BusVoltage plot
Background bands for discharge (12.0-13.2 V), charging (13.1-13.8 V)
and full charge (14.0-14.4 V), from the battery voltage report.
Display only, no effect on the analyses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:45:43 +02:00
maximeandClaude Opus 5.5 7b1da6d7cf Add analysis 02 (midnight sample), simplify plots, spell out rule names
- Analysis 02 MOVING_AVERAGE_7_DAYS_MIDNIGHT_UTC_DROP: same rule as
  analysis 01 on the 00:00 UTC BusVoltage sample only, one point per
  day. Shared computation in energy_check._ma_drop(); analysis 01
  results unchanged on VERMONT.
- Common page: one panel per analysis (02 under 01), then the time
  series (D-016); src/analyse_02.py launches that page.
- Analysis panel reduced to two curves on one volt axis: 7-day mean
  and threshold; gap and reference moved to hover (D-015).
- Date tick labels under every subplot.
- Rule IDs spelled out: MA7D_DROP -> MOVING_AVERAGE_7_DAYS_DROP,
  MA7D_MIDNIGHT_DROP -> MOVING_AVERAGE_7_DAYS_MIDNIGHT_UTC_DROP (D-017).
- Docs: analysis sheet 02, sheet 01, CLAUDE.md, README, decisions
  D-015..D-017, analysis rule and nouvelle-analyse skill.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 09:31:52 +02:00
maximeandClaude Opus 5.5 0b950199b8 Rework analysis 01 entry point and plots, drop tests
- src/analyse_01.py: single entry point, analyses data/, writes and
  opens the HTML report (switches to .venv for plotly).
- Plot: analysis on top, one subplot per time series below; zoom in
  time only, y axes rescaled to the visible range on every zoom.
- Tests removed: experimental prototype phase (D-008).
- Ignore __pycache__/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:29:42 +02:00
maximeandClaude Opus 5.5 128d4bc298 Add AIMsight docs, Vermont working data and collector reference
- doc/: AIMsight reference documentation and station manual.
- data/: VERMONT complete dataset (7 system metrics) and expert
  diagnostics; other incomplete stations set aside in data/archive/.
- src/__main__ (3).py: reference copy of the embedded system_info
  collector (INA219 units, LiFePO4 OCV table).
- architecture.drawio: user-maintained architecture diagram.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:29:42 +02:00
maximeandClaude Opus 5.5 53b4f7e47c Harden MA7D_DROP inputs and report UNKNOWN stretches
- NaN/inf values are treated as missing instead of poisoning the
  running sum (which produced a false "not observed").
- Unreadable CSV files are skipped with a message naming the file;
  a station whose analysis fails is skipped with its name and the
  scan continues.
- The summary now states hours without verdict and the longest
  UNKNOWN stretch (5 months on MISSISSIPPI were silent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:37:56 +02:00
maximeandClaude Opus 5.5 79bd98c9cb Add plotly HTML report for MA7D_DROP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:27:28 +02:00
maximeandClaude Opus 5.5 d91ab866e2 Add anomaly periods, text summary and CLI for MA7D_DROP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:26:44 +02:00
maximeandClaude Opus 5.5 041770ec47 Add causal MA7D_DROP voltage-trend analysis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:26:00 +02:00
maximeandClaude Opus 5.5 422904757f Add CSV loading per station for energy analysis
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 19:25:26 +02:00