You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alpha Chen e7f387b720
[alfred] Update workflows
9 years ago
..
icons [alfred] Update workflows 9 years ago
vendor/bundle [alfred] Update workflows 9 years ago
2A5C0A87-204E-49EA-94A7-8E62BB4EFD8A.png [alfred] Update workflows 9 years ago
CHANGELOG.md [alfred] Update workflows 9 years ago
Gemfile [alfred] Update workflows 9 years ago
Gemfile.lock [alfred] Update workflows 9 years ago
README.md [alfred] Update workflows 9 years ago
Rakefile [alfred] Update workflows 9 years ago
config.rb [alfred] Update workflows 9 years ago
forecast.rb [alfred] Update workflows 9 years ago
forecaster.rb [alfred] Update workflows 9 years ago
geocoder.rb [alfred] Update workflows 9 years ago
icon.png [alfred] Update workflows 9 years ago
info.plist [alfred] Update workflows 9 years ago
location.rb [alfred] Update workflows 9 years ago
spark.rb [alfred] Update workflows 9 years ago
test_spark.rb [alfred] Update workflows 9 years ago

README.md

Forecast Workflow for Alfred

screenshot

Requirements

Installation

Download and install the workflow.

Run forecast-config VALUE to set API keys and the default location:

  • FORECAST_API_KEY: Get an API key here.
  • GOOGLE_API_KEY: Get an API key here. (Used for geocoding queries. This can be omitted if you only want the forecast for the current location.)
  • FORECAST_UNITS: Defaults to auto, which sets the units based on the location. Use si for Celsius and us for Fahrenheit.
  • DEFAULT_LAT_LONG: Set this to override IP geolocation. Ex: 47.7396,-122.3426 for Seattle.
  • DEFAULT_LOCATION: Used for displaying the location name when using DEFAULT_LAT_LONG.

TODO

  • Handle errors gracefully
  • Caching? (Probably unnecessary...)
  • Use Accept-Encoding: gzip for Forecast calls

Attributions