Skip to content

skamsie/hs-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hs-weather

Weather menubar app for hammerspoon users.

⚠️ DEPRECATED

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.

Setup

  1. Copy the repo to your hammerspoon folder. cp -r hs-weather ~/.hammerspoon
  2. Add this to your init.lua
local weather = require("hs-weather")
weather.start()
  1. Modify config.json to suit your needs
  • geolocation: true => if hammerspoon has location services enabled, will get weather for current location and the location parameter will be ignored

Now the weather should be shown in the menu bar.

Screen Shot 2016-08-21 at 2.37.41 PM.png

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()

Credits

Weather data: Yahoo Weather API. It does not require an api key.
Icons by RNS, Freepik, Vectors Market, Yannick at http://www.flaticon.com

About

Weather menubar app for hammerspoon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages