Skip to content

weather

Weather

Displays current weather reports, including current temperature, sunrise time, and sunset time.

Configuration

weather:
  apiKey: "p0d13*********************************************c3"
  # From http://bulk.openweathermap.org/sample/city.list.json.gz
  compact: false
  cityids:
  - 6173331
  - 3128760
  - 6167865
  - 6176823
  colors:
    current: "lightblue"
  enabled: true
  language: "EN"
  position:
    top: 0
    left: 2
    height: 1
    width: 1
  refreshInterval: 15m
  tempUnit: "C"
  useEmoji: true

Screenshots

Default

Weather

Compact variant

compact: true

Weather

Attributes

Name Value
apiKey
Your OpenWeatherMap API key. Leave this blank to use the WTF_OWM_API_KEY environment variable.
cityids
A list of the OpenWeatherMap city IDs for the cities you want to view.
A list of positive integers.
colors.current
Optional The color to highlight the current temperature in. Default: green.
language
Optional The human language in which to present the weather data. Default: EN.
Any language identifier specified by OpenWeatherMap.
tempUnit
Optional The temperature scale in which to display temperature values. Default: C.
F for Fahrenheit, C for Celcius
useEmoji
Optional Whether or not to display emoji characters in the title. Default: true.
true, false
compact
Optional Whether or not to be compact mode. This shortens the sunset/sunrise line and also removes the double line breaks under conditions and under the temperatures. Default: false.
true, false

Keyboard

Key Action
/ Open/close the widget's help modal
h Show the previous weather location
l Show the next weather location
Show the previous weather location{{ arrowBack }}
Show the next weather location{{ arrowFore }}

Source Code

https://github.com/wtfutil/wtf/tree/master/modules/weatherservices/weather