Pages:
Author

Topic: Bitcoin Windows gadget which displays BTC and currency amounts - page 3. (Read 69160 times)

sr. member
Activity: 432
Merit: 250
Hi here are some answers to your questions.

  • I use fiddler to detect and debug API requests.
  • At the moment I have one instance of each gadget open. 1x Bitcoin, 1x Litecoin and 1x MyCoin

What data would help you to find the source of this issue?
sr. member
Activity: 516
Merit: 268
I did add the value you recommended but the behavior didn't change.
I still get 100 api request per second after I apply the settings.

What I noticed it's only on my Windows 10 machine with "8gadgetpack" installed.
Maybe that's the reason for the strange behavior?

It's hard to say without more data what causes this, but after applying settings, gadget simply can't send that many requests. It will send only one request to a single API, unless you have configured to call a single API for multiple things.

How do you detect those 100 API requests, and which API server is spammed?

How many gadgets do you have open?

What settings are you using (especially URLs)?
sr. member
Activity: 432
Merit: 250
Thanks for the reply.
I did add the value you recommended but the behavior didn't change.
I still get 100 api request per second after I apply the settings.

What I noticed it's only on my Windows 10 machine with "8gadgetpack" installed.
Maybe that's the reason for the strange behavior?

Thanks
sr. member
Activity: 516
Merit: 268
First I want to say thanks for the work.

Also I got a little issue.
If I change some variables in the gadget, for example switch from LTC/BTC to LTC/USD, nothing happens.
After I restart the sidebar I noticed the gadget spams the API Server with requests.

Am I doing something wrong?

Check the values under "Updates" section in settings. They might be too low. For example, for exchange data update interval in seconds, if you're not a trader, 600 (seconds, or 10 minutes) is quite enough. Also, if you're having multiple instances of the gadget, be aware that they will all refresh as soon as sidebar starts them, as soon as they start.
sr. member
Activity: 432
Merit: 250
First I want to say thanks for the work.

Also I got a little issue.
If I change some variables in the gadget, for example switch from LTC/BTC to LTC/USD, nothing happens.
After I restart the sidebar I noticed the gadget spams the API Server with requests.

Am I doing something wrong?
full member
Activity: 347
Merit: 100
Thank you, sir. Worked nicely.
sr. member
Activity: 516
Merit: 268
Would you be so kind as to post the Bitfinex link for Litecoin? TIA.

Sure. Use one of these two depending which LTC price you want (against BTC or against USD):

Bitfinex

exchange URL: https://api.bitfinex.com/v1/pubticker/LTCBTC
exhange rate JSON key: last_price
ticker currency: BTC
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid

exchange URL: https://api.bitfinex.com/v1/pubticker/LTCUSD
exhange rate JSON key: last_price
ticker currency: USD
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid
full member
Activity: 347
Merit: 100
Would you be so kind as to post the Bitfinex link for Litecoin? TIA.
sr. member
Activity: 516
Merit: 268
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: 516
Merit: 268
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.
newbie
Activity: 10
Merit: 0
Now only minor issue is that I can set Main currency/top field label to 4 symbols but Ticker currency is limited by 3, even when it is placed on same spot. With altcoins there are many 4-letters coins.

Go to this folder (assuming you have Windows installed on C: drive; also, change to your Windows username):
C:\Users\\AppData\Local\Microsoft\Windows Sidebar\Gadgets\MyCoins.gadget\

Edit file Settings.html and go to line 117 (or search for "Ticker currency" and look at line right below it) and change maxlength="3" to maxlength="4". Save the file.

That should do it. No need to reload your gadgets, just go to settings and set 4-letter ticker currency.


Thank you, it worked!
jr. member
Activity: 105
Merit: 1
WOOOOWWWWW! Bitcoin and blockchain will never seize to amaze people. This gadget is wonderful. The calculations are always on point . Bitcoin operations is getting easier and effective.
sr. member
Activity: 516
Merit: 268
Currently on Windows 10. I did tried to download on the link but this one shows like this:

Windows gadgets work only on Windows 7 (and Vista, but noone uses Vista anymore). After Windows 7, Microsoft has discontinued support for gadgets, but there are ways to run gadgets on newer Windows versions. See here: https://www.intowindows.com/desktop-gadgets-for-windows-10/

I believe there are also some alternatives showing similar stuff as tiles.
sr. member
Activity: 516
Merit: 268
Now only minor issue is that I can set Main currency/top field label to 4 symbols but Ticker currency is limited by 3, even when it is placed on same spot. With altcoins there are many 4-letters coins.

Yeah, 3-letter space is kind of becoming crowded. Well, I could do something about it in next version if there's enough interest, but it's a pickle since it should probably involve changing the design as well. But... you could hack it yourself.

