Jump to content

Recommended Posts

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. :)

image.thumb.png.2c024a54dc2a61cb4537bd17ca92820c.png

Link to comment
  • 2 weeks later...

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
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
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

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

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
  • 3 weeks later...
  • 2 weeks later...

822216635_CleanShot2022-02-04at21_32_50.png.f927b55dab96ab7d2f8f71184a42ce1f.png204776268_CleanShot2022-02-04at21_33_47.png.406d0b45bc863ca7688b8d69fe6d1ce5.png

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
  • 4 months later...

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 by biati
Added download link
Link to comment

@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 by afridho
some typo
Link to comment
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
  • 2 weeks later...

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 by Briscoe
Link to comment
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
  • 3 weeks later...
/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

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
×
×
  • Create New...