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.
45 lines
1.5 KiB
45 lines
1.5 KiB
9 years ago
|
# Forecast Workflow for Alfred
|
||
|
|
||
|
![screenshot][screenshot]
|
||
|
|
||
|
[screenshot]: http://i.imgur.com/mxGnovo.png
|
||
|
|
||
|
# Requirements
|
||
|
|
||
|
- [Alfred](http://www.alfredapp.com/)
|
||
|
- [Alfred Powerpack](http://www.alfredapp.com/powerpack/)
|
||
|
- OS X Mavericks
|
||
|
|
||
|
# Installation
|
||
|
|
||
|
Download and install the [workflow][download].
|
||
|
|
||
|
[download]: https://github.com/kejadlen/forecast.alfredworkflow/releases/download/0.0.5/Forecast.alfredworkflow
|
||
|
|
||
|
Run `forecast-config VALUE` to set API keys and the default location:
|
||
|
|
||
|
- `FORECAST_API_KEY`: Get an API key [here][forecast-api-key].
|
||
|
- `GOOGLE_API_KEY`: Get an API key [here][google-api-key]. (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`.
|
||
|
|
||
|
[forecast-api-key]: https://developer.forecast.io/register
|
||
|
[google-api-key]: https://developers.google.com/maps/documentation/geocoding/#api_key
|
||
|
|
||
|
# TODO
|
||
|
|
||
|
- Handle errors gracefully
|
||
|
- Caching? (Probably unnecessary...)
|
||
|
- Use `Accept-Encoding: gzip` for Forecast calls
|
||
|
|
||
|
# Attributions
|
||
|
|
||
|
- [Climacons](http://adamwhitcroft.com/climacons/)
|
||
|
- [Forecast API](https://developer.forecast.io/docs/v2)
|
||
|
- [Google Geocoding API](https://developers.google.com/maps/documentation/geocoding/)
|
||
|
- [ipinfo.io](http://ipinfo.io/)
|