| 1 | # Weather Widget |
| 2 | |
| 3 | Displays weather information from [Dark Sky](https://darksky.net) |
| 4 | |
| 5 | # Usage |
| 6 | |
| 7 | ```lua |
| 8 | local weather = require 'obvious.weather' |
| 9 | |
| 10 | -- If you put your configuration under version control, I recommend putting |
| 11 | -- this part in a separate, unversioned file |
| 12 | weather.set_api_key(API_KEY) -- Get this from Dark Sky; don't share it with anyone! |
| 13 | weather.set_latitude(lat) |
| 14 | weather.set_longitude(lat) |
| 15 | weather.set_metric(is_metric) -- optional; defaults to true |
| 16 | |
| 17 | widget_box:add(weather()) |
| 18 | ``` |
| 19 | |
| 20 | # Nice to Have Features |
| 21 | |
| 22 | * Be able to update your location without writing Lua (by hand, or ask a service) |
| 23 | * Details view popup when you click on the widget (perhaps with hourly/daily) forecast |
| 24 | * Phases of the moon |
| 25 | * Custom icons rather than just Unicode glyphs |