jdfwarrior

Weather Workflow (with Conditions and Forecast)

68 posts in this topic

weather.png

 

Updated 3/18:

NOTE: Set your location again so a default weather unit gets set initially, then change it.

Removed saving to the Workflow Data folder and actually save IN the workflow folder now. Should fix issue a few users are seeing and also allows syncing weather location.

 

Download

picksio, donparr, oderwat and 14 others like this

Share this post


Link to post

This is awesome.  Thank you!

 

One small bug:  It appears the ordering of the forecast command is out of order, looks like a small problem on array positioning.

 

I get back Sunday, Thurs, Fri, Sat

Share this post


Link to post
This is awesome.  Thank you!

 

One small bug:  It appears the ordering of the forecast command is out of order, looks like a small problem on array positioning.

 

I get back Sunday, Thurs, Fri, Sat

 

That's interesting. I haven't spotted that one yet. I'll check it. I should be able to sort them once added.

Share this post


Link to post
That's interesting. I haven't spotted that one yet. I'll check it. I should be able to sort them once added.

 

I'm getting the same issue.

Share this post


Link to post

Great stuff!

Would it be possible to get the source code for this workflow?

Now, fahrenheit is the standard unit, but I would like to see only Celsius.

Otherwise, very cool workflow!

Share this post


Link to post
Great stuff!

Would it be possible to get the source code for this workflow?

Now, fahrenheit is the standard unit, but I would like to see only Celsius.

Otherwise, very cool workflow!

 

If you download the workflow & change the extension from .alfredextension to .zip, you can unzip the files & have access to the source files.

 

You can also right-click on the workflow on the left hand side under preferences and choose "Show in Finder" to view the files.

Share this post


Link to post
Great stuff!

Would it be possible to get the source code for this workflow?

Now, fahrenheit is the standard unit, but I would like to see only Celsius.

Otherwise, very cool workflow!

 

It shows F and C in the conditions and the forecast data... I did that intentionally so people wouldn't have to worry with setting the default kind

Share this post


Link to post
If you download the workflow & change the extension from .alfredextension to .zip, you can unzip the files & have access to the source files.

You can also right-click on the workflow on the left hand side under preferences and choose "Show in Finder" to view the files.

Thanks for the info!@David I cannot read the Fahrenheit scale at all, so it would be nice to completely remove this. I'll thinker with the extension for a bit.

Share this post


Link to post

Yea but, what I'm saying is... in both keywords... it shows 

 

<location>: <condition>

High: <temp f> (<temp c>) Low: <temp f> (<temp c>)

 

It shows both. Why would you need to tinker with anything? It shows both formats

Share this post


Link to post
This is awesome.  Thank you!

 

One small bug:  It appears the ordering of the forecast command is out of order, looks like a small problem on array positioning.

 

I get back Sunday, Thurs, Fri, Sat

 

Does it do it every time?

 

Can you try this version and see if it works correctly? I made a small comparison function to sort the array items based on the epoch value of that day. I can't test it properly because I've never noticed it do that. They have always shown up in the correct order for me.

 

http://d.pr/f/rEpc

Share this post


Link to post

I think it only reorders after you action one of the results. I had the same problem, but removing ~/Library/Application Support/Alfred 2/Databases/knowledge.alfdb and relaunching Alfred results in them going back to the correct order.

 

It'd be nice if there were a way for workflow developers to turn off Alfred's knowledge per extension, so we could sort results reliably. Maybe an attribute on the <items> tag?

Share this post


Link to post

What about not giving it a "uid" ? Or giving it a timestamp+n instead. That's what I do to avoid ordering my results. Looks like it works.

Share this post


Link to post

Yeah that's probably what it is.. I can update it again and put the epoch in the uid as well so it won't get sorted via knowledge.

Share this post


Link to post
I think it only reorders after you action one of the results. I had the same problem, but removing ~/Library/Application Support/Alfred 2/Databases/knowledge.alfdb and relaunching Alfred results in them going back to the correct order.

 

It'd be nice if there were a way for workflow developers to turn off Alfred's knowledge per extension, so we could sort results reliably. Maybe an attribute on the <items> tag?

 

This fixed the problem for me too. I like the idea of being able to turn off knowledge, I think that's very important

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now