Guest Posted December 9, 2021 Share Posted December 9, 2021 8 hours ago, biati said: hi @Fanghao a base unit for what? please provide more info, examples, etc. A base measurement unit for metric(or UK/US). For example, if i set metric as my base measurement unit, when I input 10inch it automatically converted to 25.4cm. And here is a screenshot of measurement units setting in MacOS system preferences. Thanks if you add this option in the next version. Link to comment
biati Posted December 9, 2021 Author Share Posted December 9, 2021 hi @Fanghao For now it's not planned, you are welcome to open a feature request in the Github repo to see if other users would like this to be implemented. Link to comment
az566 Posted December 14, 2021 Share Posted December 14, 2021 I'm getting an error with this workflow even when not using it. When I just launch Alfred I got an error that this workflow is broken. I've updated to the latest Monterrey version. Attached is the screenshot I get. Link to comment
vitor Posted December 14, 2021 Share Posted December 14, 2021 @az566 That has been addressed quite a few times in the thread, already. It’s also covered in the top post, fairly near the top. In sum, you need to install PHP via Homebrew. The linked posts go into detail. Link to comment
nande Posted December 23, 2021 Share Posted December 23, 2021 Hi, I cannot get the time command to function properly. The debugging tool gives me multiple errors in the line of: Quote Deprecated: Return type of Carbon\Carbon::__wakeup() should either be compatible with DateTimeInterface::__wakeup(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/X/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.EB279DDF-578D-4217-AD92-9E1AC0AB73AA/vendor/nesbot/carbon/src/Carbon/Traits/Serialization.php on line 118 {"items":[{"title":"23.12.21","subtitle":"Format d.m.y","arg":"23.12.21"},{"title":1640290107,"subtitle":"Timestamp","arg":1640290107}]} Any idea what the problem may be? Running OSX Monterey, latest version of alfred and latest version of php from the brew command. Thank you. Link to comment
vitor Posted December 24, 2021 Share Posted December 24, 2021 16 hours ago, nande said: Running OSX Monterey, latest version of alfred and latest version of php from the brew command. When debugging, never say “latest” but always the exact version. With “latest” we don’t know if you mean the latest beta or stable version, nor do we know if you’re really on the newest version. You may think you’re up to date but be mistaken, or might be a version behind because the auto-update hasn’t kicked yet, or we may be on what we think is the latest version but isn’t, or a multitude of other reasons. “Latest” also makes it difficult for people who face the same issue later on and find the conversation, as they’ll have no idea if their version matches the one in the report. Link to comment
nande Posted December 24, 2021 Share Posted December 24, 2021 10 hours ago, vitor said: When debugging, never say “latest” but always the exact version. With “latest” we don’t know if you mean the latest beta or stable version, nor do we know if you’re really on the newest version. You may think you’re up to date but be mistaken, or might be a version behind because the auto-update hasn’t kicked yet, or we may be on what we think is the latest version but isn’t, or a multitude of other reasons. “Latest” also makes it difficult for people who face the same issue later on and find the conversation, as they’ll have no idea if their version matches the one in the report. Thank you for your advice. Problem as quoted. Furthermore I am on: Alfred 4.6.1; Build 1274 MBP M1 PRO, OSX 12.1 Monterey Link to comment
hell-g Posted December 28, 2021 Share Posted December 28, 2021 Quote I cannot get the time command to function properly. Me too. Alfred 4.6.1 Build 1274 Monterey 12.1 , M1 Mac PHP 8.1.1 Link to comment
mnmkng Posted December 29, 2021 Share Posted December 29, 2021 Same for me. Exactly the same setup and versions. There's A LOT of deprecation messages in the debug log, but I also found this error: Quote [19:57:58.026] ERROR: Calculate Anything[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON: Deprecated: Return type of Carbon\CarbonInterface::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/mnmkng/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.EB4B5812-3073-413F-A5B4-F75BBFB34B3A/vendor/nesbot/carbon/src/Carbon/CarbonInterface.php on line 2789 Link to comment
mnmkng Posted December 29, 2021 Share Posted December 29, 2021 Ok, so I was able to fix the problem with time by downgrading to PHP 7.4. If someone has a better solution, please share, but this is what I needed to do:Uninstall PHP 8 brew uninstall php Install PHP 7.4 brew install php@7.4 Now, this is where it gets fun. Alfred does not support custom paths for script languages, so it won't find your PHP installation because Homebrew installs PHP 7.4 to a different folder. You need to: Go to the Homebrew opt folder cd /opt/homebrew/opt Create a symlink for the PHP installation folder ln -s ../Cellar/php/7.4.27 php Go to the Homebrew bin folder cd /opt/homebrew/bin Create a symlink for the PHP binary ln -s ../Cellar/php/7.4.27/bin/php php Now Alfred should be able to find your PHP 7 installation and you should be able to use time. Link to comment
oorbx Posted January 4, 2022 Share Posted January 4, 2022 Time function is not working for me as well. I have php 8. Will be there any update from developer, or should i downgrade php version ? Thanks 😶 Link to comment
vitor Posted January 23, 2022 Share Posted January 23, 2022 @mnmkng You just need: brew uninstall php brew install php@7.4 brew link php@7.4 ionstorm 1 Link to comment
tyyyo Posted February 4, 2022 Share Posted February 4, 2022 Hi is there anything that i missed such that the currency isnt working? [21:32:09.995] Logging Started... [21:32:12.256] Calculate Anything[Script Filter] Queuing argument '' [21:32:12.296] Calculate Anything[Script Filter] Script with argv '(null)' finished [21:32:12.298] Calculate Anything[Script Filter] {"items":[]} [21:32:12.461] Calculate Anything[Script Filter] Queuing argument '0' [21:32:12.486] Calculate Anything[Script Filter] Script with argv '(null)' finished [21:32:12.489] Calculate Anything[Script Filter] {"items":[]} [21:32:12.601] Calculate Anything[Script Filter] Queuing argument '00' [21:32:12.631] Calculate Anything[Script Filter] Script with argv '(null)' finished [21:32:12.633] Calculate Anything[Script Filter] {"items":[]} [21:32:13.472] Calculate Anything[Script Filter] Queuing argument '00u' [21:32:13.505] Calculate Anything[Script Filter] Script with argv '(null)' finished [21:32:13.508] Calculate Anything[Script Filter] {"items":[]} [21:32:13.585] Calculate Anything[Script Filter] Queuing argument '00us' [21:32:13.610] Calculate Anything[Script Filter] Script with argv '(null)' finished [21:32:13.616] Calculate Anything[Script Filter] {"items":[]} [21:32:13.861] Calculate Anything[Script Filter] Queuing argument '00usd' Link to comment
ryan1233 Posted June 5, 2022 Share Posted June 5, 2022 do I need a power pack to use this ? Link to comment
vitor Posted June 5, 2022 Share Posted June 5, 2022 Welcome @ryan1233, Yes, all Workflows require the PowerPack, as do features like the Clipboard History and Snippets. Link to comment
biati Posted June 6, 2022 Author Share Posted June 6, 2022 (edited) It's been a few months since the last time I posted here. There has been a few updates since then (I think I never posted those updates here) but today we released an update and just wanted you to know that the workflow is still maintained. Version 3.4.0 New: You can now provide a workflow variable to define the duration of the currencies cache New: Support for more cryptocurrencies, up to 5,000 New: You can also define custom cryptocurrencies Updated: Fixer.io API now uses API Layer, the workflow will validate your API key to avoid errors. Old API keys will work without problems. Improved: Now the workflow shows a message when it's updating currency and cryptocurrencies rates Improved: Replaced file_get_contents with curl for some operations Fixed: datastorage_force_binary was not working as expected Fixed: No output in cryptocurrencies when "from" and "to" were the same Fixed: Error on updater not working correctly with some PHP versions If you find a bug please create an issue on the Github repository. As always you can download the update from https://github.com/biati-digital/alfred-calculate-anything/releases Edited June 6, 2022 by biati Added download link vitor and JJJJ 2 Link to comment
afridho Posted June 6, 2022 Share Posted June 6, 2022 (edited) @biatithanks for the update man. i've found some bugs (i hope it's just me). i can't convert money currency for some symbol(i've try SGD & GBP). ex 76SGD, it will show me an error Quote The crypto currency is not available, check the docs. But for somereason, it works pretty well for USD and other symbols. Any fix? Edited June 6, 2022 by afridho some typo Link to comment
biati Posted June 7, 2022 Author Share Posted June 7, 2022 On 6/6/2022 at 1:24 PM, afridho said: @biatithanks for the update man. i've found some bugs (i hope it's just me). i can't convert money currency for some symbol(i've try SGD & GBP). ex 76SGD, it will show me an error But for somereason, it works pretty well for USD and other symbols. Any fix? Hi @afridho thank's for letting me know, I'll take a look at it this weekend. Link to comment
afridho Posted June 8, 2022 Share Posted June 8, 2022 @biatiok. let me know if it's just me have this bug. Great workflow btw! *must have Link to comment
alfredpanda Posted June 11, 2022 Share Posted June 11, 2022 I've noticed the same all of a sudden - it thinks GBP is cryptocurrency. Link to comment
biati Posted June 20, 2022 Author Share Posted June 20, 2022 @afridho @alfredpanda Version 3.5.0 is out and should fix that problem. As always, you can find the code and the latest version here https://github.com/biati-digital/alfred-calculate-anything/releases Link to comment
afridho Posted June 21, 2022 Share Posted June 21, 2022 8 hours ago, biati said: @afridho @alfredpanda Version 3.5.0 is out and should fix that problem. As always, you can find the code and the latest version here https://github.com/biati-digital/alfred-calculate-anything/releases Thank you, it works well now. 💯 Link to comment
Briscoe Posted June 24, 2022 Share Posted June 24, 2022 (edited) Thanks for this workflow - but how do you properly convert USD to Ethereum? I've set my base currency as USD and inputted my Coinmarket API. I've tried the below and nothing works: 1000 dollars in eth 1000 usd in eth 1000 dollars in ethereum 1000 dollars to eth Edited June 24, 2022 by Briscoe Link to comment
jdenormandie Posted June 26, 2022 Share Posted June 26, 2022 On 11/15/2019 at 7:16 AM, Thomas Dunne said: Really interesting and useful. But I've noticed some cooking and everyday small life US-American units aren't supported: For example, teaspoons, tablespoons, cups... and fractions: 1/8 inch, 1/16 tablespoon It'd be nice to have those. Would really love to be able to convert to these US volume measurements. Link to comment
juubee Posted July 16, 2022 Share Posted July 16, 2022 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ==> Checking for `sudo` access (which may request your password)... Password: ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew Press RETURN/ENTER to continue or any other key to abort: ==> /usr/bin/sudo /usr/sbin/chown -R username:admin /usr/local/Homebrew ==> Downloading and installing Homebrew... HEAD is now at f041a59af Merge pull request #13547 from FnControlOption/patch-12 fatal: Could not resolve HEAD to a revision Updated 1 tap (homebrew/cask). ==> Installation successful! ==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (nor will any be during this install run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations ==> Next steps: - Run brew help to get started - Further documentation: https://docs.brew.sh username@iMac-27 ~ % brew install php Warning: No available formula with the name "php". ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching for a previously deleted formula (in the last month)... Error: No previously deleted formula found. ==> Searching taps on GitHub... Error: No formulae found in taps. hi, i typed into terminal to try to install but this is what i got and the workflow still doesn't work. let me know what i'm doing wrong? i'm on Monterey version 12.4 Alfred 5.0 [2057] Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now