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 179cbaacbe
[alfred] Update Forecast workflow
10 years ago
..
icons [alfred] Add Forecast workflow 10 years ago
2A5C0A87-204E-49EA-94A7-8E62BB4EFD8A.png [alfred] Add Forecast workflow 10 years ago
CHANGELOG.md [alfred] Add Forecast workflow 10 years ago
README.md [alfred] Add Forecast workflow 10 years ago
alfred.rb [alfred] Add Forecast workflow 10 years ago
forecast-config.rb [alfred] Add Forecast workflow 10 years ago
forecast.rb [alfred] Update Forecast workflow 10 years ago
forecaster.rb [alfred] Add Forecast workflow 10 years ago
geocoder.rb [alfred] Add Forecast workflow 10 years ago
icon.png [alfred] Add Forecast workflow 10 years ago
info.plist [alfred] Add Forecast workflow 10 years ago
location.rb [alfred] Add Forecast workflow 10 years ago
spark.rb [alfred] Add Forecast workflow 10 years ago
test_alfred.rb [alfred] Add Forecast workflow 10 years ago
test_spark.rb [alfred] Add Forecast workflow 10 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. If you never need to search for a location, this can be omitted by using DEFAULT_LAT_LONG.)
  • DEFAULT_LOCATION: Ex. "Seattle, WA".
  • DEFAULT_LAT_LONG: Only required if GOOGLE_API_KEY is unavailable, since DEFAULT_LOCATION can't be geocoded. Format: lat,long.

TODO

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

Attributions