Weather

weather screenshot

Displays a configurable list of current weather report, including current temperature, sunrise time, and sunset time.

Configuration

weather:
  apiKey: "2dfb3e3650a1950adddb6badf5ba1aaa"
  # From http://openweathermap.org/help/city_list.txt
  cityids:
  - 6173331
  - 3128760
  - 6167865
  - 6176823
  colors:
    current: "lightblue"
  enabled: true
  language: "EN"
  position:
    top: 0
    left: 2
    height: 1
    width: 1
  refreshInterval: 900
  tempUnit: "C"

Name Description Value
apiKey Your OpenWeatherMap API token.
border Optional Whether or not to draw this widget with a border. Default: true. true, false
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. Any X11 color name.
enabled Optional Whether or not this module is executed and if its data displayed onscreen. Default: false. true, false
focusChar Optional Define one of the number keys as a short cut key to access the widget. 0..9
language Optional The human language in which to present the weather data. Default: EN. Any language identifier specified by OpenWeatherMap”
position Defines where in the grid this module’s widget will be displayed.
refreshInterval Optional How often, in seconds, this module will update its data. Default: 300. Any positive integer
tempUnit Optional The temperature scale in which to display temperature values. Default: C. F for Fahrenheit, C for Celcius

Keyboard Controls

Key Action
/ Open/close the widget’s help window
h Show the previous weather location
l Show the next weather location
r Refresh the data
Show the previous Twitter account
Show the next Twitter account

Source Code

wtf/modules/weatherservices/weather/