Weather menubar app for hammerspoon users.
Important EOL Notice: As of Thursday, Jan. 3, 2019, the weather.yahooapis.com and query.yahooapis.com for Yahoo Weather API will be retired. To continue using our free Yahoo Weather APIs, use https://weather-ydn-yql.media.yahoo.com/forecastrss.
- Copy the repo to your hammerspoon folder.
cp -r hs-weather ~/.hammerspoon
- Add this to your init.lua
local weather = require("hs-weather")
weather.start()
- Modify config.json to suit your needs
geolocation: true
=> if hammerspoon has location services enabled, will get weather for current location and thelocation
parameter will be ignored
Now the weather should be shown in the menu bar.
NOTES
- click updates weather
- hover shows last yahoo update for the location
- if right after opening hammerspoon it shows N/A, just click to retry (this happens because sometimes yahoo returns an empty response for the location)
- Config can also be passed as an argument to weather.start() e.g.
local weather = require("hs-weather")
weather.start({
geolocation = true,
units = 'F'
})
- Default refresh is 5 minutes
- Disable by calling
weather.stop()
Weather data: Yahoo Weather API. It does not require an api key.
Icons by RNS, Freepik, Vectors Market, Yannick at http://www.flaticon.com