Files
alex a54061f757 Release v0.0.4: BOM spatial map scraping and radar cache reliability.
Align selectors and workflow with the step-through scrubber, share scrub display
timestamp parsing via IScrubDisplayTimestampParser, fix pause post-click label
verification, and stop cancelling background cache updates when the HTTP request
ends. Version bumped to 0.0.4.
2026-05-07 05:23:18 +10:00

24 lines
1.0 KiB
C#

namespace BomLocalService.Models;
/// <summary>
/// Text patterns and regex configurations for parsing page content
/// </summary>
public class TextPatternsConfig
{
public string ResultsCountPattern { get; set; } = @"(\d+)\s+of\s+(\d+)";
public string TimestampPattern { get; set; } = @"(?:[A-Za-z]+\s+)?\d{1,2}\s+[A-Za-z]+,?\s+\d{1,2}:\d{2}\s*(?:am|pm)";
public string ObservationTimePattern { get; set; } = @"Observations:\s*(\d+)\s*minutes?\s*ago";
public string ForecastTimePattern { get; set; } = @"Forecast:\s*(\d+)\s*minutes?\s+ago";
public string ForecastHourAgoPattern { get; set; } = @"Forecast:\s*an\s+hour\s+ago";
public string WeatherStationPattern { get; set; } = @"at\s+([^,]+)\s+weather\s+station";
public string DistancePattern { get; set; } = @"(\d+)\s*km\s+from";
public Dictionary<string, string> ExpectedTexts { get; set; } = new()
{
["PlayButtonLabel"] = "Play",
["PauseButtonLabel"] = "Pause",
["RadarLinkText"] = "Rain radar and weather map"
};
}