Window average on the greenhouse zone status line

C++ · C++ · beginner · modification

The zone status line used to show the last sensor reading, which jumps around by a degree from one sample to the next on these DHT11 sensors. It now shows the average over the zone's reading window, in tenths like the setpoint. `report.hpp` declares a new `average_tenths(std::span<const int>)` that returns `std::nullopt` for an empty window, `report.cpp` implements it by summing the window and uses it in `zone_line`, and `tests/report_test.cpp` replaces the last-reading test with tests for an empty window, a steady and a spread window, and the new line with and without readings.

Greenhouse climate controller in C++20, standard library only, built with CMake (build files unchanged) by Apple clang 17 locally and GCC 13 in CI with `-Wall -Wextra -Wconversion` treated as errors. `int` is 32 bits on every target. Single-threaded: the control loop copies each zone's window into a `ZoneStatus` and then formats it, so nothing else touches the vector during `zone_line`. Tests use the repo's existing helper `tests/check.hpp` (unchanged): `TEST(name)` registers a test, `CHECK(expr)` and `CHECK_EQ(a, b)` record a failure without stopping, and `tests/check_main.cpp` runs every registered test and exits non-zero on any failure.

Requirements

Files touched

Review this PR

C++ practice