Exemple #1
0
        private void PullOutsideHumidity()
        {
            var response = PullValue(nameof(IOutdoorHumidityService));

            var outdoorHumidity = (float)response["OutdoorHumidity"];

            if (Settings.UseHumidity)
            {
                _outdoorHumidityService.Update(outdoorHumidity);
            }
        }
Exemple #2
0
        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);
            }
        }