[LB6 Actions] A library of actions

Sharing and discussing custom actions for LaunchBar
hlissner
Rank 2
Rank 2
Posts: 42
Joined: Mon Jun 16, 2014 6:06 am
Location: Toronto, ON
Contact:

Re: [LB6 Actions] A library of actions

Post by hlissner » Mon Jul 07, 2014 7:16 am

More actions and updates:

  • Updated: Time in
    - Now prints in 12-hour format by default. If people like 24-hour mode, I can introduce a preference setting. Let me know.
    - Shows the timezone and GMT offset
    - Suggests locations you've previously looked up as you type
    - Google API key is now optional! Works fine without.
    Image
  • New: Forecast
    Shows you a 7-day weather forecast for any location; or set a default location in your preferences.

    - Uses openweathermap.org's API: no key required
    - You can change to farenheit in Preferences (set use_metric to false)

    Image
  • New: Temperature In
    Like Time In/Forecast, but shows you the current and high/low temperatures for specified or default locations. Just in case people care less about the forecast and more about the current temperature.

    - Uses openweathermap.org's API: no key required
    - You can change to farenheit in Preferences (set use_metric to false)

    Image

Aside from that, I've refactored a lot of code among all the actions (and changed some of their names). Suggestions, comments or requests welcome!
Last edited by hlissner on Thu Aug 06, 2015 10:55 pm, edited 2 times in total.

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Re: [LB6 Actions] A library of actions

Post by Jono » Mon Jul 07, 2014 12:55 pm

That's great, thanks! I'm also using the forecast one too :)

hlissner
Rank 2
Rank 2
Posts: 42
Joined: Mon Jun 16, 2014 6:06 am
Location: Toronto, ON
Contact:

Re: [LB6 Actions] A library of actions

Post by hlissner » Thu Jul 10, 2014 4:54 am

Updates:
  • Convert Currency
    * Switched to freecurrencyconverterapi.com's API
    * Now suggests currencies organically (see gif)
    * Implemented caching of ze exchange rates; speedy speedy!
    * Splits up the result for separate selection

    Image
  • Domai.nr
    * Implemented caching (much snappier!)
  • TimeBar and Set Status
    * No longer wraps Applescript/shell functionality in JS. Using native scripts = snappier!
  • Is Site Up
    * Now accepts multiple domains (separated by newlines)

Additions
  • Enter Path in Dialog
    Sets the nearest Open/Save dialog to the folder you send it in LaunchBar. If no folder is provided, the path in the foremost Finder window will be used. Inspired by achabotl's Enter Path script: https://github.com/achabotl/Applescript ... pplescript

    Warning: this script uses UI scripting. Not only do you need to allow LaunchBar to control your computer in your accessibility preferences, but it's a bit of a hack: all it does is blindly switch over to the frontmost app (hoping it has an Open/Save dialog), presses cmd+shift+g, types in the path and presses "Go". If anyone can suggest anything better, let me know.
  • Number Trivia
    A silly little action that gives you random trivia (from numberapi.com) about a number, any number. Or a random number if you don't give it one. Such as:

    "34 is the lucky number of Victor Pelevin's protagonist Stepan Mikhailov in the novel Numbers."
Last edited by hlissner on Thu Aug 06, 2015 10:56 pm, edited 2 times in total.

iRounak
Rank 4
Rank 4
Posts: 191
Joined: Fri Oct 23, 2009 7:11 pm
Contact:

Re: [LB6 Actions] A library of actions

Post by iRounak » Thu Jul 10, 2014 5:16 am

thanks for currency conversion

veke71
Rank 2
Rank 2
Posts: 62
Joined: Sun Jul 03, 2011 10:14 pm

Re: [LB6 Actions] A library of actions

Post by veke71 » Thu Jul 10, 2014 9:46 am

Please bring the 24h setting back to TimeIn. Thanks again for the EXCELLENT display of extensions, let's hope they open up the official page soon (with auto updates?!)

hlissner
Rank 2
Rank 2
Posts: 42
Joined: Mon Jun 16, 2014 6:06 am
Location: Toronto, ON
Contact:

Re: [LB6 Actions] A library of actions

Post by hlissner » Thu Jul 10, 2014 10:10 am

veke71 wrote:Please bring the 24h setting back to TimeIn. Thanks again for the EXCELLENT display of extensions, let's hope they open up the official page soon (with auto updates?!)


You're very welcome! Also, done! I've added two settings in Time In's Preferences.plist: format_24hours and show_seconds.

By default they're both disabled. As a shortcut, run Time In while holding CTRL and it'll select Preferences.plist.

Also, added some new day/night icons:

Image
Last edited by hlissner on Thu Aug 06, 2015 10:56 pm, edited 1 time in total.

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Re: [LB6 Actions] A library of actions

