internal override void Load(StationData.WeatherModule weatherModule, string baseId) { Available = true; BaseId = baseId; Id = weatherModule.Id; Name = weatherModule.ModuleName; LastSetup = weatherModule.LastSetup.ToLocalDateTime(); BatteryPercent = weatherModule.BatteryPercent; Reachable = weatherModule.Reachable; Firmware = weatherModule.Firmware; LastMessage = weatherModule.LastMessage.ToLocalDateTime(); LastSeen = weatherModule.LastSeen.ToLocalDateTime(); RadioFrequenceStatus = weatherModule.RfStatus.ToSignalStatus(); BatteryStatus = weatherModule.BatteryVp.ToAnenometerBatteryStatus(); if (Reachable) { Time = weatherModule.DashboardData.TimeUtc.ToLocalDateTime(); WindStrength = weatherModule.DashboardData.WindStrength; WindAngle = weatherModule.DashboardData.WindAngle; MaxWindStrength = weatherModule.DashboardData.MaxWindStr; MaxWindAngle = weatherModule.DashboardData.MaxWindAngle; DateMaxWindStrength = weatherModule.DashboardData.DateMaxWindStr.ToLocalDateTime(); GustStrength = weatherModule.DashboardData.GustStrength; GustAngle = weatherModule.DashboardData.GustAngle; } }
internal override void Load(StationData.WeatherModule weatherModule, string baseId) { Available = true; BaseId = baseId; Id = weatherModule.Id; Name = weatherModule.ModuleName; LastSetup = weatherModule.LastSetup.ToLocalDateTime(); BatteryPercent = weatherModule.BatteryPercent; Reachable = weatherModule.Reachable; Firmware = weatherModule.Firmware; LastMessage = weatherModule.LastMessage.ToLocalDateTime(); LastSeen = weatherModule.LastSeen.ToLocalDateTime(); RadioFrequenceStatus = weatherModule.RfStatus.ToSignalStatus(); BatteryStatus = weatherModule.BatteryVp.ToIndoorBatteryStatus(); if (Reachable) { Time = weatherModule.DashboardData.TimeUtc.ToLocalDateTime(); Temperature = weatherModule.DashboardData.Temperature; TemperatureMin = weatherModule.DashboardData.MinTemp; TemperatureMinDate = weatherModule.DashboardData.DateMinTemp.ToLocalDateTime(); TemperatureMax = weatherModule.DashboardData.MaxTemp; TemperatureMaxDate = weatherModule.DashboardData.DateMaxTemp.ToLocalDateTime(); TemperatureTrend = weatherModule.DashboardData.TempTrend; Humidity = weatherModule.DashboardData.Humidity; } }
internal override void Load(StationData.WeatherModule weatherModule, string baseId) { Available = true; BaseId = baseId; Id = weatherModule.Id; Name = weatherModule.ModuleName; LastSetup = weatherModule.LastSetup.ToLocalDateTime(); BatteryPercent = weatherModule.BatteryPercent; Reachable = weatherModule.Reachable; Firmware = weatherModule.Firmware; LastMessage = weatherModule.LastMessage.ToLocalDateTime(); LastSeen = weatherModule.LastSeen.ToLocalDateTime(); RadioFrequenceStatus = weatherModule.RfStatus.ToSignalStatus(); BatteryStatus = weatherModule.BatteryVp.ToRainGaugeBatteryStatus(); if (Reachable) { Time = weatherModule.DashboardData.TimeUtc.ToLocalDateTime(); Rain = weatherModule.DashboardData.Rain; SumRainLastHour = weatherModule.DashboardData.SumRain1; SumRainLast24h = weatherModule.DashboardData.SumRain24; } }
internal abstract void Load(StationData.WeatherModule weatherModule, string baseId);