So here is what i made based on sVn´s rules
owm_onecall_wetter.rules
var weatherString = ""
var String lat = "your latitude" /*latitude*/
var String lon = "your longitude" /*longitude*/
var String lang = "de" /*language (see: https://openweathermap.org/api/one-call-api) */
var String exclude = "minutly" /*what to exclude (current,minutely,hourly,daily) WARNING: no rule for minutely*/
var String units = "metric" /*Units of measurement (standard, metric, imperial)*/
var String appid = "your API key"
rule "Refresh OWM Weather Data"
when
//enter quartz cron expression https://www.freeformatter.com/cron-expression-generator-quartz.html
//Time cron "0/10 * * ? * * *" or //every 10 second for development
Time cron "0 0 * ? * *" //At every hour (second :00 of minute :00)
then
logInfo("owm_onecall_wetter.rules", "Refresh OWM Weather Data")
var String url = "https://api.openweathermap.org/data/2.5/onecall?lat=" + lat + "&lon=" + lon + "&exclude=" + exclude + "&units=" + units + "&lang=" + lang +"&appid=" + appid
weatherString = sendHttpGetRequest(url)
//check if it's a valid response -> not "Invalid API key"
if (weatherString.contains("timezone")) {
//Curent weather
/*Abrufzeitstempel*/ postUpdate(OWM_Curent_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.current.dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Curent_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.current.sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Curent_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.current.sunset", weatherString)) * 1000).toString))
/*Ist Temperatur*/ postUpdate(OWM_Curent_temperature, transform("JSONPATH", "$.current.temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Curent_feel_temperature, transform("JSONPATH", "$.current.feels_like", weatherString))
/*Luftdruck*/ postUpdate(OWM_Curent_pressure, transform("JSONPATH", "$.current.pressure", weatherString))
/*Luftfeuchtigkeit*/ postUpdate(OWM_Curent_humidity, transform("JSONPATH", "$.current.humidity", weatherString))
/*Taupunkt*/ postUpdate(OWM_Curent_dew_point, transform("JSONPATH", "$.current.dew_point", weatherString))
/*Bewölkung*/ postUpdate(OWM_Curent_clouds, transform("JSONPATH", "$.current.clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Curent_uvi, transform("JSONPATH", "$.current.uvi", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Curent_wind_speed, transform("JSONPATH", "$.current.wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Curent_wind_deg, transform("JSONPATH", "$.current.wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Curent_weather_id, transform("JSONPATH", "$.current.weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Curent_weather_main, transform("JSONPATH", "$.current.weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Curent_weather_description, transform("JSONPATH", "$.current.weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Curent_weather_icon, transform("JSONPATH", "$.current.weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Curent_rain, transform("JSONPATH", "$.current.rain.1h", weatherString))
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//hourly weather
//+0H
/*zeitstempel*/ postUpdate(OWM_Hourly_0_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[0].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_0_temperature, transform("JSONPATH", "$.hourly.[0].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_0_feel_temperature, transform("JSONPATH", "$.hourly.[0].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_0_clouds, transform("JSONPATH", "$.hourly.[0].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_0_wind_speed, transform("JSONPATH", "$.hourly.[0].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_0_wind_deg, transform("JSONPATH", "$.hourly.[0].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_0_weather_id, transform("JSONPATH", "$.hourly.[0].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_0_weather_main, transform("JSONPATH", "$.hourly.[0].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_0_weather_description, transform("JSONPATH", "$.hourly.[0].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_0_weather_icon, transform("JSONPATH", "$.hourly.[0].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_0_rain, transform("JSONPATH", "$.hourly.[0].rain.1h", weatherString))
//+1H
/*zeitstempel*/ postUpdate(OWM_Hourly_1_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[1].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_1_temperature, transform("JSONPATH", "$.hourly.[1].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_1_feel_temperature, transform("JSONPATH", "$.hourly.[1].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_1_clouds, transform("JSONPATH", "$.hourly.[1].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_1_wind_speed, transform("JSONPATH", "$.hourly.[1].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_1_wind_deg, transform("JSONPATH", "$.hourly.[1].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_1_weather_id, transform("JSONPATH", "$.hourly.[1].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_1_weather_main, transform("JSONPATH", "$.hourly.[1].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_1_weather_description, transform("JSONPATH", "$.hourly.[1].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_1_weather_icon, transform("JSONPATH", "$.hourly.[1].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_1_rain, transform("JSONPATH", "$.hourly.[1].rain.1h", weatherString))
//+2H
/*zeitstempel*/ postUpdate(OWM_Hourly_2_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[2].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_2_temperature, transform("JSONPATH", "$.hourly.[2].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_2_feel_temperature, transform("JSONPATH", "$.hourly.[2].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_2_clouds, transform("JSONPATH", "$.hourly.[2].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_2_wind_speed, transform("JSONPATH", "$.hourly.[2].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_2_wind_deg, transform("JSONPATH", "$.hourly.[2].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_2_weather_id, transform("JSONPATH", "$.hourly.[2].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_2_weather_main, transform("JSONPATH", "$.hourly.[2].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_2_weather_description, transform("JSONPATH", "$.hourly.[2].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_2_weather_icon, transform("JSONPATH", "$.hourly.[2].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_2_rain, transform("JSONPATH", "$.hourly.[2].rain.1h", weatherString))
//+3H
/*zeitstempel*/ postUpdate(OWM_Hourly_3_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[3].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_3_temperature, transform("JSONPATH", "$.hourly.[3].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_3_feel_temperature, transform("JSONPATH", "$.hourly.[3].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_3_clouds, transform("JSONPATH", "$.hourly.[3].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_3_wind_speed, transform("JSONPATH", "$.hourly.[3].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_3_wind_deg, transform("JSONPATH", "$.hourly.[3].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_3_weather_id, transform("JSONPATH", "$.hourly.[3].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_3_weather_main, transform("JSONPATH", "$.hourly.[3].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_3_weather_description, transform("JSONPATH", "$.hourly.[3].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_3_weather_icon, transform("JSONPATH", "$.hourly.[3].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_3_rain, transform("JSONPATH", "$.hourly.[3].rain.1h", weatherString))
//+4H
/*zeitstempel*/ postUpdate(OWM_Hourly_4_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[4].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_4_temperature, transform("JSONPATH", "$.hourly.[4].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_4_feel_temperature, transform("JSONPATH", "$.hourly.[4].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_4_clouds, transform("JSONPATH", "$.hourly.[4].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_4_wind_speed, transform("JSONPATH", "$.hourly.[4].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_4_wind_deg, transform("JSONPATH", "$.hourly.[4].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_4_weather_id, transform("JSONPATH", "$.hourly.[4].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_4_weather_main, transform("JSONPATH", "$.hourly.[4].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_4_weather_description, transform("JSONPATH", "$.hourly.[4].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_4_weather_icon, transform("JSONPATH", "$.hourly.[4].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_4_rain, transform("JSONPATH", "$.hourly.[4].rain.1h", weatherString))
//+5H
/*zeitstempel*/ postUpdate(OWM_Hourly_5_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[5].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_5_temperature, transform("JSONPATH", "$.hourly.[5].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_5_feel_temperature, transform("JSONPATH", "$.hourly.[5].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_5_clouds, transform("JSONPATH", "$.hourly.[5].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_5_wind_speed, transform("JSONPATH", "$.hourly.[5].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_5_wind_deg, transform("JSONPATH", "$.hourly.[5].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_5_weather_id, transform("JSONPATH", "$.hourly.[5].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_5_weather_main, transform("JSONPATH", "$.hourly.[5].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_5_weather_description, transform("JSONPATH", "$.hourly.[5].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_5_weather_icon, transform("JSONPATH", "$.hourly.[5].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_5_rain, transform("JSONPATH", "$.hourly.[5].rain.1h", weatherString))
//+6H
/*zeitstempel*/ postUpdate(OWM_Hourly_6_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[6].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_6_temperature, transform("JSONPATH", "$.hourly.[6].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_6_feel_temperature, transform("JSONPATH", "$.hourly.[6].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_6_clouds, transform("JSONPATH", "$.hourly.[6].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_6_wind_speed, transform("JSONPATH", "$.hourly.[6].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_6_wind_deg, transform("JSONPATH", "$.hourly.[6].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_6_weather_id, transform("JSONPATH", "$.hourly.[6].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_6_weather_main, transform("JSONPATH", "$.hourly.[6].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_6_weather_description, transform("JSONPATH", "$.hourly.[6].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_6_weather_icon, transform("JSONPATH", "$.hourly.[6].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_6_rain, transform("JSONPATH", "$.hourly.[6].rain.1h", weatherString))
//+7H
/*zeitstempel*/ postUpdate(OWM_Hourly_7_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[7].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_7_temperature, transform("JSONPATH", "$.hourly.[7].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_7_feel_temperature, transform("JSONPATH", "$.hourly.[7].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_7_clouds, transform("JSONPATH", "$.hourly.[7].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_7_wind_speed, transform("JSONPATH", "$.hourly.[7].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_7_wind_deg, transform("JSONPATH", "$.hourly.[7].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_7_weather_id, transform("JSONPATH", "$.hourly.[7].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_7_weather_main, transform("JSONPATH", "$.hourly.[7].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_7_weather_description, transform("JSONPATH", "$.hourly.[7].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_7_weather_icon, transform("JSONPATH", "$.hourly.[7].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_7_rain, transform("JSONPATH", "$.hourly.[7].rain.1h", weatherString))
//+8H
/*zeitstempel*/ postUpdate(OWM_Hourly_8_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[8].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_8_temperature, transform("JSONPATH", "$.hourly.[8].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_8_feel_temperature, transform("JSONPATH", "$.hourly.[8].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_8_clouds, transform("JSONPATH", "$.hourly.[8].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_8_wind_speed, transform("JSONPATH", "$.hourly.[8].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_8_wind_deg, transform("JSONPATH", "$.hourly.[8].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_8_weather_id, transform("JSONPATH", "$.hourly.[8].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_8_weather_main, transform("JSONPATH", "$.hourly.[8].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_8_weather_description, transform("JSONPATH", "$.hourly.[8].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_8_weather_icon, transform("JSONPATH", "$.hourly.[8].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_8_rain, transform("JSONPATH", "$.hourly.[8].rain.1h", weatherString))
//+9H
/*zeitstempel*/ postUpdate(OWM_Hourly_9_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[9].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_9_temperature, transform("JSONPATH", "$.hourly.[9].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_9_feel_temperature, transform("JSONPATH", "$.hourly.[9].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_9_clouds, transform("JSONPATH", "$.hourly.[9].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_9_wind_speed, transform("JSONPATH", "$.hourly.[9].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_9_wind_deg, transform("JSONPATH", "$.hourly.[9].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_9_weather_id, transform("JSONPATH", "$.hourly.[9].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_9_weather_main, transform("JSONPATH", "$.hourly.[9].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_9_weather_description, transform("JSONPATH", "$.hourly.[9].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_9_weather_icon, transform("JSONPATH", "$.hourly.[9].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_9_rain, transform("JSONPATH", "$.hourly.[9].rain.1h", weatherString))
//+10H
/*zeitstempel*/ postUpdate(OWM_Hourly_10_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[10].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_10_temperature, transform("JSONPATH", "$.hourly.[10].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_10_feel_temperature, transform("JSONPATH", "$.hourly.[10].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_10_clouds, transform("JSONPATH", "$.hourly.[10].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_10_wind_speed, transform("JSONPATH", "$.hourly.[10].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_10_wind_deg, transform("JSONPATH", "$.hourly.[10].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_10_weather_id, transform("JSONPATH", "$.hourly.[10].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_10_weather_main, transform("JSONPATH", "$.hourly.[10].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_10_weather_description, transform("JSONPATH", "$.hourly.[10].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_10_weather_icon, transform("JSONPATH", "$.hourly.[10].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_10_rain, transform("JSONPATH", "$.hourly.[10].rain.1h", weatherString))
//+11H
/*zeitstempel*/ postUpdate(OWM_Hourly_11_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[11].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_11_temperature, transform("JSONPATH", "$.hourly.[11].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_11_feel_temperature, transform("JSONPATH", "$.hourly.[11].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_11_clouds, transform("JSONPATH", "$.hourly.[11].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_11_wind_speed, transform("JSONPATH", "$.hourly.[11].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_11_wind_deg, transform("JSONPATH", "$.hourly.[11].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_11_weather_id, transform("JSONPATH", "$.hourly.[11].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_11_weather_main, transform("JSONPATH", "$.hourly.[11].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_11_weather_description, transform("JSONPATH", "$.hourly.[11].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_11_weather_icon, transform("JSONPATH", "$.hourly.[11].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_11_rain, transform("JSONPATH", "$.hourly.[11].rain.1h", weatherString))
//+12H
/*zeitstempel*/ postUpdate(OWM_Hourly_12_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.hourly.[12].dt", weatherString)) * 1000).toString))
/*Temperatur*/ postUpdate(OWM_Hourly_12_temperature, transform("JSONPATH", "$.hourly.[12].temp", weatherString))
/*Gefühlte Temperatur*/ postUpdate(OWM_Hourly_12_feel_temperature, transform("JSONPATH", "$.hourly.[12].feels_like", weatherString))
/*Bewölkung*/ postUpdate(OWM_Hourly_12_clouds, transform("JSONPATH", "$.hourly.[12].clouds", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Hourly_12_wind_speed, transform("JSONPATH", "$.hourly.[12].wind_speed", weatherString))
/*Windrichtung*/ postUpdate(OWM_Hourly_12_wind_deg, transform("JSONPATH", "$.hourly.[12].wind_deg", weatherString))
/*Wetter ID*/ postUpdate(OWM_Hourly_12_weather_id, transform("JSONPATH", "$.hourly.[12].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Hourly_12_weather_main, transform("JSONPATH", "$.hourly.[12].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Hourly_12_weather_description, transform("JSONPATH", "$.hourly.[12].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Hourly_12_weather_icon, transform("JSONPATH", "$.hourly.[12].weather..icon", weatherString))
/*Niderschlag 1h*/ postUpdate(OWM_Hourly_12_rain, transform("JSONPATH", "$.hourly.[12].rain.1h", weatherString))
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//Daily weather
//+0D
/*zeitstempel*/ postUpdate(OWM_Daily_0_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[0].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_0_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[0].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_0_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[0].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_0_temperature_day, transform("JSONPATH", "$.daily.[0].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_0_temperature_day_min, transform("JSONPATH", "$.daily.[0].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_0_temperature_day_max, transform("JSONPATH", "$.daily.[0].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_0_temperature_night, transform("JSONPATH", "$.daily.[0].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_0_temperature_eve, transform("JSONPATH", "$.daily.[0].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_0_temperature_morn, transform("JSONPATH", "$.daily.[0].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_0_wind_speed, transform("JSONPATH", "$.daily.[0].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_0_weather_id, transform("JSONPATH", "$.daily.[0].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_0_weather_main, transform("JSONPATH", "$.daily.[0].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_0_weather_description, transform("JSONPATH", "$.daily.[0].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_0_weather_icon, transform("JSONPATH", "$.daily.[0].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_0_clouds, transform("JSONPATH", "$.daily.[0].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_0_uvi, transform("JSONPATH", "$.daily.[0].uvi", weatherString))
//+1D
/*zeitstempel*/ postUpdate(OWM_Daily_1_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[1].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_1_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[1].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_1_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[1].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_1_temperature_day, transform("JSONPATH", "$.daily.[1].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_1_temperature_day_min, transform("JSONPATH", "$.daily.[1].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_1_temperature_day_max, transform("JSONPATH", "$.daily.[1].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_1_temperature_night, transform("JSONPATH", "$.daily.[1].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_1_temperature_eve, transform("JSONPATH", "$.daily.[1].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_1_temperature_morn, transform("JSONPATH", "$.daily.[1].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_1_wind_speed, transform("JSONPATH", "$.daily.[1].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_1_weather_id, transform("JSONPATH", "$.daily.[1].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_1_weather_main, transform("JSONPATH", "$.daily.[1].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_1_weather_description, transform("JSONPATH", "$.daily.[1].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_1_weather_icon, transform("JSONPATH", "$.daily.[1].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_1_clouds, transform("JSONPATH", "$.daily.[1].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_1_uvi, transform("JSONPATH", "$.daily.[1].uvi", weatherString))
//+2D
/*zeitstempel*/ postUpdate(OWM_Daily_2_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[2].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_2_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[2].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_2_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[2].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_2_temperature_day, transform("JSONPATH", "$.daily.[2].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_2_temperature_day_min, transform("JSONPATH", "$.daily.[2].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_2_temperature_day_max, transform("JSONPATH", "$.daily.[2].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_2_temperature_night, transform("JSONPATH", "$.daily.[2].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_2_temperature_eve, transform("JSONPATH", "$.daily.[2].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_2_temperature_morn, transform("JSONPATH", "$.daily.[2].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_2_wind_speed, transform("JSONPATH", "$.daily.[2].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_2_weather_id, transform("JSONPATH", "$.daily.[2].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_2_weather_main, transform("JSONPATH", "$.daily.[2].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_2_weather_description, transform("JSONPATH", "$.daily.[2].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_2_weather_icon, transform("JSONPATH", "$.daily.[2].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_2_clouds, transform("JSONPATH", "$.daily.[2].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_2_uvi, transform("JSONPATH", "$.daily.[2].uvi", weatherString))
//+3D
/*zeitstempel*/ postUpdate(OWM_Daily_3_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[3].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_3_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[3].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_3_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[3].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_3_temperature_day, transform("JSONPATH", "$.daily.[3].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_3_temperature_day_min, transform("JSONPATH", "$.daily.[3].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_3_temperature_day_max, transform("JSONPATH", "$.daily.[3].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_3_temperature_night, transform("JSONPATH", "$.daily.[3].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_3_temperature_eve, transform("JSONPATH", "$.daily.[3].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_3_temperature_morn, transform("JSONPATH", "$.daily.[3].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_3_wind_speed, transform("JSONPATH", "$.daily.[3].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_3_weather_id, transform("JSONPATH", "$.daily.[3].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_3_weather_main, transform("JSONPATH", "$.daily.[3].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_3_weather_description, transform("JSONPATH", "$.daily.[3].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_3_weather_icon, transform("JSONPATH", "$.daily.[3].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_3_clouds, transform("JSONPATH", "$.daily.[3].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_3_uvi, transform("JSONPATH", "$.daily.[3].uvi", weatherString))
//+4D
/*zeitstempel*/ postUpdate(OWM_Daily_4_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[4].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_4_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[4].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_4_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[4].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_4_temperature_day, transform("JSONPATH", "$.daily.[4].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_4_temperature_day_min, transform("JSONPATH", "$.daily.[4].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_4_temperature_day_max, transform("JSONPATH", "$.daily.[4].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_4_temperature_night, transform("JSONPATH", "$.daily.[4].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_4_temperature_eve, transform("JSONPATH", "$.daily.[4].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_4_temperature_morn, transform("JSONPATH", "$.daily.[4].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_4_wind_speed, transform("JSONPATH", "$.daily.[4].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_4_weather_id, transform("JSONPATH", "$.daily.[4].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_4_weather_main, transform("JSONPATH", "$.daily.[4].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_4_weather_description, transform("JSONPATH", "$.daily.[4].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_4_weather_icon, transform("JSONPATH", "$.daily.[4].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_4_clouds, transform("JSONPATH", "$.daily.[4].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_4_uvi, transform("JSONPATH", "$.daily.[4].uvi", weatherString))
//+5D
/*zeitstempel*/ postUpdate(OWM_Daily_5_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[5].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_5_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[5].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_5_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[5].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_5_temperature_day, transform("JSONPATH", "$.daily.[5].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_5_temperature_day_min, transform("JSONPATH", "$.daily.[5].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_5_temperature_day_max, transform("JSONPATH", "$.daily.[5].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_5_temperature_night, transform("JSONPATH", "$.daily.[5].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_5_temperature_eve, transform("JSONPATH", "$.daily.[5].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_5_temperature_morn, transform("JSONPATH", "$.daily.[5].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_5_wind_speed, transform("JSONPATH", "$.daily.[5].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_5_weather_id, transform("JSONPATH", "$.daily.[5].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_5_weather_main, transform("JSONPATH", "$.daily.[5].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_5_weather_description, transform("JSONPATH", "$.daily.[5].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_5_weather_icon, transform("JSONPATH", "$.daily.[5].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_5_clouds, transform("JSONPATH", "$.daily.[5].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_5_uvi, transform("JSONPATH", "$.daily.[5].uvi", weatherString))
//+6D
/*zeitstempel*/ postUpdate(OWM_Daily_6_timestamp, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[6].dt", weatherString)) * 1000).toString))
/*Sonnenaufgang*/ postUpdate(OWM_Daily_6_sunrise, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[6].sunrise", weatherString)) * 1000).toString))
/*Sonnenuntergang*/ postUpdate(OWM_Daily_6_sunset, new DateTimeType(new DateTime(Long::parseLong(transform("JSONPATH", "$.daily.[6].sunset", weatherString)) * 1000).toString))
/*Temperatur Tag*/ postUpdate(OWM_Daily_6_temperature_day, transform("JSONPATH", "$.daily.[6].temp.day", weatherString))
/*Temperatur Tag Min*/ postUpdate(OWM_Daily_6_temperature_day_min, transform("JSONPATH", "$.daily.[6].temp.min", weatherString))
/*Temperatur Tag Max*/ postUpdate(OWM_Daily_6_temperature_day_max, transform("JSONPATH", "$.daily.[6].temp.max", weatherString))
/*Temperatur Nacht*/ postUpdate(OWM_Daily_6_temperature_night, transform("JSONPATH", "$.daily.[6].temp.night", weatherString))
/*Temperatur Abend*/ postUpdate(OWM_Daily_6_temperature_eve, transform("JSONPATH", "$.daily.[6].temp.eve", weatherString))
/*Temperatur Morgen*/ postUpdate(OWM_Daily_6_temperature_morn, transform("JSONPATH", "$.daily.[6].temp.morn", weatherString))
/*Windgeschwindigkeit*/ postUpdate(OWM_Daily_6_wind_speed, transform("JSONPATH", "$.daily.[6].wind_speed", weatherString))
/*Wetter ID*/ postUpdate(OWM_Daily_6_weather_id, transform("JSONPATH", "$.daily.[6].weather..id", weatherString))
/*Witterung*/ postUpdate(OWM_Daily_6_weather_main, transform("JSONPATH", "$.daily.[6].weather..main", weatherString))
/*Witterung Stärke*/ postUpdate(OWM_Daily_6_weather_description, transform("JSONPATH", "$.daily.[6].weather..description", weatherString))
/*Icon ID*/ postUpdate(OWM_Daily_6_weather_icon, transform("JSONPATH", "$.daily.[6].weather..icon", weatherString))
/*Bewölkung*/ postUpdate(OWM_Daily_6_clouds, transform("JSONPATH", "$.daily.[6].clouds", weatherString))
/*UV Index*/ postUpdate(OWM_Daily_6_uvi, transform("JSONPATH", "$.daily.[6].uvi", weatherString))
} else { //log error. Invalid API key ?
logInfo("weather.rules", "Error loading data from OWM: " + weatherString)
}
end