Author

Topic: [ANNOUNCE] Litecoin Windows gadget which displays LTC and currency amounts (Read 8491 times)

sr. member
Activity: 529
Merit: 271
New version of gadget is available. If you're using it, please download it as this fixes a bug where in certain conditions there are too many requests to the APIs.

You can download the new version on the gadget page: http://domchi.cc/mylitecoins/
sr. member
Activity: 529
Merit: 271
The new version of the gadget is available. Please upgrade if your target currency field in settings is not blank.

Please note that gadget is using third party API for conversion to fiat. You'll have to register with third party API to continue using this feature (it's free and you don't have to leave any personal data apart from your e-mail). I'm not affiliated with this service in any way.
sr. member
Activity: 529
Merit: 271
As of today (14th February 2019), third-party service that is used for fiat exchange rate (if you're using target currency field in settings) is no longer available due to change in licensing terms. I'm working on a fix and will update the gadget in the next few days.

I'd like this gadget to remain simple to use and free of any fees, even third-party ones. Of course, as always, donations are appreciated. Smiley

In the meantime, exchanges are slowly adding different stablecoins and fiat currencies, so whenever possible, use direct exchange rate from exchange if it's available.
sr. member
Activity: 529
Merit: 271
Gadgets are now updated with a different conversion API. Please note that the new API has some built-in limits that you should probably be aware of. Exchange rates are refreshed every 30 minutes, so if you're converting from BTC your exchange rate might be slightly off, especially during major price swings. Also, please note that the new API limits usage to maximum of 100 requests per hour. In typical usage scenarios this should not be an issue, but if you use exchange update rate lower than 40 seconds, using "Target currency" field is probably not a good idea.

I apologize for any inconvenience this has caused. Yahoo! API has been a good and free service for the past 15 years and I'm sad to see it go.

You can download the new version on the gadget page: http://domchi.cc/mylitecoins/
sr. member
Activity: 529
Merit: 271
As of today, Yahoo! Finance has unexpectedly shut down the API this gadget was using for currency conversions. If you're using "Target currency" field you're affected. I'm working to switch to another API, please stand by.
sr. member
Activity: 529
Merit: 271
Version 3.1 is now available. The only difference in new version is the new default exchange. As BTC-e is likely not coming back, default exchange is now Poloniex. As always, you can use any exchange you want, so if you're using custom exchange, there is no need to download new version.
sr. member
Activity: 529
Merit: 271
It seems that Yahoo! Finance is broken for BTC at the moment (returns N/A and the chart at http://finance.yahoo.com/q?s=BTCUSD=X is not available).

Back again together with Bitstamp, as they apparently pull data from Bitstamp.
sr. member
Activity: 529
Merit: 271
Hi everybody. As the Yahoo! Finance added BTC symbol a few days ago, there is something this gadget can now do it wasn't able to do before. And it works without updating.

If you set target currency in settings, so far conversion was only working if your ticker currency was fiat currency such as USD, as Yahoo! didn't support digital currencies. But as of now, this Yahoo! Finance conversion works when your ticker currency is BTC as well.

This means that you can observe LTCBTC ticker which has more liquidity instead of LTCUSD and have gadget display it in USD.

It seems that Yahoo! Finance is broken for BTC at the moment (returns N/A and the chart at http://finance.yahoo.com/q?s=BTCUSD=X is not available).
sr. member
Activity: 529
Merit: 271
Hi everybody. As the Yahoo! Finance added BTC symbol a few days ago, there is something this gadget can now do it wasn't able to do before. And it works without updating.

If you set target currency in settings, so far conversion was only working if your ticker currency was fiat currency such as USD, as Yahoo! didn't support digital currencies. But as of now, this Yahoo! Finance conversion works when your ticker currency is BTC as well.

This means that you can observe LTCBTC ticker which has more liquidity instead of LTCUSD and have gadget display it in USD.
sr. member
Activity: 529
Merit: 271
Hi guys,

new version is available for download. This gadget now has all changes that MyBitcons introduced in the previous, 4.0 version:

  • Trailing stop alerts as price passes set difference from the highest or lowest price to inform you about price reversals. Note that gadget will not buy and sell for you; it will simply change color to alert you. You have to do your own trading. Smiley
  • although originally correction could be a negative number, at some point this stopped working due to incorrect regex which is now corrected
  • if only paid or only unpaid JSON key for pools was used, value was not calculated; a bit impractical workaround to use both fields is no longer needed
  • support for very large or very small values (more than 9 digits or less than 8 decimals) using for example 1G for 1,000,000,000
sr. member
Activity: 529
Merit: 271
Hi, How can I change the lower space to Canadian dollars? I've tried numerous 3 letter acronym's to no luck. Thanks!

You just enter CAD as target currency. But there's a catch - by default you're looking at LTC-BTC exchange rate, and if you use CAD gadget will try to convert from BTC to CAD via Yahoo! Finance API, and Yahoo! doesn't know anything about BTC. So, you need to look at LTC-USD exchange rate instead - use https://btc-e.com/api/2/ltc_usd/ticker as exchange URL.
newbie
Activity: 1
Merit: 0
Hi, How can I change the lower space to Canadian dollars? I've tried numerous 3 letter acronym's to no luck. Thanks!
sr. member
Activity: 529
Merit: 271
Fantastic job on these gadgets.  One small request.  Can you add some sort of versioning?  It would be helpful.

Thanks again for your work.  Yes, I'll donate.. Smiley

Go to control panel, Desktop Gadgets (or Desktop Gadget Gallery), select gadget, and click on "Show Details" in the bottom left corner. You'll see gadget version there. And on the gadget page, in Changes section, you can see a changelog and the number of the most recent version.

New version of MyLitecoins is due in the next few days - lots of new changes in the recent MyBitcoins are due for MyLitecoins as well.

P.S. Donations much appreciated. Smiley
newbie
Activity: 7
Merit: 0
Hi everyone,

the new version of the gadget is out which should fix any refresh problems. Please upgrade: http://www.domchi.cc/mylitecoins/

Sorry for not updating earlier, it seems that notification that somebody replied didn't get to me... Huh


Fantastic job on these gadgets.  One small request.  Can you add some sort of versioning?  It would be helpful.

Thanks again for your work.  Yes, I'll donate.. Smiley
sr. member
Activity: 529
Merit: 271
Hi everybody,

the new versions of all gadgets are out. This is major and recomended update with bugfixes and quite a bit of new features.

As always, visit the gadget page to download it: http://domchi.cc/mylitecoins

Please note that from now on you can subscribe to be notified about updates by e-mail.
And as a bonus, here's a tip how to use this gadget to retrieve data from Google Docs: http://domchi.cc/mybitcoins/tips.htm
legendary
Activity: 1708
Merit: 1000
Reality is stranger than fiction
Omg, cant wait to try it  Cool Smiley
sr. member
Activity: 529
Merit: 271
Hi everyone,

the new version of the gadget is out which should fix any refresh problems. Please upgrade: http://www.domchi.cc/mylitecoins/

Sorry for not updating earlier, it seems that notification that somebody replied didn't get to me... Huh
full member
Activity: 182
Merit: 100
and this is where this died? too bad
member
Activity: 82
Merit: 10
Yeah, there are something strange with updates.
legendary
Activity: 4466
Merit: 3391
I am using MyLitecoins and the values don't seem to be updating (or something). It has reported the same values for many hours now, even if I change the settings or reopen the gadget.

sell: 0.0618
last: 0.0618
buy: 0.0629
USD: 0.0618

Here is the json string from btc-e:

Code:
{"ticker":{"high":0.063,"low":0.05611,"avg":0.059555,"vol":1278.36,"vol_cur":20971.4,"last":0.063,"buy":0.06299,"sell":0.06156,"server_time":1353300441}}

Here is the configuration:

General
Correction: 1
Mining data: 10
update interval: 60

Primary
URL: https://btc-e.com/api/2/ltc_usd/ticker
key: last
currency: USD

Secondary:
URL:
label 1: sell
key 1: sell
label 2: last
key 2: last
label 3: buy
key 3: buy

sr. member
Activity: 529
Merit: 271
That's realy-realy nice! Send you some litecoins.  Cool

Thanks! Smiley
member
Activity: 82
Merit: 10
That's realy-realy nice! Send you some litecoins.  Cool
sr. member
Activity: 529
Merit: 271
Hi everybody. Just to let you know that MyLitecoins gadget was updated today.

New feature is that now you can set alerts - when a certain amount is reached, value in gadget changes color to let you know that it's above or below threshold.

The Bitcoin gadget has received the same update, and there are two new gadgets available as of today: MyNamecoins gadget and MyCoins gadget which is a universal gadget that can display any currency. Check them out if you're interested.
sr. member
Activity: 529
Merit: 271
New versions of both BTC and LTC gadgets are available. Two changes in this version:

1. Support for international Windows versions. Gadget wouldn't install on German windows (or any version other than en-US), and it would ignore decimals on correction values if Windows was setup to use comma instead of decimal point. If you encountered this problems, please download the newest version and give it a try.

2. Ability to use Javascript in JSON keys. The json object variable name is "json". That means that JSON key can be referenced from Javascript like this: json.ticker.last - which allows to retrieve data from more complicated JSON responses. The old way of referencing keys ("last") still works, but is not able to parse JSON responses where there are, say, two JSON keys with the requested name.
sr. member
Activity: 529
Merit: 271
so, it was, how does the Pool API works?, since i can get anything from my pools to be shown

Well, here goes - feel free to skip the parts you already know.

First you need to login to your pool account and figure out your pool API key, and the link to retrieve your pool data. Most pools display this link somewhere in the account settings. Then you can use your browser to visit this link and observe the structure. You'll probably be interested in two values:
1. unpaid amount (the amount you can cash out from the pool) - something like "confirmed_reward"
2. paid amount (the amount you cashed out already) - something like "payout_history"

Now, to configure the gadget.

Go to the gadget configuration. You'll probably want to choose the mining presets and click Apply. This uses default settings for more miner-friendly setup. Then, to configure the pool go to Pool #1 section. Here's where you should enter your pool API URL. You also need to enter at least one JSON key (the keys of the unpaid and paid amounts). The process is the same for the second and third pool.

There is also one other important setting under General section - correction amount. This is any amount that you wish to add (or subtract) to the amount being displayed.

Let me give a few examples.

1. You wish to know how much USD you have tied in the pool. You enter your pool API and unpaid JSON key. You leave correction amount at 0. The gadget now displays the amount you can cash out. Exchange is configured by default (BTC-E) but you can use another - check gadget page for instructions how to configure Vircurex (or any other exhange).
2. Maybe you want to display how much you've mined in total? Start with the settings in example 1 and add paid JSON key. Now the gadget will sum both paid and unpaid LTC from the pool, and convert it to USD.
3. Now, you've probably sold some of your LTC, or bought some LTC, and the example 2 is not really the exact sum of LTC you have in your wallet. That's what correction is for - sum all your payments except those related to the pool, and enter the amount you get in the correction field. That should give you the exact amount you have in your wallet, plus the amount that's still unpaid - that is, your LTC worth in USD.

As you can see, the gadget is very configurable and you can make it display almost anything you want - although it takes a bit to get to know different APIs.
sr. member
Activity: 266
Merit: 250
LitecoinTalk
how do i get the to show the info from the API's?

Hi Greedi,

the gadget should show some info as soon as it's started. Instructions on how to set it up with a custom exchange are on the gadget page (http://domchi.cc/mylitecoins/) under "Configuring exchanges and pools" section. If you specify what exactly you want to show, I might be able to help some more.

sorry, i forgot to include pool Smiley

so, it was, how does the Pool API works?, since i can get anything from my pools to be shown
sr. member
Activity: 529
Merit: 271
how do i get the to show the info from the API's?

Hi Greedi,

the gadget should show some info as soon as it's started. Instructions on how to set it up with a custom exchange are on the gadget page (http://domchi.cc/mylitecoins/) under "Configuring exchanges and pools" section. If you specify what exactly you want to show, I might be able to help some more.
sr. member
Activity: 529
Merit: 271
domchi cool app but please make the gadget truly international:
my OS is in german and did not recognise the gadget until i changed the en-US script folder in de-DE

Hi Armodar, thanks for suggestion - the next version (coming soon) will have globalization support and work on German and all other versions of Windows. No localization though since I don't speak German. Smiley

EDIT: seems to be an update issue, for some reason on my pc it just does not update the stats

There are two reasons stats might not get updated - first is update interval (check exchange data update interval in configuration), and the second is if anything goes wrong with fetching the new data from the feed. Old data is displayed until there's an successful update. You can force refresh by opening and closing settings. Also, be warned - some exchanges will block your IP if you request updates too often.
sr. member
Activity: 266
Merit: 250
LitecoinTalk
how do i get the to show the info from the API's?
sr. member
Activity: 358
Merit: 250
Loving your work.  Both the LTC and BTC gadgets are very useful!
full member
Activity: 182
Merit: 100
There is a market for the MAC with this kind of easy programmer stuff.  Wish I could knew how to do it.
newbie
Activity: 25
Merit: 0
domchi cool app but please make the gadget truly international:

my OS is in german and did not recognise the gadget until i changed the en-US script folder in de-DE

so please create identical folders like en-US for all major distributions for windows7, those are:

en-US
de-DE
et
fr-FR
it-IT
ro
pt-PT
sk
pl
sv-SE
es-ES


Cheers,
Armodar

EDIT: seems to be an update issue, for some reason on my pc it just does not update the stats
sr. member
Activity: 529
Merit: 271
If anybody is wondering why the gadget stopped showing exchange rates...

As of August 9th 2012 BTC-E API URLs that are used by default have changed; please either download the new version of the gadget with the new defaults, or change your exchange URL to https://btc-e.com/api/2/ltc_btc/ticker or https://btc-e.com/api/2/ltc_usd/ticker
sr. member
Activity: 392
Merit: 250
Thanks Domchi,

Excellent job on this very handy and functional LTC price ticker.

Will be sending LTC donation your way, and encourage anyone who finds this tool useful
to do the same.

Stewart
legendary
Activity: 1133
Merit: 1050
This is cool!

We created a Project Page for this to help drum up interest...
https://litebit.co/project-item/litecoin-gadget/
hero member
Activity: 980
Merit: 506
sr. member
Activity: 529
Merit: 271
Based on my BTC Windows gadget, and inspired by StewartJ, I created the new gadget for Litecoin - now with expanded view for traders.

It can be configured to connect to up to 3 mining pools, fetch confirmed or unconfirmed rewards, payouts or whatever data is available. It can also connect to preferred exchange and get USD rate, and optionally connect to Yahoo Finance! and convert USD to any world currency.

Additionally, you can "correct" the shown amounts by adding or subtracting any amount of LTC; for example, to include LTC amount you exchanged or spent.

If you like it, you can let me know in this thread, or by sending some litecoins to this Litecoin address: LcJ5GinEXzyHzvYB3NfycARqhAYN8Jh8mo

Download link: http://www.domchi.cc/mylitecoins/

Jump to: