Skip to content

Weather Forecast Widget

Igor Gladkov edited this page Jan 24, 2016 · 2 revisions

Configuration

Type
weather-forecast
Items
Type Element Item
day0-condition Text String
day0-temperature Text Number
day0-temperature-high Text Number
day0-temperature-low Text Number
the same for all other days (day1, day2, and so on)
Default size
2x1
Additional sizes
3x1

Additional notes

  • Condition item expects commonId from weather binding. All values are supported.
  • Default size supports 3-4 forecast days, while 3x1 size supports 5-6.
  • Forecast day numbers start from 0 (today) up to 5 (in 5 days).
  • Either temperature item or combination of temperature-high and temperature-low items is required for each forecast day.

Examples

Default size, today + 2 days
Frame label="{widget:weather-forecast}" {
  Text item=Weather_Forecast_Day0_Condition label="{item:day0-condition}"
  Text item=Weather_Forecast_Day0_Temperature_High label="{item:day0-temperature-high}"
  Text item=Weather_Forecast_Day0_Temperature_Low label="{item:day0-temperature-low}"
  Text item=Weather_Forecast_Day1_Condition label="{item:day1-condition}"
  Text item=Weather_Forecast_Day1_Temperature_High label="{item:day1-temperature-high}"
  Text item=Weather_Forecast_Day1_Temperature_Low label="{item:day1-temperature-low}"
  Text item=Weather_Forecast_Day2_Condition label="{item:day2-condition}"
  Text item=Weather_Forecast_Day2_Temperature_High label="{item:day2-temperature-high}"
  Text item=Weather_Forecast_Day2_Temperature_Low label="{item:day2-temperature-low}"
}

Default size, today + 3 days, single temperature
Frame label="{widget:weather-forecast}" {
  Text item=Weather_Forecast_Day0_Condition label="{item:day0-condition}"
  Text item=Weather_Forecast_Day0_Temperature_High label="{item:day0-temperature}"
  Text item=Weather_Forecast_Day1_Condition label="{item:day1-condition}"
  Text item=Weather_Forecast_Day1_Temperature_High label="{item:day1-temperature}"
  Text item=Weather_Forecast_Day2_Condition label="{item:day2-condition}"
  Text item=Weather_Forecast_Day2_Temperature_High label="{item:day2-temperature}"
  Text item=Weather_Forecast_Day3_Condition label="{item:day3-condition}"
  Text item=Weather_Forecast_Day3_Temperature_High label="{item:day3-temperature}"
}

3x1 size, today + 4 days
Frame label="{widget:weather-forecast}" {
  Text item=Weather_Forecast_Day0_Condition label="{item:day0-condition}"
  Text item=Weather_Forecast_Day0_Temperature_High label="{item:day0-temperature-high}"
  Text item=Weather_Forecast_Day0_Temperature_Low label="{item:day0-temperature-low}"
  Text item=Weather_Forecast_Day1_Condition label="{item:day1-condition}"
  Text item=Weather_Forecast_Day1_Temperature_High label="{item:day1-temperature-high}"
  Text item=Weather_Forecast_Day1_Temperature_Low label="{item:day1-temperature-low}"
  Text item=Weather_Forecast_Day2_Condition label="{item:day2-condition}"
  Text item=Weather_Forecast_Day2_Temperature_High label="{item:day2-temperature-high}"
  Text item=Weather_Forecast_Day2_Temperature_Low label="{item:day2-temperature-low}"
  Text item=Weather_Forecast_Day3_Condition label="{item:day3-condition}"
  Text item=Weather_Forecast_Day3_Temperature_High label="{item:day3-temperature-high}"
  Text item=Weather_Forecast_Day3_Temperature_Low label="{item:day3-temperature-low}"
  Text item=Weather_Forecast_Day4_Condition label="{item:day4-condition}"
  Text item=Weather_Forecast_Day4_Temperature_High label="{item:day4-temperature-high}"
  Text item=Weather_Forecast_Day4_Temperature_Low label="{item:day4-temperature-low}"
}

3x1 size, 5 days
Frame label="{widget:weather-forecast}" {
  Text item=Weather_Forecast_Day1_Condition label="{item:day1-condition}"
  Text item=Weather_Forecast_Day1_Temperature_High label="{item:day1-temperature-high}"
  Text item=Weather_Forecast_Day1_Temperature_Low label="{item:day1-temperature-low}"
  Text item=Weather_Forecast_Day2_Condition label="{item:day2-condition}"
  Text item=Weather_Forecast_Day2_Temperature_High label="{item:day2-temperature-high}"
  Text item=Weather_Forecast_Day2_Temperature_Low label="{item:day2-temperature-low}"
  Text item=Weather_Forecast_Day3_Condition label="{item:day3-condition}"
  Text item=Weather_Forecast_Day3_Temperature_High label="{item:day3-temperature-high}"
  Text item=Weather_Forecast_Day3_Temperature_Low label="{item:day3-temperature-low}"
  Text item=Weather_Forecast_Day4_Condition label="{item:day4-condition}"
  Text item=Weather_Forecast_Day4_Temperature_High label="{item:day4-temperature-high}"
  Text item=Weather_Forecast_Day4_Temperature_Low label="{item:day4-temperature-low}"
  Text item=Weather_Forecast_Day5_Condition label="{item:day5-condition}"
  Text item=Weather_Forecast_Day5_Temperature_High label="{item:day5-temperature-high}"
  Text item=Weather_Forecast_Day5_Temperature_Low label="{item:day5-temperature-low}"
}

3x1 size, today + 5 days, single temperature
Frame label="{widget:weather-forecast}" {
  Text item=Weather_Forecast_Day0_Condition label="{item:day0-condition}"
  Text item=Weather_Forecast_Day0_Temperature_High label="{item:day0-temperature}"
  Text item=Weather_Forecast_Day1_Condition label="{item:day1-condition}"
  Text item=Weather_Forecast_Day1_Temperature_High label="{item:day1-temperature}"
  Text item=Weather_Forecast_Day2_Condition label="{item:day2-condition}"
  Text item=Weather_Forecast_Day2_Temperature_High label="{item:day2-temperature}"
  Text item=Weather_Forecast_Day3_Condition label="{item:day3-condition}"
  Text item=Weather_Forecast_Day3_Temperature_High label="{item:day3-temperature}"
  Text item=Weather_Forecast_Day4_Condition label="{item:day4-condition}"
  Text item=Weather_Forecast_Day4_Temperature_High label="{item:day4-temperature}"
  Text item=Weather_Forecast_Day5_Condition label="{item:day5-condition}"
  Text item=Weather_Forecast_Day5_Temperature_High label="{item:day5-temperature}"
}

Clone this wiki locally