deanishe / alfred-convert

Convert between different units in Alfred

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Period to Frequency

xhain opened this issue · comments

commented

As a user of the convert alfred workflow I want to be able to convert from frequency (Hz) to a period back and forth.

// Period (T) to Frequency (Hz)

Input: conv 5 s Hz
Output: 0.2 Hz

Input: conv 0.25 s Hz
Output: 4 Hz

Input: conv 1 ms Hz
Output: 1000 Hz

// Frequency (Hz) to Period (T)

Input: conv 1000 Hz ms
Output: 1 ms

You need to define a Pint context in the custom definitions file.

Then you can use the context in conversions, as described in the README.