Add image generation #2
Reference in New Issue
Block a user
Delete Branch "add-image-generation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request introduces significant enhancements to the
HomeApiproject, including new endpoints, expanded functionality for weather and departure board services, and improved configuration and image generation capabilities. The changes also include new integrations, refactoring, and the addition of supporting models and handlers.New API Endpoints and Features
HomeControllerto include new endpoints for image generation (GetImage), configuration retrieval (GetCombinedBuffers), and departure board data (GetDepartureBoard). The existingGetHomeendpoint was renamed togetHomefor consistency.Expanded Weather and Departure Board Functionality
WeatherInformationcontract.Forecastmodel withIconCodeandChanceOfRainproperties.TimeTablemodel.New Handlers and Services
Configurationhandler to retrieve microprocessor settings from the API configuration.DepartureBoardhandler and aDepartureBoardServiceto fetch and process departure board data using the ResRobot API. [1] [2]ImageGenerationhandler to create images using weather and departure board data, RazorLight templates, and PuppeteerSharp.Refactoring and Integrations
GetWeatherhandler toWeatherfor better clarity and consistency.IResRobotClientfor departure board data and additional configuration settings for ResRobot API keys and default station. [1] [2]WeatherClientto fetch a 14-day forecast instead of 7 days and moved it to a dedicated namespace.Supporting Models and Configuration
Image) and microprocessor configuration (MicroProcessorConfiguration). [1] [2]LocationNameResponsemodel to handle responses from the ResRobot API.HomeApi.csprojto include new dependencies (PuppeteerSharp,RazorLight) and added support for copying RazorLight templates to the output directory. [1] [2]