Skip to content

maique/dark-sky.alfredworkflow

 
 

Repository files navigation

Dark Sky Workflow for Alfred

screenshot

Requirements

Installation

Download and install the workflow.

These environment variables can be configured in Alfred:

  • DARK_SKY_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 Dark Sky API calls

Attributions

About

A Dark Sky workflow for Alfred

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%