mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Fix models in environment service and add more SignalR messaging
This commit is contained in:
@@ -16,17 +16,24 @@ public class DeviceMessage
|
||||
[JsonPropertyName("timestamp")]
|
||||
public required DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
[JsonPropertyName("air_quality_index")]
|
||||
public decimal AirQualityIndex => Readings.AirQualityIndex;
|
||||
|
||||
[JsonPropertyName("color_temperature")]
|
||||
public decimal ColorTemperature => Readings.ColorTemperature;
|
||||
|
||||
[JsonPropertyName("gas_resistance")]
|
||||
public decimal GasResistance => Readings.GasResistance;
|
||||
|
||||
[JsonPropertyName("humidity")]
|
||||
public decimal Humidity => Readings.Humidity;
|
||||
|
||||
[JsonPropertyName("luminance")]
|
||||
public decimal Luminance => Readings.Luminance;
|
||||
|
||||
[JsonPropertyName("pressure")]
|
||||
public decimal Pressure => Readings.Pressure;
|
||||
|
||||
[JsonPropertyName("temperature")]
|
||||
public decimal Temperature => Readings.Temperature;
|
||||
}
|
||||
Reference in New Issue
Block a user