Add support for esp
This commit is contained in:
@@ -6,6 +6,7 @@ public class ApiConfiguration
|
||||
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
|
||||
@@ -22,4 +23,16 @@ public class Keys
|
||||
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;
|
||||
}
|
||||
12
HomeApi/Models/MicroProcessorConfiguration.cs
Normal file
12
HomeApi/Models/MicroProcessorConfiguration.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace HomeApi.Models;
|
||||
|
||||
public class MicroProcessorConfiguration
|
||||
{
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user