Forecast Weather Action

Sharing and discussing custom actions for LaunchBar
prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Forecast Weather Action

Post by prenagha » Tue Jul 15, 2014 5:57 pm

Custom action that displays weather forecast for a location using forecast data from http://forecast.io
    * Weather warnings/watches alerts
    * Now, Next Hour, Today, and Week forecasts
    * Sunrise, Sunset, High, Low, Wind, Precipitation
    * Manage multiple locations
    * Magic, "Follow Me", location shows location for wherever you are
    * Custom name and icons for locations
https://github.com/prenagha/launchbar#forecast

Image

Thanks to:

Comments and suggestions welcome.
Last edited by prenagha on Mon Jul 28, 2014 1:49 am, edited 1 time in total.

skeskali
Posts: 16
Joined: Sun Jun 29, 2014 8:11 am

Re: Forecast Weather Action

Post by skeskali » Tue Jul 15, 2014 9:41 pm

This is incredible - thank you! Is it possible to set a preference for Celsius instead of Fahrenheit?

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Tue Jul 15, 2014 10:11 pm

skeskali wrote:This is incredible - thank you! Is it possible to set a preference for Celsius instead of Fahrenheit?


I'd love to try.

Please go to http://forecast.io and see if they have forecast data for your location.
If so please send me the full forecast.io URL (which will include the location latitude and longitude) and i will see if I can get it all to work

email me at prenagha at renaghan.com

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Wed Jul 16, 2014 3:51 am

Update, now version 2.0 is out there on github

https://github.com/prenagha/launchbar#forecast

Navigate to Locations then Settings within the action to
- Support for US, metric, Canada, and UK units, °F and °C
- Support for ISO country based location search
- Limited non-English language support currently, but if anyone is interested in translating fully into a Forecast language (German, French, Spanish, Dutch, Tetum) let me know and I will localize if you can provide the translation

My goal is to support whatever forecast.io can support. Comments and suggestions welcome.

Image
Last edited by prenagha on Mon Jul 28, 2014 1:50 am, edited 1 time in total.

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Wed Jul 16, 2014 10:27 pm

version 2.3 released

adds LaunchBar and Forecast action version checking to the Settings menu

https://github.com/prenagha/launchbar#forecast

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Thu Jul 17, 2014 3:48 am

For those of you that care, this action, and all actions in my library are now
properly code signed and available for download in ready-to-go .lbaction file format

see links to them all at https://github.com/prenagha/launchbar

skeskali
Posts: 16
Joined: Sun Jun 29, 2014 8:11 am

Re: Forecast Weather Action

Post by skeskali » Mon Jul 21, 2014 10:23 am

I'm getting an error message whenever I try to retrieve a forecast.

ImageClick for large view - Uploaded with Skitch

Then the Launchbar menu asks me to set my location, but then returns location not found. This is with version 2.7.

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Mon Jul 21, 2014 4:26 pm

It is trying to get the name for your current location, but the web service is not responding after 10 seconds.

here is a sample URL for that web service. please try. does it work from where you are?
should respond with a location in Chicago

https://nominatim.openstreetmap.org/rev ... n=-87.8825

released 2.8 version that will show 'Location name not available' as the name if the web service doesn't work. so at least you can continue, then can use the location management actions to rename to your liking

https://github.com/prenagha/launchbar#forecast

let me know if that takes care of it

skeskali
Posts: 16
Joined: Sun Jun 29, 2014 8:11 am

Re: Forecast Weather Action

Post by skeskali » Mon Jul 21, 2014 6:37 pm

I was able to see the location data for Chicago. It seems to be working this morning - maybe it was just a timeout problem with forecast.io? Thanks for addressing it so quickly.

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Mon Jul 21, 2014 10:24 pm

updated actions info site

http://prenagha.github.io/launchbar/

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Tue Jul 22, 2014 10:05 pm

update to version 2.9 now with a much more reliable geo to name service (should not ever timeout)

http://prenagha.github.io/launchbar/forecast.html

skeskali
Posts: 16
Joined: Sun Jun 29, 2014 8:11 am

Re: Forecast Weather Action

Post by skeskali » Fri Jul 25, 2014 7:15 am

Since upgrading to 2.9, it seems to only find locations in the United States. I can't find any Canadian cities.

prenagha
Rank 3
Rank 3
Posts: 87
Joined: Mon Nov 05, 2012 4:10 pm

Re: Forecast Weather Action

Post by prenagha » Fri Jul 25, 2014 5:28 pm

skeskali wrote:Since upgrading to 2.9, it seems to only find locations in the United States. I can't find any Canadian cities.


Do you mean the name of the "Current Location" or when you search for a location by query and it returns result?

I tested the Current Location best I could and it seems to work for Canada locations.

For the location search by query make sure you have changed the Location Search Country under Locations → Settings → to "Canada" (default is US)

skeskali
Posts: 16
Joined: Sun Jun 29, 2014 8:11 am

Re: Forecast Weather Action

Post by skeskali » Sat Jul 26, 2014 6:20 pm

It seemed that the default location country switched from Canada to the US somehow. I've reset it. Thanks for being so patient with me. I really love this action!

ttscoff
Posts: 2
Joined: Mon May 17, 2010 1:22 pm

Re: Forecast Weather Action

Post by ttscoff » Sun Jul 27, 2014 10:53 pm

Dude, this is awesome. I had just started working on the same thing this morning, glad I saw that you had it nailed before I put any more time into it.

I ran into a question along the way. Is it possible to return an item that accepts text input? Or is it really necessary to create a second action just to request an API key, etc.?

Post Reply