question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify spreadsheet currency

See original GitHub issue

From the looks of the documentation and --help output, it doesn’t seem possible to target region-specific supplier websites—this makes kicost more or less only useful to those operating in the US out-of-the-box, as the USD costs don’t necessarily reflect the cost from the same supplier elsewhere and in other currencies.

Would it be possible to add as an enhancement the ability to specify a country/region, e.g. using digikey.ca instead of digikey.com, either globally or on a per-supplier basis?

I’m not sure how consistently these region-specific sites are defined across suppliers—it seems they are generally listed exhaustively (DigiKey Mouser), so it might be possible to allow the user to specify just their TLD and keep a mapping of TLD to URL in each supplier’s module. Alternatively, just let users specify the specific site variant they want for each supplier, and alter the TLD or subdomain as appropriate.

(For now I’m explicitly altering the source of a local copy - not the cleanest workaround!)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
xesscorpcommented, Jan 30, 2018

Using the Octopart API comes up a lot. Here are some problems with it:

  1. You need to obtain and enter a user ID to use it.
  2. It only allows you a set number of API queries per month before charges kick in.
  3. Altium owns it now so who knows what will happen with it.

Mouser and Digikey also have their own APIs. Digikey required a user ID to access it; Mouser didn’t but restricted the pricing data to purchase quantities of 1 and 10. And there were other restrictions the last time I checked. Then there are all the other distributors that don’t have a public API at all.

Web-scraping was the only approach I found in 2015 that avoided all these problems and made KiCost easy to install and use. Before going down the API route, someone will have to go through all the available APIs and determine what their current restrictions are and how they impact on getting costs and other data from the distributors. Then you can make an informed decision about which way to go.

0reactions
hildogjrcommented, Jun 18, 2018

#275 give us one step forward to Mouser country/currency configuration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use currencies in your spreadsheet
In Sheets, select the cells containing the currency you want to change. Click Format and then Number and then More Formats and then...
Read more >
How to Change Currency in Google Sheets
First, select the cells you wish to format. · On the top menu, click on “Format.” · From the dropdown menu, move the...
Read more >
How to Change Currency in Google Sheets
In the Locale drop down, select the country you want your default currency format to be set to. Since we want our default...
Read more >
Format numbers as currency
in the Number group on the Home tab. (If you want to apply the Currency format instead, select the cells, and press Ctrl+Shift+$.)...
Read more >
How to Change Currency in Google Sheets
If you type in your numbers in the cell, they don't automatically appear as currencies. Select the cells that you want to apply...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found