Jump to content

Search the Community

Showing results for 'unit conversion'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 20 results

  1. Alfred unit converter is a really fast smart calculator for Alfred with support for unit conversions to make it a bit comparable to the Google Calculator and Wolfram Alpha. If new units and/or other names for units should be added please let me know by creating an issue at:https://github.com/WoLpH/alfred-converter/issues Example queries Downloadable from Packal: http://www.packal.org/workflow/unit-converter 1m in cm # Just a simple conversion 2^30 byte # Using powers before conversion 5' # Converting units with special characters 20" # Like above 5 * cos(pi + 2) # Executing mathematical functions 5 * pi + 2 mm in m # Mathematical constants with unit conversion 1 * cos(pi/2) - sin(pi^2) # More advanced mathematical expressions ln(e^10) # Testing the ln(x) alias of log _e(x) log(e^10) # The normal log method 5+3^2" in mm # Testing math with unit conversion 1 + 2 / 3 * 4) mm^2 in cm^2 # Unbalanced paranthesis with unit conversion ((1 + 2 / 3 * 4) mm^2 in cm^2 # Unbalanced paranthesis the other way inf - inf # Not actually possible, but we backtrack to "inf" The list of units and conversions was downloaded from:http://w3.energistics.org/uom/poscUnits22.xml It returns results within 50 milliseconds making it fast enough to use the results instead of the standard alfred calculator. It supports more too Note: the parser automatically works when you start with a number or a ".". For all other cases (functions for example) it's best to just use "=". For example: "=ln(e^5)"
  2. Critical update to v3.1 on 2017-11-02 (Yahoo! Finance API is dead) Alfred-Convert v3 Yet another conversion workflow. Main features: Works offline, so super fast (occasional web access required to update exchange rates) Many hundreds of units supported 1000+ currencies supported, including cryptocurrencies Custom, user-defined units Auto-updates Downloading Download from GitHub. Usage The syntax is simple: the quantity, the unit you want to convert from then the unit you want to convert to. For example: conv 128 mph km conv 72in cm conv 100psi bar conv 20.5 m/s mph Please see the README on GitHub for full instructions. Supported units Currently, Alfred-Convert supports all the units understood by the underlying Pint library plus a handful of additional units and 1000+ currencies. You can see a list of the supported currencies on the GitHub page. Adding custom units You can also add your own custom units. Use convinfo to open the unit definition file and the documentation describing how the definition format. If you have a unit you think should be included by default, please create a corresponding GitHub issue or ask in this thread.
  3. Calculate Anything is a workflow for Alfred 4, that uses natural language and is able to calculate multiple things like currency, time, vat, percentage, etc. Why? There are several workflows out there but i just needed a workflow that worked naturally for example you can open alfred and type 100 + 9 and alfred will give you a result no need for keywords or hotkeys it just works, i wanted to be able to jus type 100 + 16% or 100 euros to usd or 100km to cm or 100 years to hours and a large etc. and so this workflow was created. Features - Natural language - type 100 euros to dollars or 100 euros in usd or 100€ to $ or 100eur usd or 100 euros a dolares. It does not matter, the same result will be displayed. - Currency - Up to 168 currencies - Units - 100 kilometers to meters or 100km to m or maybe 100km m - Percentages - 100 + 16% | 100 - 16% etc. - PX,Em,Rem,Pt - 12px or 12px to em or 12px pt - Time - time +15 years? now plus 15 hours? or need to convert a timestamp? - VAT - value added tax calculations, we all need this - Translations You can create your own translations to display results in your language - Keywords Extend the natural language in the queries so you can type 100 dolares a pesos and the code will see 100usd to mxn Download Download directly from Github releases page, make sure to download the latest release. Download here Base Configuration There's only one global configuration and is the language, this configuration will be used to display the messages in your own language. View the Translations secction for the available languaes. Configure it with. calculate configure and select Set base language and enter the language for example es_ES For more information about configuration click here Currency You can use natural language or type a few characters and that's all, for example: 100 usd to mxn 100$ in mxn 100€ to $ 100 euros to dollars 100 euros a dolares (you can also write it in your own language) 100eur (If no target the currency will be converted to the base currency that you configured) All this examples will simply work, you can add spaces between the value and the currency or don't. If by any chance you don't remember the currency symbol or abbreviation simply type calculate list and select "List Available Currencies" (view the gift above) Currency Options By default the workflow will use exchangerates api to make the conversion, exchangerates has only support for 32 currencies, if you need support for all the currencies that this worflow includes you need to get a FREE API Key from https://fixer.io it takes less than a minute. The following options are available for the currency. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set base currency This will become your base currency, if you type 100eur it will automatically be converted to mxn, examples of currency (USD, EUR, MXN, CAD, etc) Set currency locale Used to give format to the converted amount using the money format of your contry Set Fixer API Set your fixer API Key for support more currencies Currency Symbols You can also use currency symbols in your query for example 100¥ to € will be converted to 100JPY to EUR, here is a list of available symbols. Please go to the repo description on Github for a full list of supported symbols it's really difficult to write them here in the forum. View Currency Symbols Units You can write your query using natural language or just a few characters, either way this workflow will give you the result you need. 100 ounces to kilograms 100oz to kg 100oz = kg 100oz kg 10 years to months 10years to seconds 1 year to sec 1hr s 10 días a horas (use your own language) If you don't remember the unit abbreviation just simply type the name for example instead of "oz" you can type "ounce" or "ounces" or even use words in your own language for exaple "onza" or "onzas" in spanish. Finally if you still don't remember the unit abbreviation or it's name simply type calculate list and select "List Available Units" you can type to filter, etc. Please go to the repo description on Github for a full list of units it's really difficult to write them here in the forum. View Units Units Options The following options are available. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set System of Measurement Here you can define your System of Measurement, this option is still in development but as the workflow grows this might be necessary for US users, by default the metric system will be used but you can define imperial or metric Percentages You can easily calculate percentages for example: 15% of 50 = 7.50 //7.5 equals to 15% of 50 120 + 30% = 156 //120 plus the 30% of 120 120 plus 30% = 156 //120 plus the 30% of 120 120 - 30% = 84 //120 minus the 30% of 120 120 minus 30% = 84 //120 minus the 30% of 120 30 % 40 = 75% // 30 is 75% of 40. Translations and natural language can also be used 120 más 30% = 156 Time Time is triggered by a keyword because is not often used so you can simply open alfred and type time Gives you the current time time Converts the timestamp to a regular date time 1577836800 Gives you the time from now plus anything you want time +15 days time now plus 3 days Number of days until specified date time days until 31 december The start date of current year time start of year The start date of specified year time start of 2021 The end date of current year time end of year The end date of specified year time end of 2021 It also works in your language time inicio de 2020 time fin de 2020 time dias hasta 31 diciembre Get information about date time 31 December, 2021 18:00:00 time 31/12/2021 18:00:00 time 12/31/2021 18:00:00 Calculate the difference between two dates time 25 December, 2021 - 31 December, 2021 time 31-11-2019 - 21-11-2019 time 11/31/2019 - 11/21/2019 Time Options The following options are available. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set base timezone Base time zone to calculate dates in your time for example (America/Los_Angeles, Mexico/General, etc.) Add date format Configure a new date format so the date is displayed the way you want for example (j F, Y, g:i:s a) Delete date format It will show you a list of configured date formats, simply select the one you want to delete and press enter to remove it Time will use the language that you configure with Set base language VAT (value added tax) With this you can calculate the vat of a given amount. Like time, vat is also triggered with the keyword "vat" you can change the keyword in the workflow. Given the following query vat of 400 (with 16% vat configured, you can configure your own percentage) You will get VAT of 400 = 64 // VAT Amount 400 plus VAT = 464 // Amount plus vat 400 minus VAT = 344.82 // Amount minus vat VAT Options The following options are available. Simply launch Alfred and type calculate configure and select any of the options below. View the configuration section for more info Set VAT percentage for example (16%) Configuration You can easily configure the workflow simply by opening Alfred and typing calculate configure you will see a list of all the available options to configure the workflow, select the option you want and press enter then simply enter your value and again press enter to save it. Check the following gif if you have doubts. Translations Please check the available languages on Github, it's easier to update the information there and also how you can create a translation. Keywords Keywords are words that can be used when writing a query in natural language for example a keyword "ounces" will be converted to "oz", "kilometers" will be converted to "km" or "dollars" will be converted to "USD", "seconds" will become "s" and a large etc. This keywords allows the user to type in a more natural way and in their own language. You can write your own keywords to extend the functionality, please check the information on Github. Stop Words Stop words are words that can be used in the query when using natural language for example "100km to cm" - here the stop word is "to" Stop words are useful for two things: Allows the user to write more naturally and in their own language (e.g 100 dolares a mxn) "a" is the stop word Are used to check if the query has to be processed for example: 100km equals meters if the word "equals" is not registered in the stop_words array then it won't be processed. At the end this stop words are removed so 100km to cm becomes 100km cm. Please take a look at the readme on Github to learn more about this. For Currency, Percentages and Units this workflow will only process the query if it begins with a digit and it has at least 3 characters. Time and VAT have a keyword because those are not often used. Updates Updates are installed automatically when a new version is released you don't have to do anything but if want you can check for new updates manually just launch Alfred and type calculate update the workflow will check for updates and it will let you now if there are any updates available. Lastly This is the first workflow that I create I just had 3 days to do it and 1 was for finding, naming flags, creating translations, creating the readme and this post. If you find a bug or you think this workflow can be improved please let me know or if I created/configured/exported the workflow incorrectly please let me know and I'll fix it. I just purchased Alfred Powerpack and had a great time creating this workflow and I hope that someone finds it useful apart from my lovely wife.
  4. This workflow is awesome! However, I'm not able to use decimals in currency conversion, neither with point (.) nor with comma (,). Does it only support integers, or have I missed a setting somewhere? it works with unit conversions. Also, a feature request: Calculation of workdays that exclude weekends, e.g. today + X workdays. Would be perfect for quickly calculating delivery dates.
  5. If you're doing calculation and need the correct number of significant figures, it's never a problem when a conversion has more than necessary. Otherwise, you can get rounding errors. It would be useful it you could simply type the number without a keyword, and without a space on the unit ie. 4.1mm Instead of stating that no destination or defaults set, it would be useful to list the most common conversions (ex.. in the US its very common to convert mm to inch, whereas mm to cm is rather easy for a person). Check out the default setup for Spotlight, I think it lists common conversions, with no keyword. BTW, I only critique because the workflow is very cool and useful, thanks for it.
  6. I wrote a workflow in ruby to convert currency. Requires Alfred v3. Notice: The Old versions(v1.2-) api has been out of service at June 5, 2018. Please update to v1.3+ to keep using currency conversion feature. Github Download Features: Support 30+ currency units with fixer.io. Basic support for sign. e.g.,$,¥,£,etc. Customizable displayed currency units and base unit. Input once to get all result. Usage: Tap 'cy' to get latest exchange rates. Tap 'cy money' to get exchanged result. You can press enter to send the result to the clipboard. Tap 'add-cy', 'remove-cy' to customize displayed currency units. Tap 'base-cy' to set base currency unit. Hope you like it.
  7. Welcome @deivuh, There are several unit conversion Workflows for Alfred, take your pick.
  8. Note: This workflow is no longer maintained. This is a really simple workflow that performs unit conversions. Conversion commands look like: u {value} {in units} > {out units} You can include a space after the u keyword, but it's not required. Units can generally be abbreviated or not, as long as the input is unambiguous. Here are some valid commands: u 5km > miles u 5km > mi u5km>mi You can also do unit math (again, spaces are generally optional): u 1cm * 1in u 1in^2 / 2mm^2 u1cm+2.5in-3mm>ft Just remember that units matter. You won't get any output if you try to do something like 1cm * 1in > in, because multiplying two lengths gives an area (like in^2). The calculator is called as you type, so it'll give you an answer whenever you type a query it can process. Actioning the result will copy the value (just the number) to the clipboard. That's it! Well, there are also a couple options you can configure. You can open the configuration file with the command u>. The options are: "separator" - what separator to use between the input value and output units "precision" - how many decimal digits to include in the output (set to null for unlimited) More info and source is available here. Download Update 2014/05/22: You can now use a space between a number and its units (e.g., "5 km" in addition to "5km"). Update 2014/02/06: Unit math is back! Update 2013/12/07: Add output precision option (see above) Update 2013/12/01 (again): Bug fix Update 2013/12/01: Added support for using "space" as the unit separator, so you can do queries like "1mile km". Update 2013/11/30: Added Euros to the currency list. I also added a couple extra commands, accessible with the 'u>' command, Update 2013/11/29: Currency conversion is back. Update 2013/11/25: At last, I pushed out an update that should have this back up and running. It's using a local library now, so it's faster and not subject to the whims of Google. Sorry it took so long. Update 2013/11/5: Google shutdown the API this workflow was using on November 1, so it's broken until I switch it to something else. Sorry about that. I'll have it back up and running in a day or two. Update 2013/10/11: Bugfix Update 2013/8/14: It should now work with Snow Leopard (Python 2.6). Update 2013/8/13: Now with Alleyoop support!
  9. I wrote this workflow that already supports more units than you can shake a stick at (thanks to the library it's based on). No real fractions, however. I couldn't say how much interest there'd be in support for real fractions, as they're only really of interest to Americans, and USians are a (significant) minority of Alfred users according to the metrics I have. Regardless of what you think of my workflow, I suggest you check out the pint library (which my workflow is based on) to get an idea of how best to implement unit conversion. Your if … elseif … else … method for producing real fractions isn't realistically sustainable (you don't want such a large function for every possible unit). It needs to be abstracted into a generalised function that accepts a divisor/numerator/denominator/whatever, which can handle inches, ounces, pints, pounds, furlongs etc. If I were you, I'd look into implementing real fractions on top of pint or a similar library. It'd save you 99% of the work. There's probably already a Python library for real fractions out there, which you could combine with pint.
  10. Hi I still prefer Spotlight for unit conversion. Nice just typing 10' and having the length in mm, inches etc pop up. Can this be done in Alfred?
  11. I use CryptoCompare in my unit conversion workflow. Not sure if it meets your needs, but it supports a helluva lot of cryptocurrencies. https://www.cryptocompare.com/
  12. The built-in list of units is here: https://github.com/hgrecco/pint/blob/master/pint/default_en.txt. My additions are here: https://github.com/jason0x43/jc-units/blob/master/unit_defs.txt. I just added "C" and "F" for temperature (different names) and a definition for hectare (just for fun). The unit system is easy to extend, although it doesn't seem to automatically handle unit name clashes. I have some simple logic in the workflow to deal with situations like "u 1cup>oz", where the unit name "oz" refers to weight ounces, but we mean fluid ounces. Basically I have a table of alternate possibilities for some unit names. If a conversion fails and either the source or destination units are in the table, the converter tries again with the alternate units.
  13. I had started work on an update for this workflow, but gave it up when Apple integrated unit conversion into Spotlight, so this one is currently unmaintained.
  14. There are a few workflows for conversion already here on the forum. Take a look at these and see if that's what you have in mind: http://www.alfredforum.com/topic/3825-alfred-workflow-for-units-and-currencies-converter/ http://www.alfredforum.com/topic/3980-offline-unit-conversion-workflow/ Depending on your requirements and your knowledge, you could either tweak these yourself or make suggestions to the developers for improvements.
  15. I'am having problems with conversions from or to cups. I used "conv 1cup cc" and get "conversion input not understood". Is there a problem with "cup" as a unit?
  16. I believe that error's caused by an out of date scripting addition. Try following the steps here to fix it: http://helpx.adobe.com/photoshop/kb/unit-type-conversion-error-applescript.html Let me know if everything works after that.
  17. I tried the solutions listed on the Adobe "Unit type conversion error" support page but nothing seems to help. Here is the error log: /Users/[username]/Dropbox/Productivity-tools/Alfred.alfredpreferences/workflows/user.workflow.8C375D70-662E-4FC5-8FD8-9BD0F84E547F/browser_tabs/applescript_utils.rb:30:in `block in osascript': AppleScript error: 2014-05-26 21:35:32.757 osascript[741:507] Error loading /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions: dlopen(/Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions, 262): no suitable image found. Did find: (BrowserTabs::AppleScriptUtils::AppleScriptError) /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions: mach-o, but wrong architecture osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/QXPScriptingAdditions.osax" declares no loadable handlers. from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:217:in `popen_run' from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/open3.rb:99:in `popen3' from /Users/gravicle/Dropbox/Productivity-tools/Alfred.alfredpreferences/workflows/user.workflow.8C375D70-662E-4FC5-8FD8-9BD0F84E547F/browser_tabs/applescript_utils.rb:25:in `osascript' from /Users/gravicle/Dropbox/Productivity-tools/Alfred.alfredpreferences/workflows/user.workflow.8C375D70-662E-4FC5-8FD8-9BD0F84E547F/browser_tabs/applescript_utils.rb:11:in `run' from /Users/gravicle/Dropbox/Productivity-tools/Alfred.alfredpreferences/workflows/user.workflow.8C375D70-662E-4FC5-8FD8-9BD0F84E547F/browser_tabs/commands/command.rb:42:in `run' from /Users/gravicle/Dropbox/Productivity-tools/Alfred.alfredpreferences/workflows/user.workflow.8C375D70-662E-4FC5-8FD8-9BD0F84E547F/browser_tabs.rb:51:in `run_command' from /Users/gravicle/Dropbox/Productivity-tools/Alfred.alfredpreferences/workflows/user.workflow.8C375D70-662E-4FC5-8FD8-9BD0F84E547F/browser_tabs.rb:24:in `tabs' from filter.rb:7:in `<main>'
  18. It looks like that's being caused by an out of date scripting addition. Try updating it and let me know if that fixes it. http://helpx.adobe.com/photoshop/kb/unit-type-conversion-error-applescript.html If all goes well and it works, you can go ahead and remove the debugging code: ruby filter.rb "{query}"
  19. Hi all! Following my needs, I wrote a powerful workflow in Ruby. It's name is pincerna (butler in latin, for who cares XD). Capabilities: Unit & currency conversion. Translate text using Google Translate. View places on Google Maps. Get forecast from Yahoo! Weather. Manage VPNs and IPs. Access Chrome, Safari and Firefox bookmarks. System dependencies and required modification: This gem has some dependencies, but it can be installed using the gem command, so it shouldn't be too hard. Also, RVM is required on MacOSX 10.8 and below, in order to enable Ruby 1.9. Download: You can find the gem here: http://sw.cow.tc/pincerna http://www.github.com/ShogunPanda/pincerna http://www.alfredworkflow.com Let me know what you think about it. Hope you'll like it! Shogun
  20. I agree with you. This workflow is the best Alfred unit converter I've come across yet It interprets input sensibly and runs quickly :-) Agreed. designandsuch, is there a reason why the workflow requires the user to hit enter to get results? Why not preview the result of all possible matching calculations? I often just want to look up a conversion quickly and hitting enter is an additional key press. Besides, sometimes I might be interested in the other outputs too. One typo: Line 727 of units_v2.php should use the currency code "nzd" not "znd". EDIT: Seems like the workflow actually does preview the results once you add a space to the end of your query, and that hitting return simply does this for you. Why is the terminating space character required?
  • Create New...