Add image generation (#2)

* Add image generation

* Optimise for minimal memory

* Added a new ui

* Add support for esp
This commit was merged in pull request #2.
This commit is contained in:
2025-07-19 19:11:31 +02:00
committed by GitHub
parent e9d145455e
commit e21601234a
25 changed files with 1188 additions and 31 deletions

View File

@@ -5,6 +5,8 @@ public class ApiConfiguration
public Keys Keys { get; set; } = new();
public BaseUrls BaseUrls { get; set; } = new();
public string DefaultCity { get; set; } = "Vega stockholms lan";
public string DefaultStation { get; set; } = "Vega station";
public EspConfig EspConfiguration { get; set; } = new();
}
public class BaseUrls
@@ -12,6 +14,7 @@ public class BaseUrls
public string Weather { get; set; } = string.Empty;
public string Nominatim { get; set; } = string.Empty;
public string Aurora { get; set; } = string.Empty;
public string ResRobot { get; set; } = string.Empty;
}
public class Keys
@@ -19,4 +22,17 @@ public class Keys
public string Weather { get; set; } = string.Empty;
public string Nominatim { get; set; } = string.Empty;
public string Aurora { get; set; } = string.Empty;
public string ResRobot { get; set; } = string.Empty;
}
public class EspConfig
{
public string InformationBoardImageUrl { get; set; } = string.Empty;
public int UpdateIntervalMinutes { get; set; } = 2;
public int BlackTextThreshold { get; set; } = 190; // (0-255)
public bool EnableDithering { get; set; } = true;
public int DitheringStrength { get; set; } = 8; // (8-32)
public bool EnhanceContrast { get; set; } = true;
public int ContrastStrength { get; set; } = 10; // (0-100)
public bool IsHighContrastMode { get; set; } = true;
}