private void PullOutsideHumidity() { var response = PullValue(nameof(IOutdoorHumidityService)); var outdoorHumidity = (float)response["OutdoorHumidity"]; if (Settings.UseHumidity) { _outdoorHumidityService.Update(outdoorHumidity); } }
private void PushData() { if (Settings.UseTemperature) { _outdoorTemperatureService.Update(Temperature); } if (Settings.UseHumidity) { _outdoorHumidityService.Update(Humidity); } if (Settings.UseSunriseSunset) { _daylightService.Update(Sunrise, Sunset); } if (Settings.UseWeather) { _weatherService.Update(Weather); } }