Go to this folder (assuming you have Windows installed on C: drive; also, change to your Windows username):
C:\Users\\AppData\Local\Microsoft\Windows Sidebar\Gadgets\MyCoins.gadget\

Edit file Settings.html and go to line 117 (or search for "Ticker currency" and look at line right below it) and change maxlength="3" to maxlength="4". Save the file.

That should do it. No need to reload your gadgets, just go to settings and set 4-letter ticker currency.
hero member
Activity: 2856
Merit: 769
I need this widget but it do give some prompts  Huh



Its totally safe  Grin

Yeah, it's totally safe. Every Win7 gadget will trigger the same prompt; that's because Microsoft abandoned the technology. But it's still the only way to display this stuff on desktop in Win7.

This gadget is open source, anybody can open it and inspect its contents (.gadget file is just a zip file with some HTML and Javascript inside). It doesn't access your wallets and it doesn't require any private keys.
Currently on Windows 10. I did tried to download on the link but this one shows like this:



newbie
Activity: 10
Merit: 0

Yeah, definitely download MyCoins and then set:

Customize top field: hide top field
Correction: 100000000
Primary exchange URL: https://api.binance.com/api/v3/ticker/price?symbol=NPXSBTC
Exchange rate JSON key: price
Ticker currency: NPX

...and you'll get 24. Does that help?


OMG you are my savior, thank you!
I was using MyCoins, my problem was, I never saw 'hide top field' in the combobox, only 'Hide bottom field' checkbox, and with it, I saw top w/o corrections.
Now only minor issue is that I can set Main currency/top field label to 4 symbols but Ticker currency is limited by 3, even when it is placed on same spot. With altcoins there are many 4-letters coins.
sr. member
Activity: 516
Merit: 268
What problems are you having with correction in currency? By default it's 0 which gives no effect. If you input number 1 in that field, the value that'll be displayed in the bottom field should be incremented by 1.

As you can see on screenshot, I have only single field on gadget. I want to correct this field. Why do I need two fields? I kind of know that all of them are relative to BTC, I don't need separate line saying BTC 4 times for each coin used.

Hm, still not sure what's the problem, but why are you using MyBitcoins? Try downloading MyCoins gadget: http://domchi.cc/mycoins/

Then you can set "Customize top field" to "hide top field".

I understand the cause of this, but how can it be used then? If correction from above worked properly for all fields, I could place +100 000 000 in there and see value in satoshi, for example. Now I am just not able to see whole value.
Also, 240.000n  looks ugly, I want to be able to see '24' there.

Thank you!

Yeah, definitely download MyCoins and then set:

Customize top field: hide top field
Correction: 100000000
Primary exchange URL: https://api.binance.com/api/v3/ticker/price?symbol=NPXSBTC
Exchange rate JSON key: price
Ticker currency: NPX

...and you'll get 24. Does that help?
newbie
Activity: 10
Merit: 0
Thank you for the widget, it would have been really useful.
However, it is not now, because "correction in currency" doesn't really work.

What problems are you having with correction in currency? By default it's 0 which gives no effect. If you input number 1 in that field, the value that'll be displayed in the bottom field should be incremented by 1.

As you can see on screenshot, I have only single field on gadget. I want to correct this field. Why do I need two fields? I kind of know that all of them are relative to BTC, I don't need separate line saying BTC 4 times for each coin used.

Also, really small values are stripped.
I want to use it for altcoin pairs, and coins that cost ~100 satoshi are displayed totally wrong, like 0.00001, whey I want to see 0.00000113 or 113s or something like that.
Strangely, coins below 100 are displayed correctly.

http://monosnap.com/image/BU7xna0ktcYQeQRXaHZoK7QNVjKxyY.png
Here, ICX is stripped

This is intentional. By design, gadget has a very limited amount of digits it can display - only about 7 digits of precision can fit in the space available.

I understand the cause of this, but how can it be used then? If correction from above worked properly for all fields, I could place +100 000 000 in there and see value in satoshi, for example. Now I am just not able to see whole value.
Also, 240.000n  looks ugly, I want to be able to see '24' there.

Thank you!
sr. member
Activity: 516
Merit: 268
I need this widget but it do give some prompts  Huh



Its totally safe  Grin

Yeah, it's totally safe. Every Win7 gadget will trigger the same prompt; that's because Microsoft abandoned the technology. But it's still the only way to display this stuff on desktop in Win7.

This gadget is open source, anybody can open it and inspect its contents (.gadget file is just a zip file with some HTML and Javascript inside). It doesn't access your wallets and it doesn't require any private keys.
hero member
Activity: 2856
Merit: 769
I need this widget but it do give some prompts  Huh




Its totally safe  Grin
Thanks for this one.


Edit: https://www.virustotal.com/#/url/c1814dab7842c5ecf697e632d497e763cdabd3c76bf832d7a004efcf098d90f8/detection
Pages:
Jump to: