feat: Zambretti forecast with trend classification

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-17 19:59:17 +07:00
co-authored by Claude Opus 4.8
parent 2d52fcd851
commit 5819739fcb
3 changed files with 127 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include <Arduino.h>
enum Trend { TREND_FALLING = -1, TREND_STEADY = 0, TREND_RISING = 1 };
enum WxCategory { WX_FINE, WX_FAIR, WX_CHANGEABLE, WX_RAIN, WX_STORM, WX_UNKNOWN };
struct Forecast {
char letter; // 'A'..'Z'
const char* text; // full Zambretti phrase
WxCategory category; // for display icon + short label
};
Trend classifyTrend(float deltaHpa3h);
Forecast computeForecast(float mslHpa, Trend trend, int month);
const char* categoryShort(WxCategory c);