APISonar


org.openhab.binding.ambientweather.internal.model.EventDataJson.date

> org > openhab > binding > ambientweather > internal > model > EventDataJson > date
org APIs openhab APIs binding APIs ambientweather APIs internal APIs model APIs EventDataJson APIs date APIs

Example 1
public void processWeatherData(AmbientWeatherStationHandler handler, String station, String jsonData) {
        EventDataJson data = parseEventData(station, jsonData);
        if (data == null) {
            return;
        }

        // Update the weather data channels
        handler.updateDate(channelGroupId, CH_OBSERVATION_TIME, data.date);
        handler.updateQuantity(channelGroupId, CH_TEMPERATURE, data.tempinf, ImperialUnits.FAHRENHEIT);

        // Update the remote sensor channels
        remoteSensor.updateChannels(handler, jsonData);
    }