Pages:
Author

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

sr. member
Activity: 529
Merit: 271
OK, I fixed it. Thanks for reporting it! Please visit http://domchi.cc/mybitcoins/ (or http://domchi.cc/mycoins/) to download the latest version.
sr. member
Activity: 432
Merit: 250
Ok here are the results when I have open the litecoin gadget and edit the mycoin gadget:



Every API request is valid but it sends just 100 per second until I get blocked for to many requests.
sr. member
Activity: 529
Merit: 271
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?

Can you try this? Clear Fiddler log. Open settings of a single gadget, say MyBitcoins. Apply settings - which should refresh all values in that gadget. How many requests do you get in Fiddler, to which servers? Is that in line with your settings?
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: 529
Merit: 271
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: 529
Merit: 271
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: 368
Merit: 100
Thank you, sir. Worked nicely.
sr. member
Activity: 529
Merit: 271
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: 368
Merit: 100
Would you be so kind as to post the Bitfinex link for Litecoin? TIA.
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.
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: 529
Merit: 271
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: 529
Merit: 271
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: 3010
Merit: 794
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: 529
Merit: 271
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?
Pages:
Jump to: