Initial framework of the power service

This commit is contained in:
2019-10-13 09:18:57 -04:00
parent 5c3901951e
commit 43ae1061f8
16 changed files with 565 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using JetBrains.Annotations;
using System.Text.Json.Serialization;
namespace ChrisKaczor.HomeMonitor.Power.Service.Models
{
[UsedImplicitly]
public class PowerChannel
{
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("ch")]
public long ChannelNumber { get; set; }
[JsonPropertyName("eImp_Ws")]
public long ImportedEnergy { get; set; }
[JsonPropertyName("eExp_Ws")]
public long ExportedEnergy { get; set; }
[JsonPropertyName("p_W")]
public long RealPower { get; set; }
[JsonPropertyName("q_VAR")]
public long ReactivePower { get; set; }
[JsonPropertyName("v_V")]
public double Voltage { get; set; }
}
}