mirror of
https://github.com/alexhopeoconnor/bom-local-service.git
synced 2026-10-03 21:21:59 +10:00
- Refactor TimeParsingService to parse time strings to UTC only - Remove minutesAgo from RadarFrame and FrameMetadata models - Update CaptureFramesStep to extract UTC timestamps directly - Update CacheService to store/load ObservationTime instead of MinutesAgo - Update BomRadarService to use AbsoluteObservationTime directly - Remove all backward compatibility code for old cache folders - Update documentation and test SPA to calculate minutes ago on client - Fix step registration to register concrete types for DI resolution - Fix hosted service registration to use reflection correctly
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using BomLocalService.Models;
|
|
using BomLocalService.Services.Interfaces;
|
|
using BomLocalService.Services.Scraping;
|
|
|
|
namespace BomLocalService.Services.Scraping.Workflows;
|
|
|
|
/// <summary>
|
|
/// Future workflow for temperature map scraping (not yet implemented)
|
|
/// </summary>
|
|
public class TemperatureMapWorkflow : ITemperatureMapWorkflow
|
|
{
|
|
private readonly ILogger<TemperatureMapWorkflow> _logger;
|
|
|
|
public string Name => "TemperatureMap";
|
|
public string Description => "Scrapes temperature forecast map (future feature)";
|
|
|
|
public string[] StepNames => new[]
|
|
{
|
|
"NavigateHomepage",
|
|
"ClickSearchButton",
|
|
"FillSearchInput",
|
|
"WaitForSearchResults",
|
|
"SelectSearchResult",
|
|
// Future: "ClickTemperatureMapLink",
|
|
// Future: "WaitForMapReady",
|
|
// Future: "ExtractMetadata",
|
|
// Future: "CalculateMapBounds",
|
|
// Future: "CaptureTemperatureFrames"
|
|
};
|
|
|
|
public TemperatureMapWorkflow(ILogger<TemperatureMapWorkflow> logger)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
|
|
public Task<RadarResponse> ExecuteAsync(ScrapingContext context, CancellationToken cancellationToken)
|
|
{
|
|
throw new NotImplementedException("TemperatureMap workflow is not yet implemented");
|
|
}
|
|
}
|
|
|