Post by Jono » Thu Jul 10, 2014 11:36 am

hlissner wrote:Updates:
  • Convert Currency
    * Switched to freecurrencyconverterapi.com's API
    * Now suggests currencies organically (see gif)
    * Implemented caching of ze exchange rates; speedy speedy!
    * Splits up the result for separate selection

Thanks! Any chance of allowing the letters for currencies to be typed in lowercase instead of only capitals? My fingers are too lazy to type in caps :P

iRounak
Rank 4
Rank 4
Posts: 191
Joined: Fri Oct 23, 2009 7:11 pm
Contact:

Re: [LB6 Actions] A library of actions

Post by iRounak » Thu Jul 10, 2014 4:56 pm

you can type lower case

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Re: [LB6 Actions] A library of actions

Post by Jono » Thu Jul 10, 2014 5:13 pm

iRounak wrote:you can type lower case

If I type 20 gbp or 20 usd it doesn't show any results. Only if I use capitals does it show results.

iRounak
Rank 4
Rank 4
Posts: 191
Joined: Fri Oct 23, 2009 7:11 pm
Contact:

Re: [LB6 Actions] A library of actions

Post by iRounak » Thu Jul 10, 2014 5:17 pm

Screen Shot 2014-07-10 at 8.46.39 pm.png
Screen Shot 2014-07-10 at 8.46.39 pm.png (23.93 KiB) Viewed 16596 times

Jono
Rank 4
Rank 4
Posts: 161
Joined: Mon Feb 25, 2008 11:25 am
Location: UK
Contact:

Re: [LB6 Actions] A library of actions

Post by Jono » Thu Jul 10, 2014 5:24 pm

Not for me

Screen Shot 2014-07-10 at 04.22.30 pm.png
Screen Shot 2014-07-10 at 04.22.30 pm.png (10.32 KiB) Viewed 16596 times

veke71
Rank 2
Rank 2
Posts: 62
Joined: Sun Jul 03, 2011 10:14 pm

Re: [LB6 Actions] A library of actions

Post by veke71 » Thu Jul 10, 2014 6:33 pm

THANKS!

Roller
Rank 1
Rank 1
Posts: 30
Joined: Wed Jul 18, 2012 8:21 pm

Re: [LB6 Actions] A library of actions

Post by Roller » Thu Jul 10, 2014 7:11 pm

I installed "Forecast" and "Temperature". I want to change from Celsius to Fahrenheit so I opened the preference file for both actions and changed true to false. Making that change works in "Temperature" but "Forecast" is still showing results in Celsius.

hlissner
Rank 2
Rank 2
Posts: 42
Joined: Mon Jun 16, 2014 6:06 am
Location: Toronto, ON
Contact:

Re: [LB6 Actions] A library of actions

Post by hlissner » Thu Jul 10, 2014 8:58 pm

Roller wrote:I installed "Forecast" and "Temperature". I want to change from Celsius to Fahrenheit so I opened the preference file for both actions and changed true to false. Making that change works in "Temperature" but "Forecast" is still showing results in Celsius.


Hey there. I suspect this is because your first query (in Celsius) was cached (forecasts are cached for an hour, per location). To force Forecast to clear/ignore the cache, hold down shift while you run the action.

Jono wrote:Thanks! Any chance of allowing the letters for currencies to be typed in lowercase instead of only capitals? My fingers are too lazy to type in caps :P

iRounak wrote:you can type lower case

Jono wrote:Not for me


Between my last post and now I added "smartcase" search (i.e. capitals are matched against the codes, and lowercase is matched against the full currency name). So you two may have two slightly different versions.

Anyhow, I've updated Convert Currency to now do: lower case = matched against both currency name and code (e.g. in = IND or Indian Rupee), and upper case = only against currency code (e.g. IN = IND). You should start seeing results either way now (and case doesn't matter when you're finally computing the result).

Mind you, the suggestions aren't for people that know the currency codes already XD (e.g. type "yen", get JPY).

Cheers.

Roller
Rank 1
Rank 1
Posts: 30
Joined: Wed Jul 18, 2012 8:21 pm

Re: [LB6 Actions] A library of actions

Post by Roller » Thu Jul 10, 2014 9:34 pm

hlissner wrote:
Roller wrote:I installed "Forecast" and "Temperature". I want to change from Celsius to Fahrenheit so I opened the preference file for both actions and changed true to false. Making that change works in "Temperature" but "Forecast" is still showing results in Celsius.


Hey there. I suspect this is because your first query (in Celsius) was cached (forecasts are cached for an hour, per location). To force Forecast to clear/ignore the cache, hold down shift while you run the action.

Cheers.


Running the action while holding shift down corrected the situation. Thank you very much. :D

Post Reply