Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Latest commit

 

History

History

weather

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Weather Widget

Displays weather information from Dark Sky

Usage

local weather = require 'obvious.weather'

-- If you put your configuration under version control, I recommend putting
-- this part in a separate, unversioned file
weather.set_api_key(API_KEY) -- Get this from Dark Sky; don't share it with anyone!
weather.set_latitude(lat)
weather.set_longitude(lat)
weather.set_metric(is_metric) -- optional; defaults to true

widget_box:add(weather())

Nice to Have Features

  • Be able to update your location without writing Lua (by hand, or ask a service)
  • Details view popup when you click on the widget (perhaps with hourly/daily) forecast
  • Phases of the moon
  • Custom icons rather than just Unicode glyphs