Bitcoin Forum

Bitcoin => Project Development => Topic started by: Domchi on August 21, 2011, 04:15:34 AM



Title: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on August 21, 2011, 04:15:34 AM
Hi!

Do you want to see your BTC grow?

I did.

I wanted to be able to see two key pieces of information, my BTC and how much it's worth, but everything I found either wasn't a Windows gadget, or had too much info, or something... so I rolled my own.

This gadget 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 BTC; for example, to include BTC amount you exchanged or spent.

If you like it, you can let me know by sending some coins to 1CA1AL9X3VfZGYftnmRbQQeR7vdTwQyvhC - and if you have any questions/suggestions, fire away.

Download link: http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/)



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 16, 2012, 08:36:04 PM
Just a question on this gadget.

How often does is it update?

Found this variable inside:
var updateInterval = 10 * 60 * 1000;  // 10 min

Does that mean it updates every 10 minutes?

Thanks!
SJ


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 16, 2012, 11:15:57 PM
Yes; every ten minutes.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 16, 2012, 11:50:14 PM
Yes; every ten minutes.


OK, thanks, great windows gadget! 


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: grue on January 16, 2012, 11:55:14 PM
Yes; every ten minutes.
that's rather slow. why not 10 seconds? which happens to be most exchange's api update interval.

here's a patched version:
http://www.mediafire.com/?xfudytkbbq33g75 ;D


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 16, 2012, 11:59:14 PM
Yes; every ten minutes.
that's rather slow. why not 10 seconds? which happens to be most exchange's api update interval.

here's a patched version:
http://www.mediafire.com/?xfudytkbbq33g75 ;D

I already patched mine: the interval to 10 seconds  and also changed the default feed to "Last" instead of "Sell" price.

Thanks for the link though.



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 30, 2012, 11:45:44 PM
I updated the official version.

Previously there was only one update interval, set to 10 minutes (since there is one block every 10 minutes so that's how often mining pools update data). But exchanges of course update much faster.

Since there is no point in hitting mining pools as often as exchanges, I created two separate update intervals for pools and for an exchange. Both intervals are initially set to 10 minutes, but now anybody can easily tweak them through settings, each of them separately.

New version is available on http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/). If you don't need to tweak update intervals, don't worry - there's no need to upgrade, you can continue using version 1.0.

Thanks for the comments and suggestions. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 30, 2012, 11:52:34 PM
I updated the official version.

Previously there was only one update interval, set to 10 minutes (since there is one block every 10 minutes so that's how often mining pools update data). But exchanges of course update much faster.

Since there is no point in hitting mining pools as often as exchanges, I created two separate update intervals for pools and for an exchange. Both intervals are initially set to 10 minutes, but now anybody can easily tweak them through settings, each of them separately.

New version is available on http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/). If you don't need to tweak update intervals, don't worry - there's no need to upgrade, you can continue using version 1.0.

Thanks for the comments and suggestions. :)

Awesome!  Many thanks for the upgrade.

I may PM you about an idea I have for similar gadget for a different kind of BTC conversion.

Thanks again!





Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 31, 2012, 12:01:01 AM
I may PM you about an idea I have for similar gadget for a different kind of BTC conversion.

Please do. I'm particularly interested if anyone has any ideas how to make MyBitcoins better - though I strive to keep it as simple as possible so I can't promise that every suggestion will be implemented.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 31, 2012, 01:52:24 AM
I may PM you about an idea I have for similar gadget for a different kind of BTC conversion.

Please do. I'm particularly interested if anyone has any ideas how to make MyBitcoins better - though I strive to keep it as simple as possible so I can't promise that every suggestion will be implemented.

Sent you a little donation, by the way.

On your Forum signature, you should add a link to your bitcoin gadget, something like.

 "Get the Bitcoin Gadget: a real-time BTC/USD price display for your PC desktop!"

It's amazing how the simplest things can be just so downright handy.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 31, 2012, 03:21:15 AM
I updated the official version.

Previously there was only one update interval, set to 10 minutes (since there is one block every 10 minutes so that's how often mining pools update data). But exchanges of course update much faster.

Since there is no point in hitting mining pools as often as exchanges, I created two separate update intervals for pools and for an exchange. Both intervals are initially set to 10 minutes, but now anybody can easily tweak them through settings, each of them separately.

New version is available on http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/). If you don't need to tweak update intervals, don't worry - there's no need to upgrade, you can continue using version 1.0.

Thanks for the comments and suggestions. :)

Been playing with your update.

I went in gadget settings and changed exchange update time to 10 seconds, but after a while noticed mistaken thought
it was not updating, it looks like it might be still using the Mining Data interval of 10 minutes.

Gonna keep on testing and let you know what I find.



EDIT:  OK, it seems to be updating fine. Tested it with other real time tools and updated 4 times in a row instantly with the others.

FYI:  I'm not a miner (yet) but I was fooling around with the other stuff and noticed that the mining data time reverts back to the default of 10 minutes after I changed it in the settings.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 31, 2012, 10:49:01 AM
EDIT:  OK, it seems to be updating fine. Tested it with other real time tools and updated 4 times in a row instantly with the others.
FYI:  I'm not a miner (yet) but I was fooling around with the other stuff and noticed that the mining data time reverts back to the default of 10 minutes after I changed it in the settings.

Sorry, I'm not quite clear on this in the end; did it revert or not? It should revert to 10 minutes only when you close the gadget completely and open a new instance (which resets all gadget settings anyway). Also, there is a built-in minimum which gets applied automatically if you enter value that is too small.

P.S. Thanks for donation. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 31, 2012, 06:00:28 PM
EDIT:  OK, it seems to be updating fine. Tested it with other real time tools and updated 4 times in a row instantly with the others.
FYI:  I'm not a miner (yet) but I was fooling around with the other stuff and noticed that the mining data time reverts back to the default of 10 minutes after I changed it in the settings.

Sorry, I'm not quite clear on this in the end; did it revert or not? It should revert to 10 minutes only when you close the gadget completely and open a new instance (which resets all gadget settings anyway). Also, there is a built-in minimum which gets applied automatically if you enter value that is too small.

P.S. Thanks for donation. :)

What is the minimum mining time? Maybe that's what was causing the time to default back.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 31, 2012, 10:52:15 PM
Sorry, I'm not quite clear on this in the end; did it revert or not? It should revert to 10 minutes only when you close the gadget completely and open a new instance (which resets all gadget settings anyway). Also, there is a built-in minimum which gets applied automatically if you enter value that is too small.

What is the minimum mining time? Maybe that's what was causing the time to default back.

1 minute. 10 minutes is the setting applied only on the first run. I've tried reproducing this but I can't; could you please share your exact settings? I don't need exact amounts and pool keys, but I'd like to reproduce your setup as closely as possible. At what point does your mining time reset, after you exit settings?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: StewartJ on January 31, 2012, 11:16:42 PM
Sorry, I'm not quite clear on this in the end; did it revert or not? It should revert to 10 minutes only when you close the gadget completely and open a new instance (which resets all gadget settings anyway). Also, there is a built-in minimum which gets applied automatically if you enter value that is too small.

What is the minimum mining time? Maybe that's what was causing the time to default back.

1 minute. 10 minutes is the setting applied only on the first run. I've tried reproducing this but I can't; could you please share your exact settings? I don't need exact amounts and pool keys, but I'd like to reproduce your setup as closely as possible. At what point does your mining time reset, after you exit settings?

Everything is working OK. not a miner here, just thought the exchange price was not updating, because of the mining default time.



 


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 31, 2012, 11:24:22 PM
Everything is working OK. not a miner here, just thought the exchange price was not updating, because of the mining default time.

OK. :)
When there are no mining pools defined, mining update time is irrelevant.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: LiteBit on March 14, 2012, 04:44:53 PM
We created a Project Page for both your Windows gadgets to help support the project and generate interest.
Here's the Bitcoin gadget page:  https://litebit.co/project-item/bitcoin-gadget/


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 24, 2012, 09:31:52 PM
I've released the new version of the gadget (2.0), now with expanded view for traders and presets for traders and miners. The update covers all extra functionality developed for MyLitecoins gadget (https://bitcointalk.org/index.php?topic=68288.0 (https://bitcointalk.org/index.php?topic=68288.0)).

Download link is still the same: http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on September 02, 2012, 08:17:29 PM
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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 17, 2012, 03:48:51 AM
Hi all. MyBitcoins 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 Litecoin gadget (http://www.domchi.cc/mylitecoins) has received the same update, and there are two new gadgets available as of today: MyNamecoins gadget (http://www.domchi.cc/mynamecoins) and MyCoins gadget (http://www.domchi.cc/mycoins) which is a universal gadget that can display any currency. Check them out if you're interested.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: davecoin on November 17, 2012, 05:02:27 PM
this is cool, thank you!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: yucca on February 27, 2013, 12:42:53 AM
This is an oldish thread, but what the hey:

Nice work on the gadget! 8)

It would be nice if double clicking the gadget caused system to open URL of primary exchange.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: baggyp on March 04, 2013, 02:35:10 AM
This is pretty neat! I haven't downloaded it yet because I would like to hear from someone with a higher post count that it can be trusted, but it does seem like a great gadget!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: hmmmstrange on March 23, 2013, 12:04:26 AM
{"error":"This API is not available directly anymore, please replace mtgox.com with data.mtgox.com in the url"}

You need to change your exchange url to

https://data.mtgox.com/api/0/data/ticker.php


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 24, 2013, 05:07:51 PM
{"error":"This API is not available directly anymore, please replace mtgox.com with data.mtgox.com in the url"}

You need to change your exchange url to

https://data.mtgox.com/api/0/data/ticker.php

Thanks hmmmstrage!

Everybody,

the new version of the gadget is out; it connects to the new MtGox API and fixes one minor refresh-related bug as well. Please upgrade: http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/)

What hmmmstrange says is one way to do it but will still use the old MtGox API which will probably stop working at one point. On MyBitcoins home page (http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/)) I've published a way to switch to the new MtGox API without upgrading.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Clock Loop on April 11, 2013, 11:04:08 AM
Still something wrong with the gadget..   When you select trading mode, and then back to mining, the url switches back to old url.
Also, this gadget won't work with correct url manually entered also.

I located the problem in the "Settings.js" file.  Even your new version has this error still.

I "fixed" the js file with the proper url "http://data.mtgox.com/api/1/BTCUSD/ticker" in two places where the old url was, but the ticker still doesn't work for me at all. (although after fixing the settings.js file, the url now always shows the proper url, but the USD box always shows N/A, for both mining and trading.   If I choose mining, I get N/A in both BTC and USD boxes too.

So I tried to use as my exchange url: https://api.bitfloor.com/ticker/1
I entered into the exchange rate JSON key: price
And deleted all other entries below.
And now it shows USD value properly.

Something is messed up majorly with the new version and the new mt.gox ticker url and JSON keys that its using.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: spudy12 on April 12, 2013, 11:23:42 PM
ahh just what i've been looking for.. thanks!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on April 15, 2013, 09:49:18 PM
New update is available.

This follows the undocumented change in behavior of MtGox API which broke the gadget - MtGox started actively refusing rand parameter which gadget uses to make sure that MtGox response is not cached.

As a bonus, I've added a new note field to settings screen which you can use for anything you like. For example, in this field you can store the last date when you updated the correction amount...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on May 09, 2013, 09:59:52 AM
Hi,

did the Gox API change something again? As of today, the gadget is no longer able to fetch Gox values...

Thanks!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on May 09, 2013, 06:54:06 PM
Hi,

did the Gox API change something again? As of today, the gadget is no longer able to fetch Gox values...

Thanks!

+1 down for me as well

Dev was last active here on 15th april. Looks like we're screwed...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on May 09, 2013, 07:41:46 PM
Looks like the solution is to use https for the Gox API?

https://bitcointalk.org/index.php?topic=164404.msg2090533#msg2090533


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on May 09, 2013, 11:06:08 PM
Hi all,

sorry for not updating sooner, was offline until now. Yep, MtGox turned off http API and started redirecting it to https, and IE which has to be used in gadgets unfortunately doesn't follow redirects. New version of gadget is available for download, but you can simply change exchange URL to https://data.mtgox.com/api/1/BTCUSD/ticker

A few quick tips on API changes (and MtGox seems to change API pretty often). If gadget stops updating, you can force update by going to settings and clicking OK without changing anything. If you see N/A, then one of the URLs that are polled is not working - try loading them manually in browser to see which one. If you understand JSON you can also figure out if JSON changed and update accordingly and please feel free to post it here for others to see.

Gadget is completely configurable and should work with most APIs for precisely this reason, APIs change and exchanges come and go... and hopefully we'll see more people using alternate exchanges so that MtGox doesn't hold that much of BTC exchange traffic and stops being the central place for attacking decentralized currency. :)

Actually, let me give some settings for alternate exchanges (just change it in settings):

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy

Vircurex
exchange URL: https://vircurex.com/api/get_info_for_1_currency.json?base=BTC&alt=USD
exhange rate JSON key: lowest_ask
field 1 JSON key: lowest_ask
field 2 JSON key: last_trade
field 3 JSON key: highest_bid

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Jesteroth on May 10, 2013, 06:06:19 AM
Thanks for the update  ;)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on May 11, 2013, 08:51:37 AM
Thanks for the update!

One more thing though:

Not sure if it's just on my PC, but if I manually close the gadget and open it again, all my settings are lost and I have to re-enter them. In between reboots however the gadget can keep the settings which is a little weird. Is this a known thing?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Jesteroth on May 17, 2013, 06:46:18 PM
It's not working again  :'(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on May 18, 2013, 06:53:20 AM
Seems to be working fine here, using the URL https://data.mtgox.com/api/1/BTCEUR/ticker ...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on May 18, 2013, 09:31:54 AM
It's not working again  :'(

Down and out here as well.  ???

Same here for the last couple of days, it's strange as if I open up the URL https://data.mtgox.com/api/1/BTCUSD/ticker everything appears fine, just not reading the data for some reason and I have no knowledge of JSON to know why.

EDIT:
Changing to https://data.mtgox.com/api/1/BTCGBP/ticker works fine, must be something on the USD page


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on May 18, 2013, 10:36:38 AM
Thanks for the update!

One more thing though:

Not sure if it's just on my PC, but if I manually close the gadget and open it again, all my settings are lost and I have to re-enter them. In between reboots however the gadget can keep the settings which is a little weird. Is this a known thing?

This is how gadget settings in Windows work; you can have multiple instances of the gadget on the desktop, and each has its own settings. When you close the gadget though, those settings are lost. I'd be grateful for a bit of input from you guys on this - especially with recent and constant MtGox API changes, is changing settings manually on each new version becoming a problem? What default options do you usually change in settings?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on May 18, 2013, 11:02:13 AM
It's not working again  :'(

Yep. I've posted the update, please download the new version. This one is fixed by switching to MtGox API v2.

Sorry for slow update on this; it took me a while to crack this one. For technical details read on...

There was another undocumented change in behavior of MtGox API. The gadget automatically adds random number in parameter when calling exchange URL. This is needed since it's the only way to force IE (which powers Windows gadgets) to reload the page. However, MtGox is becoming more and more strict regarding parameters - first they added parameter validation, which I circumvented by using parameter with empty name. Now the empty name parameter is not accepted which forces me to switch to v2 API which is not yet officially documented, where this works. The constant MtGox API changes are however becoming a problem; I'm contacting MtGox to try to work this out with them and considering alternatives (such as switching to Blockchain API for MtGox ticker).


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Jesteroth on May 19, 2013, 12:41:54 AM
Thnx for update, much appreciated  ;)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on May 25, 2013, 06:32:41 PM
These past few days the mining stats section has been behaving somewhat erratically.

It seems like the gadget is losing the connection to the API (BTC guild in my case) - the BTC amount will zero out several times during the 10 minute window that it's supposed to be refresh at.

Is there something going on with the BTCGuild API perhaps?

Thanks!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: phoxpup on May 28, 2013, 10:30:21 PM
Call me a minimalist but do I really need to look at that "1" in the labelled BTC field.  Its always "1". (of course) Why not make the gadget smaller by allowing it to be hidden? Alternatively,  I'd like to be able to configure the gadget to just show 2 fields, one for MtGox (latest) and another for BTC-E (latest) for instance.  Even if nothing changes with this gadget, it is already an excellent one.  (way to go!!)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 06, 2013, 12:30:44 AM
These past few days the mining stats section has been behaving somewhat erratically.

It seems like the gadget is losing the connection to the API (BTC guild in my case) - the BTC amount will zero out several times during the 10 minute window that it's supposed to be refresh at.

Is there something going on with the BTCGuild API perhaps?

Thanks!

It's strange that you get changes between refreshes; that could indeed signal that it takes a long time to get response from one of the APIs, typically all calls complete during a few seconds. Also, check if both mining and exchange data intervals are set to ten minutes. If your exhange update interval is shorter than 600 seconds (10 minutes), it could be the issue with exchange.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 06, 2013, 12:51:48 AM
Call me a minimalist but do I really need to look at that "1" in the labelled BTC field.  Its always "1". (of course) Why not make the gadget smaller by allowing it to be hidden? Alternatively,  I'd like to be able to configure the gadget to just show 2 fields, one for MtGox (latest) and another for BTC-E (latest) for instance.  Even if nothing changes with this gadget, it is already an excellent one.  (way to go!!)

I hear you, I'm all for minimalism. But it's not meant to always be 1; miners will typically have different amount there, and I for example have two BTC gadgets, one with 1 BTC to monitor price and other to monitor my Bitcoin net worth (where I actually pull this number from Google doc spreadsheet which calculates my current holdings).

There's an issue with making it smaller (1-field) - there can be only two sizes for one gadget, normal and expanded, and expanded is already used for displaying 5 fields view. And displaying only one field on the current size might be ugly, though I'll have to try it - though it won't save any space.

You do make interesting suggestions and I'll think about it for the next version. I actually like the idea of displaying two exhange rates at the same time - now you have to either use expanded view or put two instances of the gadget on desktop, one for each exchange.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on June 06, 2013, 05:26:08 AM
These past few days the mining stats section has been behaving somewhat erratically.

It seems like the gadget is losing the connection to the API (BTC guild in my case) - the BTC amount will zero out several times during the 10 minute window that it's supposed to be refresh at.

Is there something going on with the BTCGuild API perhaps?

Thanks!

It's strange that you get changes between refreshes; that could indeed signal that it takes a long time to get response from one of the APIs, typically all calls complete during a few seconds. Also, check if both mining and exchange data intervals are set to ten minutes. If your exhange update interval is shorter than 600 seconds (10 minutes), it could be the issue with exchange.

Nope both times are set to 10 minutes. Just now the gadget would not display any mining data even after 5 refreshes so I left it be. After a few minutes it finally caught on, but I bet it will again lose the mining data briefly soon. It's weird.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on June 06, 2013, 09:26:39 AM
I find that I frequently have to change the 'correction' box as I receive BTC from sources other than the usual pools (alt coins), exchanges plus I might be buying and selling things

An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools

IE.
Wallet Contains 10
BTCGuilld Unpaid 0.5

Widget shows 10.5

If I then buy something for 5 out of the wallet it changes to 5.5

This way it always shows your net assets.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 06, 2013, 08:16:30 PM
I find that I frequently have to change the 'correction' box as I receive BTC from sources other than the usual pools (alt coins), exchanges plus I might be buying and selling things

An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools

IE.
Wallet Contains 10
BTCGuilld Unpaid 0.5

Widget shows 10.5

If I then buy something for 5 out of the wallet it changes to 5.5

This way it always shows your net assets.

Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 06, 2013, 08:31:29 PM
It's strange that you get changes between refreshes; that could indeed signal that it takes a long time to get response from one of the APIs, typically all calls complete during a few seconds. Also, check if both mining and exchange data intervals are set to ten minutes. If your exhange update interval is shorter than 600 seconds (10 minutes), it could be the issue with exchange.

Nope both times are set to 10 minutes. Just now the gadget would not display any mining data even after 5 refreshes so I left it be. After a few minutes it finally caught on, but I bet it will again lose the mining data briefly soon. It's weird.

I'm not sure that anything can be done from in gadget to alleviate this, it looks like either API or network/connectivity/caching proxy problem. I'll try polling my old BTCGuild account for a few days to see if I can reproduce this.

Note that it's normal for gadget to show N/A or 0 for a bit when it refreshes, especially if you have more URLs, but if this lasts it means that it's getting something unexpected in response or not getting response at all. I've seen something similar when polling data from Google Docs API, but I haven't been able to find a cause so far, so any example that's reproducible is precious to me.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on June 06, 2013, 08:45:14 PM
I find that I frequently have to change the 'correction' box as I receive BTC from sources other than the usual pools (alt coins), exchanges plus I might be buying and selling things

An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools

IE.
Wallet Contains 10
BTCGuilld Unpaid 0.5

Widget shows 10.5

If I then buy something for 5 out of the wallet it changes to 5.5

This way it always shows your net assets.

Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. :)

I currently have all my BTC in a bitcoin client wallet. I don't suppose you could get the balance of this wallet via a blockchain URL? But if yes, how?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on June 06, 2013, 09:02:07 PM
...
An alternative could be to enter BTC address(es), and then just add to them the 'unpaid' balances from pools
...

Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. :)

Works perfectly, thank you :)

Donation sent !


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 07, 2013, 12:42:05 PM
Try this... use one of the pool slots and enter this:

Pool API URL: http://blockchain.info/address/1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve?format=json
Unpaid amount JSON key: json.final_balance/100000000

(Obviously, use your own address in URL.)

This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. :)

I currently have all my BTC in a bitcoin client wallet. I don't suppose you could get the balance of this wallet via a blockchain URL? But if yes, how?

This will work no matter which client you use, since all your transactions are registered in Bitcoin blockchain. Your bitcoins are not "in your wallet", only your private key required to spend them is. When you start your client, it won't display the correct balance until it downloads all of the blockchain and calculates your balance based on all transactions on your Bitcoin addresses. Blockchain.info can do the same - it gives you paid, spent and final balance of any Bitcoin address.

If you're using standard bitcoin-qt client, go to "Receive coins" and there you can see all your addresses.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on June 21, 2013, 09:18:13 AM
Gadget has some difficulty connecting to btcguild API currently... anyone else?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 21, 2013, 04:31:38 PM
Gadget has some difficulty connecting to btcguild API currently... anyone else?

I was actually looking at BTCGuild since you've mentioned it, but I have no good and permanent fix. It seems that BTCGuild recently started using CloudFlare DDOS protection which displays some sort of Javascript challenge which gadget, not being browser, seems to fail. One thing I found that helps - sometimes and for a while - is to load pool API URL manually in Internet Explorer. Internet Explorer answers the challenge and this sometimes fixes things. If it doesn't, try rebooting after you've done that. No guarantees though - it's really behaving a bit strange.  :(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 23, 2013, 09:38:59 PM
Hi guys,

it seems that MtGox has switch to Cloudflare (cloud anti-DDOS and content distribution network) which caused gadget to fail retrieving exchange rates temporarily (for an hour or so). The problems with BTCGuild are also caused by Cloudflare, and in the near future there might be problems retrieving exchange rates from MtGox, so I'm watching closely.

In any case, please remember that MyBitcoins gadget is made to be extremely configurable, and it's very simple to switch to another exchange. I've already posted this a few replies back, but here goes again:

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy

Vircurex
exchange URL: https://vircurex.com/api/get_info_for_1_currency.json?base=BTC&alt=USD
exhange rate JSON key: lowest_ask
field 1 JSON key: lowest_ask
field 2 JSON key: last_trade
field 3 JSON key: highest_bid

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 08, 2013, 11:16:02 PM
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/mybitcoins (http://domchi.cc/mybitcoins)

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 (http://domchi.cc/mybitcoins/tips.htm)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on August 03, 2013, 10:38:52 AM
This should pick a balance for BTC address from blockhain and add it to balances from other pools, but if people need to monitor more addresses I should consider adding more pool slots. :)

Been using it this way for a while now and it's been great, but now run out of addresses (I have several investements/rigs and like to use individual addresses to keep track of them easier) so if you could add more on the next update it would be great.

If possible why not keep the existing pool settings and just add a new option to enter comma|pipe seperated addreses, that would keep functionality for existing users who just want pools and allow many addresses to be entered by those who want this.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on August 05, 2013, 08:02:39 PM
Been using it this way for a while now and it's been great, but now run out of addresses (I have several investements/rigs and like to use individual addresses to keep track of them easier) so if you could add more on the next update it would be great.

If possible why not keep the existing pool settings and just add a new option to enter comma|pipe seperated addreses, that would keep functionality for existing users who just want pools and allow many addresses to be entered by those who want this.

I hear you. I'll add up to five pools/sources in the next version, and maybe something specific for retrieving address balances from blockchain.info (have to think about this a bit more though, so not promising anything).


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: memyself on September 11, 2013, 08:31:13 PM
Now that coindesk has developed its own Bitcoin Price Index at http://www.coindesk.com/price/ (http://www.coindesk.com/price/) does anyone know if there is a way to use their exchange rate?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on September 11, 2013, 09:14:54 PM
Now that coindesk has developed its own Bitcoin Price Index at http://www.coindesk.com/price/ does anyone know if there is a way to use their exchange rate?

It seems that their API is not (yet?) public, they want interested parties to contact them directly to gain access to API.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: memyself on September 12, 2013, 05:31:01 PM
ok, so I contacted them and received this response.
Quote
Hi,

Thanks for your enquiry about API access to CoinDesk's Bitcoin Price Index.

As we just launched it, we still need to finalise a few things to ensure the API is stable and performant, as well as provide developer documentation.

We should be able to do this within the next few days, so we will be in touch next week with further information on gaining access.

Please note that this is a free API, and result data will be formatted using JSON.

Kind regards,

Jeremy

Hopefully they will let us know soon.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on September 12, 2013, 10:55:55 PM
Quote
Please note that this is a free API, and result data will be formatted using JSON.

MyBitcoins can chew any kind of JSON, so there should be no problem connecting once this becomes public.

For simple JSON, it works with just a key name, but for more complex JSON where you have several keys with the same name like on MtGox you can access it like in Javascript, i.e. "json.data.sell.value". You can even put some kind of evaluable Javascript in the field (though this has significant limits), like "Math.PI.toFixed(6)" to get PI rounded to 6 decimal places.

Anyway, drop me a line once the API becomes available if you have any trouble with it and we'll figure it out.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: memyself on October 08, 2013, 02:31:26 PM
CoinDesk's API has been published (they got back to me with a link).

The api is listed at http://www.coindesk.com/api/ (http://www.coindesk.com/api/)

I was able to set mine up with Exchange URL:
http://api.coindesk.com/v1/bpi/currentprice/USD.json

and JSON key:
rate

You can also specify other currencies in place of USD above. 
It seems to work fairly well and I'm glad to have the option to display a composite bitcoin value without the need to choose an exchange.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 08, 2013, 03:37:47 PM
Memyself, thanks for the update!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: bitkoof on October 09, 2013, 11:08:45 AM
Let us (CoinDesk) know when it is integrated  ;D


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 09, 2013, 11:27:52 AM
Let us (CoinDesk) know when it is integrated  ;D

This is it, MyBitcoins gadget works with any JSON API. Anyone who wants to use it with CoinDesk just needs to enter the following in settings:
Exchange URL: http://api.coindesk.com/v1/bpi/currentprice/USD.json
JSON key name: rate

Do you perhaps plan to expose high/low/avg/volume values through API at one point?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: DonGateley on October 20, 2013, 09:25:35 PM
I am using the exchange URL https://data.mtgox.com/api/2/BTCUSD/money/ticker that was the default on installation of the widget.  I am only getting the BTC and USD rows displayed.  I would like to see the secondary rows sell (json.dat.sell.value), last (json.data.last.value), and buy (json.data.buy.value) but they are not showing up.  I can't figure out what to do to get those secondary rows to show up.  Any help greatly appreciated.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 20, 2013, 10:19:48 PM
I am using the exchange URL https://data.mtgox.com/api/2/BTCUSD/money/ticker that was the default on installation of the widget.  I am only getting the BTC and USD rows displayed.  I would like to see the secondary rows sell (json.dat.sell.value), last (json.data.last.value), and buy (json.data.buy.value) but they are not showing up.  I can't figure out what to do to get those secondary rows to show up.  Any help greatly appreciated.

Hi Don,

simply hover over the gadget, wait for the icons to appear, and click on the one between the "x" (close gadget) and options icon.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: DonGateley on October 22, 2013, 08:40:33 PM
I am using the exchange URL https://data.mtgox.com/api/2/BTCUSD/money/ticker that was the default on installation of the widget.  I am only getting the BTC and USD rows displayed.  I would like to see the secondary rows sell (json.dat.sell.value), last (json.data.last.value), and buy (json.data.buy.value) but they are not showing up.  I can't figure out what to do to get those secondary rows to show up.  Any help greatly appreciated.

Hi Don,

simply hover over the gadget, wait for the icons to appear, and click on the one between the "x" (close gadget) and options icon.

Thanks, I had found that, the wrench icon, but can't figure out what to do within it to make it work.  My interest is trading but If I check "trading" all I get for USD is N/A.  I have to check "mining" to get a value to appear in USD.  This puzzles me.

Also, the default setup within the wrench only gives me the rows labeled BTC and USD.  I'd like also to see sell, last and buy but can't tell how to effect that.  Any help appreciated, thanks.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 22, 2013, 09:40:04 PM
simply hover over the gadget, wait for the icons to appear, and click on the one between the "x" (close gadget) and options icon.

Thanks, I had found that, the wrench icon, but can't figure out what to do within it to make it work.  My interest is trading but If I check "trading" all I get for USD is N/A.  I have to check "mining" to get a value to appear in USD.  This puzzles me.

Also, the default setup within the wrench only gives me the rows labeled BTC and USD.  I'd like also to see sell, last and buy but can't tell how to effect that.  Any help appreciated, thanks.

No, not the wrench icon. You need to click the larger size icon (arrow in a frame icon) which is above wrench icon. Or I'm completely misunderstanding you. :)

https://i.imgur.com/2AZCpBz.png

Re trading, this is actually an outdated preset, thanks for noticing. I'll fix it in the next version. In the meantime, after you choose "trading" and click apply button, go to Primary exchange section and change Exchange rate JSON key form 'json["return"].last.value' to 'json.data.last.value'.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: DonGateley on October 23, 2013, 09:12:22 PM

No, not the wrench icon. You need to click the larger size icon (arrow in a frame icon) which is above wrench icon. Or I'm completely misunderstanding you. :)

https://i.imgur.com/2AZCpBz.png

Re trading, this is actually an outdated preset, thanks for noticing. I'll fix it in the next version. In the meantime, after you choose "trading" and click apply button, go to Primary exchange section and change Exchange rate JSON key form 'json["return"].last.value' to 'json.data.last.value'.

Got it.  The size icon made it right.  The trading fix worked perfectly.


Many Thanks


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: 40-Pin on November 15, 2013, 10:47:07 PM
BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy

Vircurex
exchange URL: https://vircurex.com/api/get_info_for_1_currency.json?base=BTC&alt=USD
exhange rate JSON key: lowest_ask
field 1 JSON key: lowest_ask
field 2 JSON key: last_trade
field 3 JSON key: highest_bid

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid

Trying to figure out which settings to use for coinbase from their API page https://coinbase.com/api/doc (https://coinbase.com/api/doc) not sure I am on the right track.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 15, 2013, 11:53:24 PM
Trying to figure out which settings to use for coinbase from their API page https://coinbase.com/api/doc (https://coinbase.com/api/doc) not sure I am on the right track.

exchange URL: https://coinbase.com/api/v1/currencies/exchange_rates
exchange rate JSON key: btc_to_usd

Clear JSON keys for secondary exchange.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: hieroglyph on November 16, 2013, 02:21:49 PM
I won't be downloading this but I do appreciate the work you put into this tool.  Looks like something I'd think about using in the future.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: 40-Pin on November 16, 2013, 05:22:23 PM
Trying to figure out which settings to use for coinbase from their API page https://coinbase.com/api/doc (https://coinbase.com/api/doc) not sure I am on the right track.

exchange URL: https://coinbase.com/api/v1/currencies/exchange_rates
exchange rate JSON key: btc_to_usd

Clear JSON keys for secondary exchange.

Thanks so much, works perfect. Your gadget is the best one out there!

On a side note I made some changes to its look to make it match the darker theme of my other gadgets. Bright gold can be distracting, thought I would show you a screenshot. You should think of adding some skins somewhere down the line :)
https://i.imgur.com/9zpYE4x.jpg


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: mulderfox on November 19, 2013, 05:55:50 AM
I tried setting bitstamp as primary exchange with the https://www.bitstamp.net/api/ticker/ address and "last" (without ") but I still get N/A in the price field..

Why is that?

thanks!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 21, 2013, 01:09:29 AM
I tried setting bitstamp as primary exchange with the https://www.bitstamp.net/api/ticker/ address and "last" (without ") but I still get N/A in the price field..

Why is that?

thanks!

Hm, it seems that Bitstamp is not allowing extra parameter that MyBitcoins is sending to avoid ticker results being cached. I'll see what I can do in the next version, I'm not using Bitstamp so I wasn't aware that this doesn't work with their API.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on November 26, 2013, 02:07:15 PM
With the rising value of BTC could the next release be slightly bigger, ie take it up from 8 to 10 digits, that would allow USD amounts up to 999,999.99 (including a , for nicer formatting) and more decimals on the btc field.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 27, 2013, 01:15:43 AM
With the rising value of BTC could the next release be slightly bigger, ie take it up from 8 to 10 digits, that would allow USD amounts up to 999,999.99 (including a , for nicer formatting) and more decimals on the btc field.

Well, if you have more than thousand USD, gadget rounds it to one decimal place, and if you have more than million USD, it assumes that you're not interested in small change and allows you to display up to hundred million. I know there are many new Bitcoin millionaires, but hopefully this is enough even for them. :)

BTC field displays up to 8 digits, rounding decimal places for larger amounts to fit in allocated space. So, you can display up to 99999999 BTC which is pretty hefty sum by today's exchange rate, or up to 7 decimal places for small amounts of bitcoins.

Width is actually recommended width for Windows gadgets so that they can be stacked vertically, so the current design is kind of compromise between displaying the most information, in sufficiently large font, at a standard width, and I'm reluctant to change it unless more users find it constraining.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on November 27, 2013, 01:36:51 AM
It was more for the dollar amount, just thought it would be nice to have it as 123,456.78 rather than 123456.7 just an aesthetic thing really it's probably only me that's so anal :)

I didn't think about the width restriction, but one option could be to use symbols so BTC would be BTC and USD would be $ etc that would free up 2 more characters


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Roccker on December 23, 2013, 12:44:14 PM
Hi!
Thanks for this thing!

But right now it doesn't work for me..
I want to have bitstamp price every 10sec.
My settings:
trading
https://www.bitstamp.net/api/ticker/
sell (also tried json.ticker.sell)

it says 'BTC: N/A' and 'USD: N/A'


Regards!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: warning on December 24, 2013, 04:12:25 AM
Thanks for making these. This is EXACTLY what I was looking for and also thanks for providing coinbase instructions.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: the_poet on January 17, 2014, 06:49:34 PM
Just installed this nice gadget! How can I have it display BTC price from Bitstamp?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: the_poet on January 17, 2014, 07:29:58 PM
I'm going mad! I'm constantly getting the same error as Roccker!

My settings:
trading
https://www.bitstamp.net/api/ticker/
sell (also tried json.ticker.sell)

it says 'BTC: N/A' and 'USD: N/A'


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 20, 2014, 02:40:39 AM
Hi guys!

I hear you about Bitstamp, and the new update is out which fixes that. And not just that. This update brings a bunch of new features and a few bugfixes - actually, this is the version with the most new stuff since version 1.

First and foremost, this version introduces support for Bitstamp. I'm not sure if the way Bitstamp API behaves when it's sent an extra parameter changed recently, or if it didn't work for some time now, buy anyway, it's fixed now.

Big new feature are trailing stop alerts. We had alerts in a sense that you could have the value in the bottom field turn green or red when the price crosses it. However, now you can trigger it when the trend changes. Say that the price is slowly rising, and you set your trailing stop to 20. When the trend reverses and the price falls to less then 20 from the highest recorded price, it turns red. This is a good way to see trend change at a glance and not have to move your stop loss manually every now and then. Note that MyBitcoins will not buy and sell for you; it will simply change color to alert you. You have to do your own trading. :)

Another significant feature is the ability to retrieve Bitcoin balance for one or more addresses. This was possible before by using blockchain.info API as one or more of the pools, but now it's as simple as pasting as many Bitcoin addresses as you want. Some people were manually updating correction field and none of that is needed anymore.

This is far from all that is new, but to keep it brief, these bugs were squashed:
  • although originally correction could be a negative number, at some point this stopped working due to incorrect regex which is now corrected
    default exchange rate key for trading was corrected as the MtGox API changed in the meantime
  • 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

There are also a few other features:
  • 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
  • two additional pools added as some a bit megalomanic people were complaining that three pools are not enough
  • now using MtGox API 2 ticker_fast method instead of "slower" ticker

You can download the new version on the gadget page: http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 20, 2014, 02:56:52 AM
It was more for the dollar amount, just thought it would be nice to have it as 123,456.78 rather than 123456.7 just an aesthetic thing really it's probably only me that's so anal :)

I didn't think about the width restriction, but one option could be to use symbols so BTC would be BTC and USD would be $ etc that would free up 2 more characters

In the end I didn't do this, as I figured that maximum of 8 digits is still not too big to be unreadable. But then I started thinking about Winklewii and how 8 digits might not be enough for them as they own 1% of all Bitcoin and so on; poor Winklewii would not be able to use this gadget!

So I made sure that if the number is too big (or too small) this gets handled in satisfactory way by appending the correct symbol of the order of magnitude (see http://en.wikipedia.org/wiki/Order_of_magnitude#Uses (http://en.wikipedia.org/wiki/Order_of_magnitude#Uses)). Yes, all of them are now supported.

Now, in the end it turns out that for Winklewii 8 digits is still more than enough. But if you take all Bitcoin currently in existence, you can see how much they're worth in USD, and previously you weren't, so I'd say it was worth it:



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on January 20, 2014, 10:19:54 AM
Domchi,

Thanks for the update, especially the addition of multiple btc addresses as requested it works like a charm, for the first time in a while I have a complete total from my 20+ addresses and my current pool combined :)

Here's hoping the day comes when I can see a 'G' in mne, I wouldn't care about decimals then lol



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: greek_hephaestus on January 28, 2014, 05:30:35 PM
Can anyone send exactly the settings for bitstamp. It is a very usefull widget, but It is not work for me !!!
Thank you very much

 :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: tsoPANos on January 28, 2014, 05:46:54 PM
Great gadget!  :D
I was looking for something like this some time ago...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Analyticse on January 28, 2014, 05:54:57 PM
mining procedure see statistic real-time this make develop some be nice for 2014


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: dddbtc on January 28, 2014, 06:03:59 PM
Excellent work! Your gadget has a very pretty user interface and I like it.

Although, anyone that works with sensitive information/wallets on their computer should read this:

http://nakedsecurity.sophos.com/2012/07/12/disable-windows-sidebar-gadgets/

before installing.

I'm not sure if this information is still pertinent/applicable, but last year I turned sidebar.exe off after reading this article.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 28, 2014, 09:30:41 PM
Can anyone send exactly the settings for bitstamp. It is a very usefull widget, but It is not work for me !!!

Hi Hephaestus,

with the last update, I put Bitstamp instructions on the main gadget page, under "Configuring exchanges and pools" section: http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/)

Or, in other words, use this settings for Bitstamp:

primary exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: bid (or whichever of the three below you want to see)
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 28, 2014, 09:43:30 PM
Excellent work! Your gadget has a very pretty user interface and I like it.
Although, anyone that works with sensitive information/wallets on their computer should read this:
http://nakedsecurity.sophos.com/2012/07/12/disable-windows-sidebar-gadgets/
before installing.
I'm not sure if this information is still pertinent/applicable, but last year I turned sidebar.exe off after reading this article.

Microsoft basically says that if you run malicious gadget, it is not too sandboxed as it has a bit more privileges than usual Javascript executed in IE. In Win8, they scrapped gadgets altogether and started pushing tiles and tabletization.

On the upside, this means that you're safe unless you really do run malicious gadget. Just by running sidebar.exe you're not at risk.

MyBitcoins is of course not malicious, and is open-source, so anyone who downloads it and knows a bit of Javascript can unzip it and look inside. That said, take care what gadgets you run, encrypt your wallet, and use cold wallet for cryptocoins you won't spend in the near future.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: greek_hephaestus on January 29, 2014, 08:44:38 PM
Thank you very much Domchi,
It Works great.

Keep the good work

Regards

Hephaestus

Can anyone send exactly the settings for bitstamp. It is a very usefull widget, but It is not work for me !!!

Hi Hephaestus,

with the last update, I put Bitstamp instructions on the main gadget page, under "Configuring exchanges and pools" section: http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/)

Or, in other words, use this settings for Bitstamp:

primary exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: bid (or whichever of the three below you want to see)
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: desii1 on January 29, 2014, 09:38:38 PM

A thought for a future version.  It is very handy to use individual instances for different exchanges, an optional top label would be great to help keep track.

You have done a great job, a donation will soon follow .. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 29, 2014, 11:32:00 PM
A thought for a future version.  It is very handy to use individual instances for different exchanges, an optional top label would be great to help keep track.

You have done a great job, a donation will soon follow .. :)

Thanks! This is not a bad idea, I'll think about it.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Kalroth on February 08, 2014, 09:36:24 AM
Hi,

Is there a way of making the kraken.com ticker work in your app?

Example URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
JSON looks like this, and first element of "c" is what I'm interested in
Code:
{"error":[],
 "result":{
    "XXBTZEUR":{
      "a":["540.70677","1"],
      "b":["539.00000","1"],
      "c":["539.00000","0.10000000"],
      "v":["1412.71346151","1448.52834016"],
      "p":["537.48576","538.17450"],
      "t":[5101,5348],
      "l":["502.10000","502.10000"],
      "h":["570.00000","570.00000"],
      "o":"568.98910"
    }
  }
}


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 08, 2014, 02:46:59 PM
Is there a way of making the kraken.com ticker work in your app?

Example URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
JSON looks like this, and first element of "c" is what I'm interested in
Code:
{"error":[],
 "result":{
    "XXBTZEUR":{
      "a":["540.70677","1"],
      "b":["539.00000","1"],
      "c":["539.00000","0.10000000"],
      "v":["1412.71346151","1448.52834016"],
      "p":["537.48576","538.17450"],
      "t":[5101,5348],
      "l":["502.10000","502.10000"],
      "h":["570.00000","570.00000"],
      "o":"568.98910"
    }
  }
}


Sure. Use this as exchange rate JSON key: json.result.XXBTZEUR.c[0]


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Kalroth on February 08, 2014, 07:36:43 PM

Sure. Use this as exchange rate JSON key: json.result.XXBTZEUR.c[0]


I did try that JSON path first, but I assumed it wasn't functioning since it still says N/A.

It still doesn't want to play nice, using the following primary exchange settings:
Code:
Exchange URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
Exchange rate JSON key: json.result.XXBTZEUR.c[0]
Ticker currency: EUR
Target currency: <empty>

Is there some kind of log available? It'd make it a lot easier to figure out why it isn't working. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 08, 2014, 08:29:13 PM

Sure. Use this as exchange rate JSON key: json.result.XXBTZEUR.c[0]


I did try that JSON path first, but I assumed it wasn't functioning since it still says N/A.

It still doesn't want to play nice, using the following primary exchange settings:
Code:
Exchange URL: https://api.kraken.com/0/public/Ticker?pair=XXBTZEUR
Exchange rate JSON key: json.result.XXBTZEUR.c[0]
Ticker currency: EUR
Target currency: <empty>

Is there some kind of log available? It'd make it a lot easier to figure out why it isn't working. :)

Yeah, Windows gadgets are not really too debugable. :) If you have any invalid JSON keys under seconday exchange, try removing them.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Kalroth on February 08, 2014, 08:54:47 PM

Yeah, Windows gadgets are not really too debugable. :) If you have any invalid JSON keys under seconday exchange, try removing them.

That did the trick, thanks a ton for the help!
A donation from 1DNB.. should be ticking in soon. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on February 16, 2014, 07:21:27 PM
Hi,

how could I add a bitcoincharts.com's bitcoin.de ticker to your gadget?

The data is here:
http://bitcoincharts.com/markets/btcdeEUR.html

And the API:
http://bitcoincharts.com/about/markets-api/

I've tried to put http://api.bitcoincharts.com/v1/markets.json for secondary exchange URL (keeping bitstamp USD as primary) and "btcdeEUR.bid" for the sell JSON value but it does not seem to work. I'm quite sure I'm doing something wrong... thanks for any help!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 17, 2014, 09:44:15 PM
how could I add a bitcoincharts.com's bitcoin.de ticker to your gadget?

The data is here:
http://bitcoincharts.com/markets/btcdeEUR.html

And the API:
http://bitcoincharts.com/about/markets-api/

I've tried to put http://api.bitcoincharts.com/v1/markets.json for secondary exchange URL (keeping bitstamp USD as primary) and "btcdeEUR.bid" for the sell JSON value but it does not seem to work. I'm quite sure I'm doing something wrong... thanks for any help!

Hi Glon,
unfortunately I don't think it's possible. You could do it by using something like json[0].close if the btcdeEUR position was always first (or nth) in the list, but as I can see the position of exchanges is not constant for each call, so you would need to loop over all elements and check symbol to find the right one... sorry.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: scottemick on February 20, 2014, 06:49:43 PM
For some reason I can never get the BTC one to work with coinbase.

url: http://coinbase.com/api/v1/prices/buy

sample json:
{
  "subtotal": {
    "amount": "577.40",
    "currency": "USD"
  },
  "fees": [
    {
      "coinbase": {
        "amount": "5.77",
        "currency": "USD"
      }
    },
    {
      "bank": {
        "amount": "0.15",
        "currency": "USD"
      }
    }
  ],
  "total": {
    "amount": "583.32",
    "currency": "USD"
  },
  "amount": "583.32",
  "currency": "USD"
}


I try:
json.total.amount
amount

but nothing comes up


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 21, 2014, 01:27:08 AM
For some reason I can never get the BTC one to work with coinbase.
url: http://coinbase.com/api/v1/prices/buy

I try:
json.total.amount
amount

but nothing comes up

It seems that http ends up with CloudFlare redirects so the gadget gets some redirect HTML instead of JSON. Use https - https://coinbase.com/api/v1/prices/buy which is where it ends up after redirects. Only "amount" is not conclusive as there are several amounts, but json.total.amount works fine. And make sure that you you clear your JSON keys for field 1, 2 and 3 (when they cannot be resolved final amount can't be calculated correctly as well).


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: scottemick on February 21, 2014, 09:21:31 PM
Thanks so much, it works great...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: zigmas on February 22, 2014, 04:33:58 PM
Great gadget! awesome  :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on February 25, 2014, 01:41:41 PM
Just wanted to say thanks, handy looking gadget.

Just one little request if i may....

I use GBP as my primary currency, and was going to use BitPay API/Ticker (https://bitpay.com/api/rates/GBP) but as you can see it's a little short on secondary information. So my plan was to use the BitPay as primary, and then BitStamp as the secondary to get low/high rates.

Now that i can do, however it won't give me the option to convert using yahoo financial in the secondary exchange :( so i tried setting it up as BitStamp primary, and also set the currency conversion to GBP, and then in the secondary i left the api address blank, that worked as far as converting went, but only for the current rate, not the low/high

any chance you could include the conversion option for each field please ?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: glon on February 25, 2014, 01:58:56 PM
MTGox ticker does not seem to work, what gives?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on February 25, 2014, 02:09:09 PM
MTGox ticker does not seem to work, what gives?

MTGox is dead forever, use one of the other exchanges, I use bitstamp

Primary Exchange: https://www.bitstamp.net/api/ticker/
JSON Key: last

Secondary Exchange
JSON Keys: ask, last & bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 02, 2014, 10:02:15 PM
I use GBP as my primary currency, and was going to use BitPay API/Ticker (https://bitpay.com/api/rates/GBP) but as you can see it's a little short on secondary information. So my plan was to use the BitPay as primary, and then BitStamp as the secondary to get low/high rates.

Now that i can do, however it won't give me the option to convert using yahoo financial in the secondary exchange :( so i tried setting it up as BitStamp primary, and also set the currency conversion to GBP, and then in the secondary i left the api address blank, that worked as far as converting went, but only for the current rate, not the low/high

any chance you could include the conversion option for each field please ?

Hey wayne,

I'm not quite sure that I understood what you want to display - why do you need spread info in a currency you're not trading in? Could you please explain a bit more?

Secondary fields are intentionally not convertible through Yahoo! finance, but you can always spin up several instances of the gadget if you want to convert several amounts.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on March 03, 2014, 09:05:10 AM
whilst all trading is USD based, as you pointed out, however in realities for me, the value in GBP is more understandable/comparable, and as such i use your bitcoin gadget to display my wallet content, and it's value in GBP and then i use your other gadget to display the current GBP exchange rate.

I use the BitPay exchange api because one of the PC accessory sites i use accept bitcoin, and use that site for their conversion rates.

THe high / low rates being in GBP would just have been a nicety

oddly enough nobody does this, even the BitPay widget for your phone, that they make only ever works in USD yet their site is a global concern that supplies exchange rates in multiple currencies.


this is basically what i have on the screen....

http://s27.postimg.org/rtv36ktn7/Picture0017.png


which by chance also shows a second issue, the secondary info does not populate unless the gadget is expanded and left for the update period to complete (i also noticed a similar failure to load automatically on the primary info if you used 2 wallets in gadget)

leaving for the time it took to screenshot and upload resulted in it updating....

http://s14.postimg.org/4jqyhdw8h/Picture0018.png



i guess it just boils down to the fact i'm used to working in GBP, what i pay for with bitcoin is likely to have a comparable GBP value


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 04, 2014, 12:50:29 AM
whilst all trading is USD based, as you pointed out, however in realities for me, the value in GBP is more understandable/comparable, and as such i use your bitcoin gadget to display my wallet content, and it's value in GBP and then i use your other gadget to display the current GBP exchange rate.

I use the BitPay exchange api because one of the PC accessory sites i use accept bitcoin, and use that site for their conversion rates.

THe high / low rates being in GBP would just have been a nicety

oddly enough nobody does this, even the BitPay widget for your phone, that they make only ever works in USD yet their site is a global concern that supplies exchange rates in multiple currencies.

i guess it just boils down to the fact i'm used to working in GBP, what i pay for with bitcoin is likely to have a comparable GBP value

Well, not a scenario I would have thought of, and officially not supported, but I think it can be done. Use this settings. I might add conversion option in the next version to make this simpler.

Primary exchange: https://bitpay.com/api/rates/GBP
Primary exchange JSON key: json.rate / conversionRate
Ticker currency: USD
Target currency: GBP

Secondary exchange: https://www.bitstamp.net/api/ticker/
Field 1 JSON label: high
Field 1 JSON key: json.high * conversionRate
Field 2 JSON label: last
Field 2 JSON key: json.last * conversionRate
Field 3 JSON label: low
Field 3 JSON key: json.low * conversionRate

which by chance also shows a second issue, the secondary info does not populate unless the gadget is expanded and left for the update period to complete (i also noticed a similar failure to load automatically on the primary info if you used 2 wallets in gadget)

leaving for the time it took to screenshot and upload resulted in it updating....

I'll look into it - I did notice similar problems with Google Docs. It fires out several requests and waits for responses, and updates as response is received. I think it might not update if response received is not valid. One thing you can do is simply open settings and click OK - this forces an update.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Jesteroth on March 09, 2014, 11:32:41 AM
How can i get the BTC/USD from BTC-E ? I have the url but can't figure out the json.???

https://btc-e.com/api/2/btc_usd/ticker

/EDIT

Ok i figured out now, mybitcoins gadget can't get btc_usd from BTCE but my litecoins gadget can get it. Very weird problem :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 09, 2014, 01:36:42 PM
How can i get the BTC/USD from BTC-E ? I have the url but can't figure out the json.???

https://btc-e.com/api/2/btc_usd/ticker

/EDIT

Ok i figured out now, mybitcoins gadget can't get btc_usd from BTCE but my litecoins gadget can get it. Very weird problem :)

This is indeed strange. What are your JSON values, are they either "last" or "json.ticker.last"? Do you have the latest version of MyBitcoins gadget (4.0) - you can check this out when you go to desktop gadget gallery and click on "show details"?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Coin.millionair on March 09, 2014, 05:55:18 PM
Hi.

My gadget still shows MtGox price of BTC which is not the real value on the markjet as we all know :)

Could someone let me know how to set coinbase or bitstamp price in the gadget settings ?
Im lost and not familiar with API and Json at all :(


Thanks in advance...

Cheers :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 09, 2014, 06:14:44 PM
My gadget still shows MtGox price of BTC which is not the real value on the markjet as we all know :)
Could someone let me know how to set coinbase or bitstamp price in the gadget settings ?
Im lost and not familiar with API and Json at all :(

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ChiangYay on March 10, 2014, 09:49:38 AM
exchange URL: https://www.bitstamp.net/api/ticker/
is not sending data to me, I GET GOX OLD DATA ask 136.3901,
last 135, bid 135, USD N/A
Anyone have the same problem.

It would be nice if Domci could make a downloadable basic gadget version with bitstamp anyway gox is defunct. 

Thanks in advance.

ChiangYay


My gadget still shows MtGox price of BTC which is not the real value on the markjet as we all know :)
Could someone let me know how to set coinbase or bitstamp price in the gadget settings ?
Im lost and not familiar with API and Json at all :(

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Coin.millionair on March 10, 2014, 09:44:42 PM
exchange URL: https://www.bitstamp.net/api/ticker/
is not sending data to me, I GET GOX OLD DATA ask 136.3901,
last 135, bid 135, USD N/A
Anyone have the same problem.

It would be nice if Domci could make a downloadable basic gadget version with bitstamp anyway gox is defunct. 

Thanks in advance.

ChiangYay


My gadget still shows MtGox price of BTC which is not the real value on the markjet as we all know :)
Could someone let me know how to set coinbase or bitstamp price in the gadget settings ?
Im lost and not familiar with API and Json at all :(

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: lowest_ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy



Same for me, here :(
-Downloaded 4.0
-Copy pasted the lines above (by Domici) but with them, there is no value (N/A) showing.
In case i close gadget and add it again from gadghet gallery, it shows MtGox price (136.3901)

Downloadable version with Coinbase or Bitstamp data would be more than welcome.... !!!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 11, 2014, 01:03:37 AM
Sorry guys, my copypasta mistake.

Exchange rate JSON key for Bitstamp is not "lowest_ask" - but just "ask", same as the field 1 key. So:

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid

I've wanted to release a new version for weeks now but as I'm in crunch mode with a big project somehow just can't find the time to actually do it. :(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ChiangYay on March 11, 2014, 04:05:47 AM
No way man but thanks for trying,
enjoy the pasta.

Sorry guys, my copypasta mistake.

Exchange rate JSON key for Bitstamp is not "lowest_ask" - but just "ask", same as the field 1 key. So:

Bitstamp
exchange URL: https://www.bitstamp.net/api/ticker/
exhange rate JSON key: ask
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid

I've wanted to release a new version for weeks now but as I'm in crunch mode with a big project somehow just can't find the time to actually do it. :(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on March 11, 2014, 12:28:05 PM
whilst all trading is USD based, as you pointed out, however in realities for me, the value in GBP is more understandable/comparable, and as such i use your bitcoin gadget to display my wallet content, and it's value in GBP and then i use your other gadget to display the current GBP exchange rate.

I use the BitPay exchange api because one of the PC accessory sites i use accept bitcoin, and use that site for their conversion rates.

THe high / low rates being in GBP would just have been a nicety

oddly enough nobody does this, even the BitPay widget for your phone, that they make only ever works in USD yet their site is a global concern that supplies exchange rates in multiple currencies.

i guess it just boils down to the fact i'm used to working in GBP, what i pay for with bitcoin is likely to have a comparable GBP value

Well, not a scenario I would have thought of, and officially not supported, but I think it can be done. Use this settings. I might add conversion option in the next version to make this simpler.

Primary exchange: https://bitpay.com/api/rates/GBP
Primary exchange JSON key: json.rate / conversionRate
Ticker currency: USD
Target currency: GBP

Secondary exchange: https://www.bitstamp.net/api/ticker/
Field 1 JSON label: high
Field 1 JSON key: json.high * conversionRate
Field 2 JSON label: last
Field 2 JSON key: json.last * conversionRate
Field 3 JSON label: low
Field 3 JSON key: json.low * conversionRate

which by chance also shows a second issue, the secondary info does not populate unless the gadget is expanded and left for the update period to complete (i also noticed a similar failure to load automatically on the primary info if you used 2 wallets in gadget)

leaving for the time it took to screenshot and upload resulted in it updating....

I'll look into it - I did notice similar problems with Google Docs. It fires out several requests and waits for responses, and updates as response is received. I think it might not update if response received is not valid. One thing you can do is simply open settings and click OK - this forces an update.


Thanks for that, it sort of works in the way you explained it, but the conversion via Yahoo finance is different, for example my current wallet balance is 0.03 BTC which off the BitPay ticker price/rate is about £12 run it through the yahoo conversion and it comes out at £7 and some change, so basically i have a £5 discrepancy :(
Also the labels are tied to the currency selected, so i can't display BAL for wallet balance/Value without screwing up the secondary's conversion code, because they are not 100% seperate, but thanks for trying :)

Also, i've found that now via LocalBitcoins site i can trade in GBP :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: E.exchanger on March 14, 2014, 08:29:16 PM
Just downloaded it and its clean, safe and bloody brilliant :) excellent effort and contribution in the community  :-*


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 15, 2014, 10:03:15 PM
Thanks for that, it sort of works in the way you explained it, but the conversion via Yahoo finance is different, for example my current wallet balance is 0.03 BTC which off the BitPay ticker price/rate is about £12 run it through the yahoo conversion and it comes out at £7 and some change, so basically i have a £5 discrepancy :(

Of course, that's because you're looking at two different exchange rates - Bitpay BTC-USD and then Yahoo! USD-GBP compared to BitPay BTC-GBP. Or if you're looking at Bitstamp and Bitpay, of course the two will have different rate - rate differences between BTC exchanges have been in the hundreds of dollars. As soon as you're not looking at a single currency pair on a single exchange, you're going to have differences.

Also the labels are tied to the currency selected, so i can't display BAL for wallet balance/Value without screwing up the secondary's conversion code, because they are not 100% seperate, but thanks for trying :)

Don't try to put too many things in one gadget instance, the idea behind it is to really display only a single number after all. :) Use more than one instance to look at several things at once.

Also, i've found that now via LocalBitcoins site i can trade in GBP :)

BTW do you know that LocalBitcoins has API as well? For example, you can use https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/ as exchange URL and then perhaps json.GBP.rates.last as JSON key.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on March 18, 2014, 07:27:30 PM
i wasn't aware of the api there, thanks for that

as for the multiple instances, yeah, that's pretty much what i'm doing.

btw, yesterday and today, it seemed the gadget was unable to get the balance of my wallet, it's ok now but couldn't for a number of hours.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 18, 2014, 08:33:45 PM
btw, yesterday and today, it seemed the gadget was unable to get the balance of my wallet, it's ok now but couldn't for a number of hours.

Yeah, Blockchain.info is having problems (and is still not fully online yet): https://blog.blockchain.com/


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on April 11, 2014, 01:04:46 AM
Hi guys,

new version is out.

This update is the last MtGox-related update as it changes default MyBitcoins exchange URL to Bitstamp. MyBitcoins gadget would have almost twice less updates if it was not for MtGox API changes and problems, and although I sympathize with all folks who lost money with MtGox, honestly I'm happy to see it go.

It took me a while–-far too long–-to release this update as I was engaged with other projects and I apologize for that. Luckily, the gadgets work even if I'm not around to update them, and when default exchange stops working, you can simply switch to another exchange. If you have problems hooking gadget to anything, check the official gadget thread on Bitcointalk (check links on the left on each gadget download page) and if it's not already mentioned, don't be shy, ask me either in the tread or directly by answering this e-mail. I'd be glad to help.

Today I'm releasing the new versions of all gadgets. MyBitcoins has changed default exchange URL to Bitstamp, and there is one other new feature–you can write your own text in note field in settings and see it as you hover over the gadget. This is useful especially if you're using more than one instance of a same gadget and need a way to differentiate them.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: JeffZwolle on November 09, 2014, 01:33:41 AM
Too bad this Windows-gadget no longer seems to function on my pc since somewhere in the last 2 weeks.
Could there be a reason other than mij PC for this?

P.S. I downloaded it in November 2013 from http://domchi.cc/mybitcoins/
( Not from http://mybitcoinsgadget.esy.es/ which is untrusted : https://bitcointalk.org/index.php?topic=776063.0 )

I get the values from https://btc-e.com/api/2/btc_eur/ticker

Anyone else experiencing the same problem?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Tigggger on November 09, 2014, 10:58:27 AM
Still works fine for me on a couple of different PC's

I use bitstamp though not btc-e

Exchange URL: https://www.bitstamp.net/api/ticker/
Variable: last
Currency: USD


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 09, 2014, 12:29:15 PM
Too bad this Windows-gadget no longer seems to function on my pc since somewhere in the last 2 weeks.
Could there be a reason other than mij PC for this?

P.S. I downloaded it in November 2013 from http://domchi.cc/mybitcoins/
( Not from http://mybitcoinsgadget.esy.es/ which is untrusted : https://bitcointalk.org/index.php?topic=776063.0 )

I get the values from https://btc-e.com/api/2/btc_eur/ticker

Anyone else experiencing the same problem?

Hi Jeff,

the one on esy.es is fake and .exe file which does who knows what, don't download it. Thanks for letting me know, I've commented in the other thread.

Try downloading the new version, between the November 2013 and now I've released versions 4.0 and 4.1, and in 4.0 there was a fix for a caching issue which might affect BTC-e if they changed something recently. I've tested BTC-e with the newest version and it works and updates OK.

One other thing, sidebar.exe which runs gadgets is known to hang sometimes when running for a long time (a few days or weeks), and all gadgets stop updating. If that's the case, you can use task manager / processes to end process sidebar.exe, and then restart it by running sidebar.exe manually (usually located at C:\Program Files\Windows Sidebar).

Personally, I've got a script scheduled in Task Scheduler to automate restarting sidebar.exe from time to time (every two days) which I got from here: https://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/ (https://sysadminspot.com/windows/how-to-fix-sidebar-exe-using-lots-of-memory/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Den1982 on November 22, 2014, 06:39:53 PM
How can i get the BTC/USD from BTC-E ? I have the url but can't figure out the json.???

https://btc-e.com/api/2/btc_usd/ticker

/EDIT

Ok i figured out now, mybitcoins gadget can't get btc_usd from BTCE but my litecoins gadget can get it. Very weird problem :)

This is indeed strange. What are your JSON values, are they either "last" or "json.ticker.last"? Do you have the latest version of MyBitcoins gadget (4.0) - you can check this out when you go to desktop gadget gallery and click on "show details"?

Hello!
Same problem. I am use 4.1 version and BTC-E did not work on it. On myLitecoins gadget BTC-E works perfectly.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 22, 2014, 10:10:27 PM
How can i get the BTC/USD from BTC-E ? I have the url but can't figure out the json.???

https://btc-e.com/api/2/btc_usd/ticker

/EDIT

Ok i figured out now, mybitcoins gadget can't get btc_usd from BTCE but my litecoins gadget can get it. Very weird problem :)

This is indeed strange. What are your JSON values, are they either "last" or "json.ticker.last"? Do you have the latest version of MyBitcoins gadget (4.0) - you can check this out when you go to desktop gadget gallery and click on "show details"?

Hello!
Same problem. I am use 4.1 version and BTC-E did not work on it. On myLitecoins gadget BTC-E works perfectly.

I've just tried and it works OK for me. Very strange, as the code is the same. Let's try to troubleshoot this:

1. Are your exchange settings as following:

BTC-E
exchange URL: https://btc-e.com/api/2/btc_usd/ticker
exhange rate JSON key: sell
field 1 JSON key: sell
field 2 JSON key: last
field 3 JSON key: buy

2. What's your exchange data update interval?

2. What is the version of your MyLitecoins gadget which works (should be 3.0)?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: John.Berl on November 23, 2014, 08:38:30 PM
Do you have a gadget for MacOS?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 24, 2014, 02:15:11 AM
Do you have a gadget for MacOS?

No, sorry.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: John.Berl on November 24, 2014, 04:19:51 AM
and anyone knows any gadgets under MacOS?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on May 18, 2015, 09:27:53 AM
I was wondering if anyone has gotten this gadget to work with Bitfinex? I'm not a programmer by any means but I'd like to be able to use btcusd on Bitfinex? Can anyone help?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on May 18, 2015, 10:45:48 AM
I was wondering if anyone has gotten this gadget to work with Bitfinex? I'm not a programmer by any means but I'd like to be able to use btcusd on Bitfinex? Can anyone help?


Hi japerry,

it's simple, go to gadget settings (wrench icon) and set change the following options:

Bitfinex
exchange URL: https://api.bitfinex.com/v1/pubticker/BTCUSD (https://api.bitfinex.com/v1/pubticker/BTCUSD)
exhange rate JSON key: last_price
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on May 18, 2015, 02:44:01 PM
I was wondering if anyone has gotten this gadget to work with Bitfinex? I'm not a programmer by any means but I'd like to be able to use btcusd on Bitfinex? Can anyone help?


Hi japerry,

it's simple, go to gadget settings (wrench icon) and set change the following options:

Bitfinex
exchange URL: https://api.bitfinex.com/v1/pubticker/BTCUSD (https://api.bitfinex.com/v1/pubticker/BTCUSD)
exhange rate JSON key: last_price
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid


Works like a dream! Thanks!!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ikydesu on June 22, 2015, 07:40:40 AM
Hi!

Do you want to see your BTC grow?

I did.

I wanted to be able to see two key pieces of information, my BTC and how much it's worth, but everything I found either wasn't a Windows gadget, or had too much info, or something... so I rolled my own.

This gadget 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 BTC; for example, to include BTC amount you exchanged or spent.

If you like it, you can let me know by sending some coins to 1CA1AL9X3VfZGYftnmRbQQeR7vdTwQyvhC - and if you have any questions/suggestions, fire away.

Download link: http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/)


Ouch, when i search for bitcoin widget price for windows, then i find this thread. When i scanned the site found this: https://www.virustotal.com/id/url/c1814dab7842c5ecf697e632d497e763cdabd3c76bf832d7a004efcf098d90f8/analysis/1434958587/ 1 Malicious.


~iki


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 22, 2015, 08:09:01 AM
Ouch, when i search for bitcoin widget price for windows, then i find this thread. When i scanned the site found this: https://www.virustotal.com/id/url/c1814dab7842c5ecf697e632d497e763cdabd3c76bf832d7a004efcf098d90f8/analysis/1434958587/ 1 Malicious.
~iki

What you're looking at is a false positive. Please note that the other 62 scanners on the same page say it's clean. I don't know where Websense ThreatSeeker is getting its info, but I can assure you that site is legit and without viruses.

But you don't have to take my word for it - check the page source, there's nothing suspicious in it. Also, the .gadget file itself is a simple ZIP with a few images, HTML and Javascript packed inside - you can unzip it before you install it and check it out. Search .js files in js folder for "http://" and "https://" to see where it connects.

Also, here's the antivirus scan of .gadget file on two separate online virus scanners - clean as a whistle. Don't trust me? Scan it yourself, you'll get the same result.

https://www.metascan-online.com/en/scanresult/file/636263b8c0674f9297b969288d7196c0 (https://www.metascan-online.com/en/scanresult/file/636263b8c0674f9297b969288d7196c0)

https://www.virustotal.com/id/file/443918b479a51bb957503805c5585688986ad66f94cae42b65c2c2bd919e32d4/analysis/ (https://www.virustotal.com/id/file/443918b479a51bb957503805c5585688986ad66f94cae42b65c2c2bd919e32d4/analysis/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ikydesu on June 22, 2015, 08:31:04 AM
Ouch, when i search for bitcoin widget price for windows, then i find this thread. When i scanned the site found this: https://www.virustotal.com/id/url/c1814dab7842c5ecf697e632d497e763cdabd3c76bf832d7a004efcf098d90f8/analysis/1434958587/ 1 Malicious.
~iki

What you're looking at is a false positive. Please note that the other 62 scanners on the same page say it's clean. I don't know where Websense ThreatSeeker is getting its info, but I can assure you that site is legit and without viruses.

But you don't have to take my word for it - check the page source, there's nothing suspicious in it. Also, the .gadget file itself is a simple ZIP with a few images, HTML and Javascript packed inside - you can unzip it before you install it and check it out. Search .js files in js folder for "http://" and "https://" to see where it connects.

Also, here's the antivirus scan of .gadget file on two separate online virus scanners - clean as a whistle. Don't trust me? Scan it yourself, you'll get the same result.

https://www.metascan-online.com/en/scanresult/file/636263b8c0674f9297b969288d7196c0 (https://www.metascan-online.com/en/scanresult/file/636263b8c0674f9297b969288d7196c0)

https://www.virustotal.com/id/file/443918b479a51bb957503805c5585688986ad66f94cae42b65c2c2bd919e32d4/analysis/ (https://www.virustotal.com/id/file/443918b479a51bb957503805c5585688986ad66f94cae42b65c2c2bd919e32d4/analysis/)

Easy, I do not mean to denigrate your site, as far as i see guys here looks like they haven't any problem. Oke i will check carefully, but make sure to check the site always clean.


~iki


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 22, 2015, 08:45:36 AM
Easy, I do not mean to denigrate your site, as far as i see guys here looks like they haven't any problem. Oke i will check carefully, but make sure to check the site always clean.
~iki

Oh, sorry if it seemed that way - don't take me wrong, I'm glad (and thankful) you've reported this. If you didn't, I wouldn't know about it, and people would be afraid to use (hopefully) useful gadget.

Site is clean, that's the first thing I checked, files haven't been modified since my last update. There's always a possibility that someone has hacked it and embedded some sort of malware on it.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on July 16, 2015, 11:04:15 AM
I was wondering if anyone has gotten this gadget to work with Bitfinex? I'm not a programmer by any means but I'd like to be able to use btcusd on Bitfinex? Can anyone help?


Hi japerry,

it's simple, go to gadget settings (wrench icon) and set change the following options:

Bitfinex
exchange URL: https://api.bitfinex.com/v1/pubticker/BTCUSD (https://api.bitfinex.com/v1/pubticker/BTCUSD)
exhange rate JSON key: last_price
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid


Works like a dream! Thanks!!


Hmm... Looks like it stopped working about a week ago. All I get is N/A now. Would it be possible for someone to help guide me to see if Bitfinex has changed their API or something? I've unloaded and reloaded/reconfigured the gadget per the instructions in the previous message. Any help would be greatly appreciated!

UPDATE: Nevermind! It's working now!!




Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 16, 2015, 02:03:15 PM
Hmm... Looks like it stopped working about a week ago. All I get is N/A now. Would it be possible for someone to help guide me to see if Bitfinex has changed their API or something? I've unloaded and reloaded/reconfigured the gadget per the instructions in the previous message. Any help would be greatly appreciated!

UPDATE: Nevermind! It's working now!!

I've noticed this a few days ago and went investigating. It seems that Bitfinex is using some sort of new anti-DDoS system - when the gadget doesn't update it is actually getting message that it's blocked. I haven't been able to find out what triggers it, but it's not just IP block, it's based on type of browser as well. It seems they blocked Internet Explorer (which is used by gadget) specifically. After a while this went away for me as well.

Perhaps choosing larger update interval in gadget would help, but there is no way of telling. I think that it's not about frequency of requests. Some sort of heuristics figured out that IE should be blocked for a while. Maybe they had DDoS attack that used or emulated IE.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on July 17, 2015, 08:03:45 AM

I've noticed this a few days ago and went investigating. It seems that Bitfinex is using some sort of new anti-DDoS system - when the gadget doesn't update it is actually getting message that it's blocked. I haven't been able to find out what triggers it, but it's not just IP block, it's based on type of browser as well. It seems they blocked Internet Explorer (which is used by gadget) specifically. After a while this went away for me as well.

Perhaps choosing larger update interval in gadget would help, but there is no way of telling. I think that it's not about frequency of requests. Some sort of heuristics figured out that IE should be blocked for a while. Maybe they had DDoS attack that used or emulated IE.

Thanks! Let us know if you find anything? BTW I've decreased the polling rate to 120 seconds and it seems to work much better now.



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 17, 2015, 05:50:15 PM
Thanks! Let us know if you find anything? BTW I've decreased the polling rate to 120 seconds and it seems to work much better now.

Well, Bitfinex is using Incapsula (https://www.incapsula.com/) which uses who-knows-what voodoo to detect suspicious connections. In this case it presents captcha and MyBitcoins gadget (obviously) fails the captcha test.

It's not due to number of requests - I've had it happen when gadget is set to poll Bitfinex once in 10 minutes, and their official API limit is 60 times per minute.

It makes no sense to have captcha protecting API endpoint, but that's how it goes with those CDNs that are optimized to work with websites instead of APIs... I've contacted Bitfinex support and reported this, I'll update here if it goes anywhere.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on July 17, 2015, 06:21:30 PM
Thanks! Let us know if you find anything? BTW I've decreased the polling rate to 120 seconds and it seems to work much better now.

Well, Bitfinex is using Incapsula (https://www.incapsula.com/) which uses who-knows-what voodoo to detect suspicious connections. In this case it presents captcha and MyBitcoins gadget (obviously) fails the captcha test.

It's not due to number of requests - I've had it happen when gadget is set to poll Bitfinex once in 10 minutes, and their official API limit is 60 times per minute.

It makes no sense to have captcha protecting API endpoint, but that's how it goes with those CDNs that are optimized to work with websites instead of APIs... I've contacted Bitfinex support and reported this, I'll update here if it goes anywhere.

Thanks! I noticed the gadget is not displaying N/A but it's not updating either. It just shows the last price it was able to get whenever that was :(



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 19, 2015, 05:06:29 PM
It makes no sense to have captcha protecting API endpoint, but that's how it goes with those CDNs that are optimized to work with websites instead of APIs... I've contacted Bitfinex support and reported this, I'll update here if it goes anywhere.

I've talked Bitfinex and they basically say that they've had a large-scale DDoS attack for the last week or so, and that captcha will go away once the DDoS ceases.

Unfortunately nothing can be done in the meantime except perhaps switching to Bitstamp or some other ticker.  :(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on August 05, 2015, 09:00:32 PM
To anyone having problems with MyBitcoins gadget and Bitfinex prices - after a few weeks of back and forth with them, I'm happy to say that Bitfinex has removed the rule blocking IE and thus the gadget from fetching prices. Please let me know either here or in PM if anyone is still experiencing issues with Bitfinex.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on August 06, 2015, 11:19:31 AM
To anyone having problems with MyBitcoins gadget and Bitfinex prices - after a few weeks of back and forth with them, I'm happy to say that Bitfinex has removed the rule blocking IE and thus the gadget from fetching prices. Please let me know either here or in PM if anyone is still experiencing issues with Bitfinex.

Excellent Domchi! Thanks for the update!



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on July 29, 2016, 11:55:07 AM
Does anyone have an example of how to get the gadget to work with BTC-USD on bitcoinaverage.com? I don't understand their API  :'(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Shiroslullaby on July 29, 2016, 12:07:32 PM
Very cool project!
I'll have a look at it later today, but have a quick question-

is this just connecting to the sites like a normal web browser- port 80 http connection?
(wondering from a security perspective as I might try to connect at work behind a strict firewall that may not allow all traffic out.)

Also I think having it update once every one to five minutes is probably fine.
Unless you are doing real-time trading the price of BTC moving over five minutes is probably not that much to cause any issues.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 29, 2016, 10:18:20 PM
Does anyone have an example of how to get the gadget to work with BTC-USD on bitcoinaverage.com? I don't understand their API  :'(

This should do it, using their BETA API. (For v1 API that is to be depreciated, the link is https://api.bitcoinaverage.com/ticker/USD/ and other values the same, but they recommend using BETA.)

BitcoinAverage
exchange URL: https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCUSD
exhange rate JSON key: last
field 1 JSON key: ask
field 2 JSON key: last
field 3 JSON key: bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 29, 2016, 10:28:10 PM
is this just connecting to the sites like a normal web browser- port 80 http connection?
(wondering from a security perspective as I might try to connect at work behind a strict firewall that may not allow all traffic out.)

Also I think having it update once every one to five minutes is probably fine.
Unless you are doing real-time trading the price of BTC moving over five minutes is probably not that much to cause any issues.

The gadget is using Internet Explorer in the background, with all your current IE proxy and other settings, so it should work for any URL that is not blocked by your company firewall. Depending on exchange, this is usually either http (port 80) or https (port 443) GET connection, which are usually enabled by default unless specifically blocked by your network administrator. If you can access URL in browser, gadget will also be able to access it.

And you're correct, by default gadget updates every 10 minutes (mining defaults) which is enough for non-traders, and if you choose trading setup it will update once every minute, which can be changed to less. Exchanges usually have minimum period between requests that you should respect while setting up update frequency.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: japerry on July 30, 2016, 08:54:50 AM
is this just connecting to the sites like a normal web browser- port 80 http connection?
(wondering from a security perspective as I might try to connect at work behind a strict firewall that may not allow all traffic out.)

Also I think having it update once every one to five minutes is probably fine.
Unless you are doing real-time trading the price of BTC moving over five minutes is probably not that much to cause any issues.

The gadget is using Internet Explorer in the background, with all your current IE proxy and other settings, so it should work for any URL that is not blocked by your company firewall. Depending on exchange, this is usually either http (port 80) or https (port 443) GET connection, which are usually enabled by default unless specifically blocked by your network administrator. If you can access URL in browser, gadget will also be able to access it.

And you're correct, by default gadget updates every 10 minutes (mining defaults) which is enough for non-traders, and if you choose trading setup it will update once every minute, which can be changed to less. Exchanges usually have minimum period between requests that you should respect while setting up update frequency.

Thanks again! I LOVE this widget!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Wed on January 18, 2017, 08:32:42 AM
Hey,
is this still in development or maintenance?
I'm trying to get my own json API to work but I isn't working.

"rate_weighted" from https://api.wedtec.net/cryptocoins/index.php?bitcoin

Any idea why it isn't working?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 18, 2017, 12:22:24 PM
Hey,
is this still in development or maintenance?
I'm trying to get my own json API to work but I isn't working.

"rate_weighted" from https://api.wedtec.net/cryptocoins/index.php?bitcoin

Any idea why it isn't working?

Yes it is.

If you're using https://api.wedtec.net/cryptocoins/index.php?bitcoin as secondary exchange, and rate_weighted as Field 1 JSON key, make sure that you clear Field 2 JSON key and Field 3 JSON key. Or, to put it another way, all JSON keys must exist in response (exchange rate JSON key on primary exchange as well).

If this doesn't help, please share your settings and I'll take a look.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Wed on January 18, 2017, 12:50:35 PM
I tried it for the primary exchange.
With secondary exchange it works like a charm.
Thank you for your help.

Is it possible to hide top and bottom line? In other words primary exchange?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 18, 2017, 01:04:14 PM
I tried it for the primary exchange.
With secondary exchange it works like a charm.
Thank you for your help.

Is it possible to hide top and bottom line? In other words primary exchange?

It should also work for the primary exchange, but make sure that JSON fields for the secondary exchange are empty (or have something that parses in them).

It's not possible to hide top field, but it's possible to choose what is displayed in top field and/or hide the bottom field. Play with the first two (or three) options in settings under General section.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Wed on January 18, 2017, 02:06:14 PM
Great,
if I clean all secondary fields also primary exchange is working.
Thank you for your short and great help!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: budjang_l on July 06, 2017, 08:43:59 PM
Hi Domchi,

I'm start using your gadget this couple days to check Bitgrail market. But recently it didn't show any info from https://bitgrail.com/api/v1/BTC-XRB/ticker (https://bitgrail.com/api/v1/BTC-XRB/ticker), just zero. Is there anything wrong?

Update:
It seems the problem wasn't in your gadget. It's because of Bitgrail recent DDOS protection. ;D


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 06, 2017, 10:05:18 PM
I'm start using your gadget this couple days to check Bitgrail market. But recently it didn't show any info from https://bitgrail.com/api/v1/BTC-XRB/ticker (https://bitgrail.com/api/v1/BTC-XRB/ticker), just zero. Is there anything wrong?

Update:
It seems the problem wasn't in your gadget. It's because of Bitgrail recent DDOS protection. ;D

Yes, DDoS protection can be a bit annoying and hard to troubleshoot when gadget gets DDoS warning while normal browser doesn't. :(


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: IsaacRaschke on August 25, 2017, 07:46:39 AM
How the fuck do I track Bitcoin value in AUD? :/ I'm so confused... I tried to read how to on the instruction page already and I'm very confused with the JSON thing... What JSON source do I get?? I don't even know how it works well enough to do this (coding can be pretty overwhelming for me).. Sorry if the instructions are obvious on the MyCoins gadget website, but I keep getting lost when reading them.. I don't understand this.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: IsaacRaschke on August 25, 2017, 08:02:04 AM
Hi japerry,

it's simple, go to gadget settings (wrench icon) and set change the following options:

Bitfinex
exchange URL: https://api.bitfinex.com/v1/pubticker/BTCUSD (https://api.bitfinex.com/v1/pubticker/BTCUSD)
exhange rate JSON key: last_price
field 1 JSON key: ask
field 2 JSON key: last_price
field 3 JSON key: bid

How'd you make that happen? I'm following the EXACT same format using another API which exists.. But its still not working... How do you guys learn how to do this? I'd like to know if there's an easier way to learn how to do this.. But there doesn't seem to be :/


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on August 25, 2017, 04:55:29 PM
How the fuck do I track Bitcoin value in AUD? :/

The first thing to get price in fiat is to make sure you have non-zero value (i.e. 1) in "Correction in currency". Then, your ticker currency must be BTC or USD. And finally, the most important thing is to set Target currency to AUD.

I'm so confused... I tried to read how to on the instruction page already and I'm very confused with the JSON thing... What JSON source do I get?? I don't even know how it works well enough to do this (coding can be pretty overwhelming for me).. Sorry if the instructions are obvious on the MyCoins gadget website, but I keep getting lost when reading them.. I don't understand this.

Have you tried downloading MyBitcoins/MyLitecoins gadgets as well and looking at its settings? That might be a good quickstart as sometimes you just have to change API call to a different coin. MyBitcoins comes with working exchange rate by default, while you have to setup MyCoins to show something.

Also, I'd be very grateful if you could suggest how to improve documentation and what you had problems understanding. I'm keen to improve it.

How'd you make that happen? I'm following the EXACT same format using another API which exists.. But its still not working... How do you guys learn how to do this? I'd like to know if there's an easier way to learn how to do this.. But there doesn't seem to be :/

Well, the exact syntax depends on the API. The greatest strength of this gadget is that it can hook up to almost any API, but that also means you have to somehow instruct it to do so.

Can you share which API and coin you're trying to get, so that I can help with the specifics?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: The One on October 29, 2017, 11:41:30 AM
Trying to get GBP without yahoo exchange rate.

Correction + pool
https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/
json.GBP.rates.last
GBP.rates.last
rates.last
last

None of the four works.

Ticker GBP and target GBP doesn't work.

It persistently shows USD then GBP at the bottom as N/A.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 29, 2017, 12:11:14 PM
Trying to get GBP without yahoo exchange rate.

Correction + pool
https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/
json.GBP.rates.last
GBP.rates.last
rates.last
last

None of the four works.

Ticker GBP and target GBP doesn't work.

It persistently shows USD then GBP at the bottom as N/A.

json.GBP.rates.last is correct. But clear field 1, 2 and 3 JSON keys, I would guess you have some old invalid keys there.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: The One on October 29, 2017, 02:35:29 PM
Trying to get GBP without yahoo exchange rate.

Correction + pool
https://localbitcoins.com/bitcoinaverage/ticker-all-currencies/
json.GBP.rates.last
GBP.rates.last
rates.last
last

None of the four works.

Ticker GBP and target GBP doesn't work.

It persistently shows USD then GBP at the bottom as N/A.

json.GBP.rates.last is correct. But clear field 1, 2 and 3 JSON keys, I would guess you have some old invalid keys there.

Are you referring to the secondary exchange as i was referring to the primary exchange?

Sorted, thxs.

Also, why does it reverts to default setting every time i restart it?

avg_6h instead of last doesn't work?

Sorted by removing rates.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 29, 2017, 03:46:42 PM
Also, why does it reverts to default setting every time i restart it?

You did not restart it, you closed one gadget and started a new one. You can start multiple instances if you want, each with its own settings.

Technically, gadgets are not meant to be restarted. You "add" them to your desktop, you close them if you don't have use for them anymore and that's pretty much it. Oh, and you can "hide" them by right-clicking on the desktop and toggling "Show desktop gadgets" - that keeps the settings intact.

Glad you made it work!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ashaksagnis on October 29, 2017, 07:44:23 PM
Great! will try to download. used blockfolio for phone . nice app . this is similar to blockfolio?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 29, 2017, 08:44:02 PM
Great! will try to download. used blockfolio for phone . nice app . this is similar to blockfolio?

Yep, but not for phone, for Windows 7. You can check it out at: http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 03, 2017, 12:21:03 PM
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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 03, 2017, 05:58:49 PM
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/mybitcoins/ (http://domchi.cc/mybitcoins/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: mamesso on November 05, 2017, 10:31:03 PM
Great! will try to download. used blockfolio for phone . nice app . this is similar to blockfolio?

just as a gadget for windows, blockfolio i think it is more complete.
but at least it helps to keep track of bitcoin movements.
so far i like to use it.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Snub on November 06, 2017, 12:00:35 AM
Really nice gadget, light, handly and very-very usefull.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: davidorentol on November 19, 2017, 01:07:25 AM
For ETH/EUR


exchange URL : https://api.kraken.com/0/public/Ticker?pair=ETHEUR

exhange rate JSON key : json.result.XETHZEUR.c[0]


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ApocalypseNow on November 19, 2017, 07:28:20 AM
This is a very helpful window application that I need. I always like to check btc price and you are right that before I even see the price is I see many ads that will congest the site first. I don't have a fast internet so I will really try this out.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ralags on November 19, 2017, 07:36:21 AM
 i want to get current value from coinmarketcap website but when i tried to this api https://api.coinmarketcap.com/v1/ticker/bitcoin/ i am not getting latest values, can some one guide me how to make edit in settings for this


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 19, 2017, 11:03:08 AM
i want to get current value from coinmarketcap website but when i tried to this api https://api.coinmarketcap.com/v1/ticker/bitcoin/ i am not getting latest values, can some one guide me how to make edit in settings for this

Please note that Coinmarketcap has value in USD and value in BTC. For BTC, value in BTC is 1, but it comes in handy for all other cryptocurrencies. So, important step is to clear field 1, 2 and 3 JSON keys in settings, otherwise gadget will not be able to update the price.

So for BTC:

Main currency: BTC
Exchange URL: https://api.coinmarketcap.com/v1/ticker/bitcoin/
Exchange rate JSON key: price_usd
Ticker currency: USD

...and for, say, ETH, you have to fetch price_btc JSON key (and this will work for any other cryptocurrency):

Main currency: ETH
Exchange URL: https://api.coinmarketcap.com/v1/ticker/ethereum/
Exchange rate JSON key: price_btc
Ticker currency: BTC


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: ralags on November 19, 2017, 01:34:15 PM
i want to get current value from coinmarketcap website but when i tried to this api https://api.coinmarketcap.com/v1/ticker/bitcoin/ i am not getting latest values, can some one guide me how to make edit in settings for this

Please note that Coinmarketcap has value in USD and value in BTC. For BTC, value in BTC is 1, but it comes in handy for all other cryptocurrencies. So, important step is to clear field 1, 2 and 3 JSON keys in settings, otherwise gadget will not be able to update the price.

So for BTC:

Main currency: BTC
Exchange URL: https://api.coinmarketcap.com/v1/ticker/bitcoin/
Exchange rate JSON key: price_usd
Ticker currency: USD

...and for, say, ETH, you have to fetch price_btc JSON key (and this will work for any other cryptocurrency):

Main currency: ETH
Exchange URL: https://api.coinmarketcap.com/v1/ticker/ethereum/
Exchange rate JSON key: price_btc
Ticker currency: BTC


Thank you its working


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Inju on January 05, 2018, 11:38:11 AM
Hi,

I want to get USD price of LTC from bitfinex site.
I tried with your gadget, but not working.
Please can you tell what exactly need to be typed & where.
Thank you.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on January 05, 2018, 01:42:49 PM
I want to get USD price of LTC from bitfinex site.
I tried with your gadget, but not working.
Please can you tell what exactly need to be typed & where.

Well, you could use MyBitcoins gadget, but if you want to show LTC price I recommend that you download my MyLitecoins gadget from http://domchi.cc/mylitecoins/ (http://domchi.cc/mylitecoins/) - the functionality is the same, but the design is different and it comes with Litecoin price already set up - although it retrieves the BTCLTC price from Poloniex. To set it up to show LTC price in USD from Bitfinex, change the following settings:

Bitfinex
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


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Inju on January 05, 2018, 02:09:29 PM
I want to get USD price of LTC from bitfinex site.
I tried with your gadget, but not working.
Please can you tell what exactly need to be typed & where.

Well, you could use MyBitcoins gadget, but if you want to show LTC price I recommend that you download my MyLitecoins gadget from http://domchi.cc/mylitecoins/ (http://domchi.cc/mylitecoins/) - the functionality is the same, but the design is different and it comes with Litecoin price already set up - although it retrieves the BTCLTC price from Poloniex. To set it up to show LTC price in USD from Bitfinex, change the following settings:

Bitfinex
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


Thank you very much.
Its working perfectly.
Thanks again.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: bekhuong45 on February 28, 2018, 05:53:50 PM
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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 28, 2018, 10:21:15 PM
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.

Well, that's not exactly true. The last version of gadgets is 4.2 for MyBitcoins and 3.2 for MyLitecoins, both available since November 2017, so not exactly new. Support for international/German Windows and json variable is available since MyBitcoins 2.1 and MyLitecoins 1.2 released in September 2012.

This info is available on MyBitcoins and MyLitecoins web page; please download your gadgets only from official website, http://www.domchi.cc/mybitcoins/ (http://www.domchi.cc/mybitcoins/) and http://www.domchi.cc/mylitecoins/ (http://www.domchi.cc/mylitecoins/).


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on March 28, 2018, 07:59:24 PM
Anyone have info on GDAX API settings? TIA.

BTW, alerts don't seem to be working with Bitstamp. What's supposed to happen; color change, audio alert?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 29, 2018, 12:29:31 AM
Anyone have info on GDAX API settings? TIA.

GDAX
exchange URL: https://api.gdax.com/products/BTC-USD/ticker
exhange rate JSON key: price
ticker currency: USD
field 1 JSON key: ask
field 2 JSON key: price
field 3 JSON key: bid

BTW, alerts don't seem to be working with Bitstamp. What's supposed to happen; color change, audio alert?

Price number changes color to green or red. For example, right now BTC price rate is around $7914. Set red alert type to fixed, Alert when amount is lower than: 8000 and when you exit settings, price should become red.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on March 29, 2018, 03:36:16 AM
Thank you very much. GDAX settings working nicely. Display still not changing color however. current price is below 8000, but when alarm is set to 8000, no color change. Using the latest version, 4.2.


Anyone have info on GDAX API settings? TIA.

GDAX
exchange URL: https://api.gdax.com/products/BTC-USD/ticker
exhange rate JSON key: price
ticker currency: USD
field 1 JSON key: ask
field 2 JSON key: price
field 3 JSON key: bid

BTW, alerts don't seem to be working with Bitstamp. What's supposed to happen; color change, audio alert?

Price number changes color to green or red. For example, right now BTC price rate is around $7914. Set red alert type to fixed, Alert when amount is lower than: 8000 and when you exit settings, price should become red.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 29, 2018, 03:42:17 AM
Thank you very much. GDAX settings working nicely. Display still not changing color however. current price is below 8000, but when alarm is set to 8000, no color change. Using the latest version, 4.2.

There are two alerts with different behaviour - red alert and green alert. If you set the green one to 8000, it will trigger only after the price is above 8000. Try setting the price to 7000, or using the other alert.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on March 29, 2018, 05:54:02 AM
Not sure what I'm missing, but setting green alert at 8000 and red at 7600 when price is showing 7576 should make something change color, but it doesn't.


Thank you very much. GDAX settings working nicely. Display still not changing color however. current price is below 8000, but when alarm is set to 8000, no color change. Using the latest version, 4.2.

There are two alerts with different behaviour - red alert and green alert. If you set the green one to 8000, it will trigger only after the price is above 8000. Try setting the price to 7000, or using the other alert.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 29, 2018, 06:46:36 AM
Not sure what I'm missing, but setting green alert at 8000 and red at 7600 when price is showing 7576 should make something change color, but it doesn't.

In that case, you should see price in red. Green alert appears when price is higher than 8000 (which it is not), and red alert when price is lower than 7600, which it is, and at least for me it correctly shows the price in red. Not sure why it wouldn't work for you, it's a pretty straightforward logic not dependent on anything else but the price and alert settings, at least for fixed alert setting.

If you want to see green alert, set it to, say, 7000 - but clear red alert as it overrides green alert if both are active (typically, red alert is supposed to be set lower than green).


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on March 29, 2018, 12:33:47 PM
That did it. Now appears to be working correctly. Thanks. Sent BTC to your address.

BTW, might be a good idea to make the alarm go "DING" or some similar sound when it's triggered. TIA.

Not sure what I'm missing, but setting green alert at 8000 and red at 7600 when price is showing 7576 should make something change color, but it doesn't.

In that case, you should see price in red. Green alert appears when price is higher than 8000 (which it is not), and red alert when price is lower than 7600, which it is, and at least for me it correctly shows the price in red. Not sure why it wouldn't work for you, it's a pretty straightforward logic not dependent on anything else but the price and alert settings, at least for fixed alert setting.

If you want to see green alert, set it to, say, 7000 - but clear red alert as it overrides green alert if both are active (typically, red alert is supposed to be set lower than green).


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 29, 2018, 12:49:54 PM
Thanks, much appreciated! Glad to hear it works.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on March 29, 2018, 09:28:49 PM
I'll have to experiment a bit more, but it seems that when it's closed down and restarted, it reverts to the default settings. Any way to keep one's settings "sticky". I use items that often require a daily machine reboot.

Thanks, much appreciated! Glad to hear it works.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on March 30, 2018, 03:27:27 AM
I'll have to experiment a bit more, but it seems that when it's closed down and restarted, it reverts to the default settings. Any way to keep one's settings "sticky". I use items that often require a daily machine reboot.

When you start it, you basically "install it" and when close it you actually "uninstall it." There is no need to close them between reboots and they keep their settings between reboots by default as long as you don't close them. That's how basically all Windows gadgets work.

You can have several instances of MyBitcoins gadgets if you want - just start several. If you want to "hide" all gadgets, you can right click on the desktop and uncheck View / Show desktop gadgets, and you can bring them back (with all settings preserved) in the same way.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on March 30, 2018, 07:43:24 AM
OK, that makes sense. I'll try keeping it running when rebooting and see if it comes up in the same config. Thanks


I'll have to experiment a bit more, but it seems that when it's closed down and restarted, it reverts to the default settings. Any way to keep one's settings "sticky". I use items that often require a daily machine reboot.

When you start it, you basically "install it" and when close it you actually "uninstall it." There is no need to close them between reboots and they keep their settings between reboots by default as long as you don't close them. That's how basically all Windows gadgets work.

You can have several instances of MyBitcoins gadgets if you want - just start several. If you want to "hide" all gadgets, you can right click on the desktop and uncheck View / Show desktop gadgets, and you can bring them back (with all settings preserved) in the same way.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on June 02, 2018, 05:33:56 PM
MyBitcoins gadget has been working fine with the settings you posted for GDAX, but it's changing to CoinbasePro the end of the month. I'm using the new page now and it's pretty stable. Would you be so kind as to post the settings for the new page for MyBitcoins? TIA.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Mr.ZODIAC on June 02, 2018, 06:39:04 PM
MyBitcoins gadget has been working fine with the settings you posted for GDAX, but it's changing to CoinbasePro the end of the month. I'm using the new page now and it's pretty stable. Would you be so kind as to post the settings for the new page for MyBitcoins? TIA.
Of course it's good to use Windows if the operating system is on a mobile device too. But how do users who use Android for their work act? Are there any apps for gadgets on Android?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 02, 2018, 07:28:26 PM
MyBitcoins gadget has been working fine with the settings you posted for GDAX, but it's changing to CoinbasePro the end of the month. I'm using the new page now and it's pretty stable. Would you be so kind as to post the settings for the new page for MyBitcoins? TIA.

From what I see, CoinbasePro "Developer Platform" links to old GDAX documentation which doesn't mention that domain will change, so I assume that API will continue to work as usual. If at any point they decide to change the API, please let me know and I'll post updated settings - I'm not using them myself.

Of course it's good to use Windows if the operating system is on a mobile device too. But how do users who use Android for their work act? Are there any apps for gadgets on Android?

I have no plans to make this gadget mobile. But there are a bunch of alternatives for Android: https://thedroidguy.com/2018/05/5-best-bitcoin-ticker-widget-app-2018-1079691 (https://thedroidguy.com/2018/05/5-best-bitcoin-ticker-widget-app-2018-1079691)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 12:47:42 AM
Bitstamp

Hi,

I am using the newest version of the gadget and i dont seam to be able to manage to configurate the tool to show the last quotes from bitstamp.

can you please help?

here the data i use:

https://www.bitstamp.net/api/v2/ticker/ethusd/
jason.last



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 08:18:32 AM
I am using the newest version of the gadget and i dont seam to be able to manage to configurate the tool to show the last quotes from bitstamp.

here the data i use:

https://www.bitstamp.net/api/v2/ticker/ethusd/
jason.last

Use json.last instead jason.last - but just last will do as well.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 01:43:33 PM
I am using the newest version of the gadget and i dont seam to be able to manage to configurate the tool to show the last quotes from bitstamp.

here the data i use:

https://www.bitstamp.net/api/v2/ticker/ethusdason.last
[/quot
Use json.last instead jason.last - but just last will do as well.

sorry wrote it wrong in here. i have tried both and it did not work.

any other suggestions?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 02:46:57 PM
sorry wrote it wrong in here. i have tried both and it did not work.

any other suggestions?

If you just spin up additional new instance of the gadget, use all defaults and just change primary exchange URL to what you provided, it should work (it does for me). If it doesn't, it's possible that your IP is flagged by CloudFlare as suspicious and requires captcha which gadget doesn't know how to solve.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 03:38:57 PM
sorry wrote it wrong in here. i have tried both and it did not work.

any other suggestions?

If you just spin up additional new instance of the gadget, use all defaults and just change primary exchange URL to what you provided, it should work (it does for me). If it doesn't, it's possible that your IP is flagged by CloudFlare as suspicious and requires captcha which gadget doesn't know how to solve.


I have multiple instances of the gadget runing. Checking Bitfinex, Kraken, Polinex. They alle work. The only one that does nod its Bitstamp.

What is "CloudFlare"? How do i fix the "flagging" there?

Thanks for your help.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 05:06:02 PM
If you just spin up additional new instance of the gadget, use all defaults and just change primary exchange URL to what you provided, it should work (it does for me). If it doesn't, it's possible that your IP is flagged by CloudFlare as suspicious and requires captcha which gadget doesn't know how to solve.

I have multiple instances of the gadget runing. Checking Bitfinex, Kraken, Polinex. They alle work. The only one that does nod its Bitstamp.

What is "CloudFlare"? How do i fix the "flagging" there?

Strange. Most exchanges use CloudFlare (Bitfinex and Poloniex for sure) and I'd expect them to fail as well in this case.

CloudFlare is a CDN service exchanges use to fight DDoS attacks. As it's calibrated to recognize humans, it will sometimes prevent gadget from accessing the APIs. Typically, a sign that your IP has been flagged if you're asked to fill in captcha before accessing exchanges or some sites on the web. Often happens if you're using shared VPN to connect. Unfortunately there's no way to whitelist IPs or fix this apart from changing the IP (most ISPs rotate IPs every 24h).

I don't have much else to go on with, sorry. Check your settings, check exchange URL (try accessing it from the browser as well)... did you change any other setting apart from the exchange URL?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 05:18:45 PM


I don't have much else to go on with, sorry. Check your settings, check exchange URL (try accessing it from the browser as well)... did you change any other setting apart from the exchange URL?


Accessing Bitstamp API through the browser gives back the jason string (as you would expect). So i assume i am  not blackflagged or anything at Bitstamp.

Settings are checked to exhaustion.

Really dont know where to change anything anymore...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 05:23:39 PM
Accessing Bitstamp API through the browser gives back the jason string (as you would expect). So i assume i am  not blackflagged or anything at Bitstamp.

Settings are checked to exhaustion.

Really dont know where to change anything anymore...

Not that I don't believe you, but can you dump all your settings here? Two pairs of eyes might be better than one. And if we both positively have the same settings, then it's a network issue somewhere between you and Bitstamp.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 05:43:52 PM
Accessing Bitstamp API through the browser gives back the jason string (as you would expect). So i assume i am  not blackflagged or anything at Bitstamp.

Settings are checked to exhaustion.

Really dont know where to change anything anymore...

Not that I don't believe you, but can you dump all your settings here? Two pairs of eyes might be better than one. And if we both positively have the same settings, then it's a network issue somewhere between you and Bitstamp.

Lets see what you see. Here my settings:

trading selected
correction + pool

https://www.bitstamp.net/api/v2/ticker/ethusd/
json.last

everything else is empty.



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 05:53:56 PM
Lets see what you see. Here my settings:

trading selected
correction + pool

https://www.bitstamp.net/api/v2/ticker/ethusd/
json.last

everything else is empty.

Wait, what do you mean - everything else is empty? There should be at least a few other fields with set defaults, for example mining data update interval, exchange data update interval etc.

If you have trading selected that means you're not using defaults as default has mining presets selected. Can you open another gadget, and change only the exchange URL, and not change any presets? Does that work?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 06:06:57 PM
Lets see what you see. Here my settings:

trading selected
correction + pool

https://www.bitstamp.net/api/v2/ticker/ethusd/
json.last

everything else is empty.

Wait, what do you mean - everything else is empty? There should be at least a few other fields with set defaults, for example mining data update interval, exchange data update interval etc.

If you have trading selected that means you're not using defaults as default has mining presets selected. Can you open another gadget, and change only the exchange URL, and not change any presets? Does that work?


Did that. Just changed the URL to "https://www.bitstamp.net/api/v2/ticker/ethusd/". -> same resault .... N/A


(the default URL by the way is the old Bitstamp URL and that did also not work)

Want to thank you again for the time you are taking to help me.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 06:30:41 PM
Did that. Just changed the URL to "https://www.bitstamp.net/api/v2/ticker/ethusd/". -> same resault .... N/A

(the default URL by the way is the old Bitstamp URL and that did also not work)

Want to thank you again for the time you are taking to help me.

Don't worry about it, it's what I'm here for.

OK, that definitely means the issue is not with the settings or gadget itself as for me both new and old URL are working fine and data gets updated.

...actually, correction, WERE working an hour ago. It seems that now my gadget can't connect as well, to both new and old URL, and even if I try connecting through VPN from another country (and IP). Maybe Bitstamp is blocking older browsers (gadget uses IE under the hood) or simply has some API problems?

I'd recommend using some other exchange and trying again in a day or two. Something is fishy though. I can't fix the gadget as it's not an issue in the gadget, but if more users are seeing this I'll have to change default exchange in gadget to some other exchange. Anybody else experiencing this with Bitstamp?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 08:28:23 PM


Don't worry about it, it's what I'm here for.

OK, that definitely means the issue is not with the settings or gadget itself as for me both new and old URL are working fine and data gets updated.

...actually, correction, WERE working an hour ago. It seems that now my gadget can't connect as well, to both new and old URL, and even if I try connecting through VPN from another country (and IP). Maybe Bitstamp is blocking older browsers (gadget uses IE under the hood) or simply has some API problems?

I'd recommend using some other exchange and trying again in a day or two. Something is fishy though. I can't fix the gadget as it's not an issue in the gadget, but if more users are seeing this I'll have to change default exchange in gadget to some other exchange. Anybody else experiencing this with Bitstamp?

.... since the browser requests still work would it not also work if the gadget would make there request simulating a browser? ... just an idea....


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 09:08:58 PM
.... since the browser requests still work would it not also work if the gadget would make there request simulating a browser? ... just an idea....

Windows gadgets are actually running in Internet Explorer, and they use IE to make requests, and unfortunately don't have much of a choice how their requests are executed. The fact that exchanges put their APIs behind different CDNs which are designed to detect human users doesn't help, I've had experience with several exchange APIs not working for one reason or the other. I've seen CDNs block specific browser versions, or specific browsers without Javascript enabled and so on. What I'm saying is, unfortunately, that I don't know why Bitstamp API is refusing those connections, and even if I did, I wouldn't be able to fix it. :( We'll see if this is permanent or not though.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: CyranodeB. on June 03, 2018, 09:32:50 PM
.... since the browser requests still work would it not also work if the gadget would make there request simulating a browser? ... just an idea....

Windows gadgets are actually running in Internet Explorer, and they use IE to make requests, and unfortunately don't have much of a choice how their requests are executed. The fact that exchanges put their APIs behind different CDNs which are designed to detect human users doesn't help, I've had experience with several exchange APIs not working for one reason or the other. I've seen CDNs block specific browser versions, or specific browsers without Javascript enabled and so on. What I'm saying is, unfortunately, that I don't know why Bitstamp API is refusing those connections, and even if I did, I wouldn't be able to fix it. :( We'll see if this is permanent or not though.

... now that i know that all requests of gadgets go through the IE i found the "glitch".
By activating all TLS protocols in IE the gadget requests to Bitstamp work again.

Thank you again for you kind help.


PS: since we are already here "chatting" i was wondering: Why is there no dedicated gadget for ETHEREUM? ...smile... just an idea...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 03, 2018, 09:51:03 PM
... now that i know that all requests of gadgets go through the IE i found the "glitch".
By activating all TLS protocols in IE the gadget requests to Bitstamp work again.
Thank you again for you kind help.

Thank you!
It definitely is something related to https, maybe Bitstamp people disabled some SSL encryption protocols or something.

I've now tried intercepting https connection (SSL proxy) and that seems to work. On my IE all TLS protocols are already enabled. I've tried disabling them and enabling them again, and then I right-clicked the desktop and toggled View / Show desktop gadgets off and on again and that seemed to fix it in my case.

PS: since we are already here "chatting" i was wondering: Why is there no dedicated gadget for ETHEREUM? ...smile... just an idea...

Well, I did the Bitcoin gadget.. then Litecoin and Namecoin... long before Ethereum... and then crypto exploded and I figured that this approach wouldn't work anymore. So I created MyCoins as a kind of general crypto gadget for any currency.

If there's interest I'd consider creating Ethereum version though. Functionality is the same, but basically having a preset exchange/rate and different background picture might be easier than having to set it up.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: suppapan on July 22, 2018, 05:35:47 PM
It so cool


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on July 25, 2018, 11:06:19 AM
In my opinian, because the system's my conputer is win10, Bitcoin Windows difficult to use. Its is element the first. The second, the virus software will destroy some details above Bitcoin windows.

Is there a way to fix it?
 Please everyone give the comments. Thanks!

Bitcoin Windows gadget works on Windows 7. 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/ (https://www.intowindows.com/desktop-gadgets-for-windows-10/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: bittab on July 25, 2018, 12:13:59 PM
I want to intrudoce BitTab, a more delicate ticker bar for Windows.

For a basic(or light) users who want to watch BTC on the desktop wallpaper or by a widget, other apps(like this topic's app) seem to be enough.

But, if you want to watch the coins on the desktop like a Windows taskbar or a ticker, this BitTab can be the solution.



http://bittab.io/?from=bitcointalk (http://bittab.io/?from=bitcointalk)



<preview screenshots>

https://bittab.io/images/screenshot-1.png

https://bittab.io/images/screenshot-2.png

https://pbs.twimg.com/media/DagziULU0AIr9-4.jpg


<Main features>
* contains more than 30 different exchanges over the world
* more than 1000 different coins available
 (the prices of the same coin can differ according to different exchanges, that's why the support for many exchanges is important)
* provides simple conditional alarms (like above, below...)
* it reloads the values starting from 30 seconds
* provides a few skins (and can be customized with CSS and Javascript)
* it has 'PRO' feature - for developer


<Main topic>
https://bitcointalk.org/index.php?topic=4679957 (https://bitcointalk.org/index.php?topic=4679957)

twitter: http://twitter.com/bittabapp (http://twitter.com/bittabapp)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on September 01, 2018, 03:06:06 PM
Looks like Coinbase Pro has changed the API from the old GDAX settings. Would you please post the updated settings? TIA.


MyBitcoins gadget has been working fine with the settings you posted for GDAX, but it's changing to CoinbasePro the end of the month. I'm using the new page now and it's pretty stable. Would you be so kind as to post the settings for the new page for MyBitcoins? TIA.

From what I see, CoinbasePro "Developer Platform" links to old GDAX documentation which doesn't mention that domain will change, so I assume that API will continue to work as usual. If at any point they decide to change the API, please let me know and I'll post updated settings - I'm not using them myself.

Of course it's good to use Windows if the operating system is on a mobile device too. But how do users who use Android for their work act? Are there any apps for gadgets on Android?

I have no plans to make this gadget mobile. But there are a bunch of alternatives for Android: https://thedroidguy.com/2018/05/5-best-bitcoin-ticker-widget-app-2018-1079691 (https://thedroidguy.com/2018/05/5-best-bitcoin-ticker-widget-app-2018-1079691)



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on September 01, 2018, 05:30:05 PM
Looks like Coinbase Pro has changed the API from the old GDAX settings. Would you please post the updated settings? TIA.

Sure.

Coinbase Pro
exchange URL: https://api.pro.coinbase.com/products/BTC-USD/ticker
exhange rate JSON key: price
ticker currency: USD
field 1 JSON key: ask
field 2 JSON key: price
field 3 JSON key: bid


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: bittab on October 22, 2018, 03:33:36 PM
Now, there is an advanced widget for Windows, called BitTab.

See the screenshot below:
https://bittab.io/images/screenshot-5.png

4000+ coins and 40+ exchanges

go to http://bittab.io/ (http://bittab.io/?from=bct_wingadget)

also there is a main thread https://bitcointalk.org/index.php?topic=4679957 (https://bitcointalk.org/index.php?topic=4679957)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: NikolayS on November 05, 2018, 08:58:38 PM
Hello.
Thank you for the widget, it would have been really useful.
However, it is not now, because "correction in currency" doesn't really work.
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


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 05, 2018, 10:06:49 PM
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.

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. If you're trying to display a number that has too many digits (like 1.2345678), it will be rounded. This is what you see when you say "stripped" - the last decimal is stripped (rounded, actually) because there simply isn't enough space to display it.

Another way the gadget copes with really big or really small numbers is by using metric symbols. You know, k for kilo (or 1000) and so on. On your screenshot, when it displays 240.000n for NPXS, n means nano; it means that NPXS exchange rate is 240 * 0.000000001 = 0.00000024. This is a way to get maximum precision (and avoid rounding) when you don't have high precision, but have many zeroes that don't fit. All more common metric symbols are listed here: https://en.wikipedia.org/wiki/Metric_prefix (https://en.wikipedia.org/wiki/Metric_prefix)

Hope this helps.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: stomachgrowls on November 05, 2018, 11:32:13 PM
I need this widget but it do give some prompts  ???

http://i65.tinypic.com/eze49s.png


Its totally safe  ;D
Thanks for this one.


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


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 05, 2018, 11:57:46 PM
I need this widget but it do give some prompts  ???

http://i65.tinypic.com/eze49s.png

Its totally safe  ;D

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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: NikolayS on November 06, 2018, 08:57:28 AM
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!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 06, 2018, 12:40:37 PM
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/ (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?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: NikolayS on November 06, 2018, 12:52:16 PM

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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: stomachgrowls on November 06, 2018, 03:03:05 PM
I need this widget but it do give some prompts  ???

http://i65.tinypic.com/eze49s.png

Its totally safe  ;D

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:

http://i66.tinypic.com/2cr26fo.png



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 06, 2018, 10:21:17 PM
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 <username> to your Windows username):
C:\Users\<username>\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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on November 06, 2018, 10:30:31 PM
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/ (https://www.intowindows.com/desktop-gadgets-for-windows-10/)

I believe there are also some alternatives showing similar stuff as tiles.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Myown55 on November 06, 2018, 10:32:21 PM
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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: NikolayS on November 07, 2018, 08:32:34 AM
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 <username> to your Windows username):
C:\Users\<username>\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!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 14, 2019, 07:09:22 PM
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. :)

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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on February 17, 2019, 04:46:07 PM
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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on May 13, 2019, 05:10:26 PM
Would you be so kind as to post the Bitfinex link for Litecoin? TIA.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on May 14, 2019, 08:30:00 AM
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


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on May 14, 2019, 09:52:10 AM
Thank you, sir. Worked nicely.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 06, 2019, 11:23:39 AM
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?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 06, 2019, 11:33:18 AM
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.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 06, 2019, 10:02:30 PM
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


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 06, 2019, 11:09:23 PM
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)?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 07, 2019, 01:18:21 PM
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?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 07, 2019, 01:25:03 PM
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?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 07, 2019, 06:05:38 PM
Ok here are the results when I have open the litecoin gadget and edit the mycoin gadget:

https://i.imgur.com/ulCK7gp.jpg

Every API request is valid but it sends just 100 per second until I get blocked for to many requests.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 08, 2019, 05:30:16 PM
OK, I fixed it. Thanks for reporting it! Please visit http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/) (or http://domchi.cc/mycoins/ (http://domchi.cc/mycoins/)) to download the latest version.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 11, 2019, 08:09:11 AM
OK, I fixed it. Thanks for reporting it! Please visit http://domchi.cc/mybitcoins/ (http://domchi.cc/mybitcoins/) (or http://domchi.cc/mycoins/ (http://domchi.cc/mycoins/)) to download the latest version.

Yes, I can confirm it works now as intended on my machine. Do you mind telling me what caused the issue?

Thanks again for fixing.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 11, 2019, 09:48:04 AM
Yes, I can confirm it works now as intended on my machine. Do you mind telling me what caused the issue?

A bug in saving exchange data update interval, which was introduced in the latest version, which I inadvertently introduced after testing, while packaging gadget for release. Pretty lame actually. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 11, 2019, 09:53:31 AM
Still thanks for telling and actually fixing it  :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on October 19, 2019, 10:19:56 AM
Thank you, sir. Worked nicely.

Due to circumstances beyond my control, I must convert several machines to Windoze 10 (Ugh!). What is the best method/utility for running the gadget on 10? TIA.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 19, 2019, 12:11:47 PM
Due to circumstances beyond my control, I must convert several machines to Windoze 10 (Ugh!). What is the best method/utility for running the gadget on 10? TIA.

I'm probably not the best person to give advice as I'm still running Win7. Maybe the folks using the gadget on Win10 can chip in?

That said, it seems there are at least three alternatives nowadays:
https://windows.gadgethacks.com/how-to/bring-desktop-gadgets-windows-10-0163567/ (https://windows.gadgethacks.com/how-to/bring-desktop-gadgets-windows-10-0163567/)
https://gadgetsrevived.com/download-sidebar/ (https://gadgetsrevived.com/download-sidebar/)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: paduser on October 19, 2019, 06:08:22 PM
Due to circumstances beyond my control, I must convert several machines to Windoze 10 (Ugh!). What is the best method/utility for running the gadget on 10? TIA.

I'm probably not the best person to give advice as I'm still running Win7. Maybe the folks using the gadget on Win10 can chip in?

That said, it seems there are at least three alternatives nowadays:
https://windows.gadgethacks.com/how-to/bring-desktop-gadgets-windows-10-0163567/ (https://windows.gadgethacks.com/how-to/bring-desktop-gadgets-windows-10-0163567/)
https://gadgetsrevived.com/download-sidebar/ (https://gadgetsrevived.com/download-sidebar/)


I personal use https://8gadgetpack.net/ (https://8gadgetpack.net/).
They still push updates and also they've updated the old gadget with new high dpi versions.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: movellan on November 28, 2019, 06:14:49 AM
Due to circumstances beyond my control, I must convert several machines to Windoze 10 (Ugh!). What is the best method/utility for running the gadget on 10? TIA.

I'm probably not the best person to give advice as I'm still running Win7. Maybe the folks using the gadget on Win10 can chip in?

That said, it seems there are at least three alternatives nowadays:
https://windows.gadgethacks.com/how-to/bring-desktop-gadgets-windows-10-0163567/ (https://windows.gadgethacks.com/how-to/bring-desktop-gadgets-windows-10-0163567/)
https://gadgetsrevived.com/download-sidebar/ (https://gadgetsrevived.com/download-sidebar/)


I personal use https://8gadgetpack.net/ (https://8gadgetpack.net/).
They still push updates and also they've updated the old gadget with new high dpi versions.

8gadgetpack works nicely. Thanks for the tip.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: tanzislam on September 25, 2020, 11:40:50 PM
Awesome gadget, thanks!

Is the feature of listing multiple wallet addresses (separated by |) still working? I tried with v4.4 with 5 addresses. Sometimes it seems to retrieve the balance in only the first address instead of their sum, and other times it just displays "N/A".

(Looking at Settings.js lines 185-186, the blockchainAddr setting gets saved as the |-separated list of addresses. I could not find any corresponding logic in MyBitcoins.js to split this list of addresses by | and query them separately; lines 502-504 seem to query it directly with the |-concatenated list of addresses.)

EDIT: Looks like their API documentation (https://www.blockchain.info/api/q (https://www.blockchain.info/api/q)) says |-separated addresses should be supported, but it actually returns Invalid Bitcoin Address when I curl it.

EDIT EDIT: Whoa, apparently ,-separating the addresses works!


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on September 26, 2020, 02:18:32 AM
Pretty much what you said, I have nothing more to add since you solved it.

Gadget doesn't parse |-separated list of addresses (apart from regex to clean it up a bit) and sends it directly to blockchain.info API. Which seems to have switched away to comma as separator instead of | even though documentation says otherwise.

I'm not quite sure what to do with that; I can change the text in settings to different separator but I'll leave it as is for now, since blockchain.info API change looks like a bug on their side and might revert back. I'll try to get in touch with them and report this, and suggest they accept both separators.

Thanks for info.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: enerdude on October 07, 2020, 09:35:55 PM
Thanks for this useful gadget.
I recently got a 4k monitor and are running 4k (3840x2160) and now the gadget seem to not scale properly (edges are cut off - see picture : https://i.imgur.com/YmtWiZD.png).

Would it be possible to add a size option to the settings of the gadget like some other gadgets already have?

Thanks in advance.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 07, 2020, 10:03:53 PM
I recently got a 4k monitor and are running 4k (3840x2160) and now the gadget seem to not scale properly (edges are cut off - see picture : https://i.imgur.com/YmtWiZD.png).

Would it be possible to add a size option to the settings of the gadget like some other gadgets already have?

Which DPI setting are you using? Right-click on desktop, choose "Screen resolution," and "Make text and other items larger or smaller" - are you using one of the two non-default values here?


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: enerdude on October 09, 2020, 07:49:35 PM
It is set to 175% which is a comfortable size for me. Windows recommended setting is 150%.  Does not seem to matter if I choose 100%, 125%, 150% or 175%, gadget is still cut off.
Except for my windows scaling size of 175%, I also do seperate sizes for my other gadgets to achieve a comfortable, readable size within the 4k resolution:
Top process monitor, System monitor II and Ping monitor is set to 250% within the settings of the gadgets themselves.  Network meter gadget is set to 150% to achieve same size as the other 3 gadgets mentioned, not sure why it is not also 250%

Screenshot of my sidebar:
https://i.imgur.com/wxQhgLR.png


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 09, 2020, 10:48:00 PM
It is set to 175% which is a comfortable size for me. Windows recommended setting is 150%.  Does not seem to matter if I choose 100%, 125%, 150% or 175%, gadget is still cut off.
Except for my windows scaling size of 175%, I also do seperate sizes for my other gadgets to achieve a comfortable, readable size within the 4k resolution:
Top process monitor, System monitor II and Ping monitor is set to 250% within the settings of the gadgets themselves.  Network meter gadget is set to 150% to achieve same size as the other 3 gadgets mentioned, not sure why it is not also 250%

I'll see what can be done over the weekend. There are several issues though, not the least being the quality of the background image...


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 12, 2020, 12:43:24 AM
It is set to 175% which is a comfortable size for me. Windows recommended setting is 150%.  Does not seem to matter if I choose 100%, 125%, 150% or 175%, gadget is still cut off.
Except for my windows scaling size of 175%, I also do seperate sizes for my other gadgets to achieve a comfortable, readable size within the 4k resolution:
Top process monitor, System monitor II and Ping monitor is set to 250% within the settings of the gadgets themselves.  Network meter gadget is set to 150% to achieve same size as the other 3 gadgets mentioned, not sure why it is not also 250%

I'll see what can be done over the weekend. There are several issues though, not the least being the quality of the background image...

I'm not quite sure what to do with this, the whole issue is related to various IE incompatibilities. For me, in Win10 and with 8GadgetPack, gadget scales OK. It might be that you just need to update something, probably IE or whatever 8GadgetPack uses to actually run gadgets.

I was able to reproduce an issue in an unpatched Win7 though. Here's a fix that will unbreak it, although it won't scale it. Go to the following folder:

%USERPROFILE%\AppData\Local\Microsoft\Windows Sidebar\Gadgets\MyBitcoins.gadget\css\

...and first backup MyBitcoins.css and then open it in editor other than Notepad that won't display it in a single line (Notepad++ will do fine). Then, search for "pt"; there are 4 places where font sizes are defined and you can change it according to the following table:

100%10pt8.5pt11.5pt
125%8pt6.8pt5.2pt
150%6.6pt5.7pt7.7pt
175%5.7pt4.8pt6.6pt

When you change this, reboot to see the difference. (Just toggling "Show desktop gadgets" off and on might apply changes, but sometimes only reboot works.)

If the white background is still broken and bothers you, you can delete div.valueBackground section as well.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: enerdude on October 13, 2020, 11:44:29 AM
It is set to 175% which is a comfortable size for me. Windows recommended setting is 150%.  Does not seem to matter if I choose 100%, 125%, 150% or 175%, gadget is still cut off.
Except for my windows scaling size of 175%, I also do seperate sizes for my other gadgets to achieve a comfortable, readable size within the 4k resolution:
Top process monitor, System monitor II and Ping monitor is set to 250% within the settings of the gadgets themselves.  Network meter gadget is set to 150% to achieve same size as the other 3 gadgets mentioned, not sure why it is not also 250%

I'll see what can be done over the weekend. There are several issues though, not the least being the quality of the background image...

I'm not quite sure what to do with this, the whole issue is related to various IE incompatibilities. For me, in Win10 and with 8GadgetPack, gadget scales OK. It might be that you just need to update something, probably IE or whatever 8GadgetPack uses to actually run gadgets.

I was able to reproduce an issue in an unpatched Win7 though. Here's a fix that will unbreak it, although it won't scale it. Go to the following folder:

%USERPROFILE%\AppData\Local\Microsoft\Windows Sidebar\Gadgets\MyBitcoins.gadget\css\

...and first backup MyBitcoins.css and then open it in editor other than Notepad that won't display it in a single line (Notepad++ will do fine). Then, search for "pt"; there are 4 places where font sizes are defined and you can change it according to the following table:

100%10pt8.5pt11.5pt
125%8pt6.8pt5.2pt
150%6.6pt5.7pt7.7pt
175%5.7pt4.8pt6.6pt

When you change this, reboot to see the difference. (Just toggling "Show desktop gadgets" off and on might apply changes, but sometimes only reboot works.)

If the white background is still broken and bothers you, you can delete div.valueBackground section as well.


Thanks this sorted the problem of the text not fitting and the cutting off problem, so it is now readable but the scale just too small.  I applied your "pt" settings for 175%
Size of bitcoin gadget relative to my other:
https://i.imgur.com/LfZZi91.png


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 13, 2020, 12:42:33 PM
Thanks this sorted the problem of the text not fitting and the cutting off problem, so it is now readable but the scale just too small.  I applied your "pt" settings for 175%

Yeah, I'm sorry mate, I see no easy solution for that. Basically the issue is in IE scaling, that is broken when used with larger DPI in some but not all situations, and to fix that on the gadget side would require working around IE CSS bugs with IE CSS itself, which I'm not up to.

You can perhaps try updating Windows (especially IE/Edge part) and 8GadgetPack, that might help. I'm don't know what's the difference between your and my setup, because on my Win10 this works and scales the gadget up correctly, making it larger without breaking design.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on October 03, 2023, 08:17:13 AM
sorry to resurrect this, I didn't want to start a new thread when anyone still using this may have this thread on watch and might be able to help.


I have a problem with the mybitcoins gadget

I use it to display my bitcoin balance and convert value to GBP, it's set to display balance and value in 2 lines/boxes.
the conversion is working fine, as if i set the pool adjustment to 1 it shows the value of 1 bitcoin in GBP, but, it's as if it can't get the wallet balance, because with the adjustment set to 0, both the balance and value show N/A

Has something changed/no longer available? or is the problem on my machine, i have tried deleting and re-installing it

I'm still using windows 7 btw, and version 4.4 of the gadget, i also use mycoins (v3.3) to just show the value of 1 bitcoin in GBP with the same conversion api key from currencyconverterapi.com which is working fine.


thank you for your any help that might be available.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: NotATether on October 03, 2023, 12:34:13 PM
sorry to resurrect this, I didn't want to start a new thread when anyone still using this may have this thread on watch and might be able to help.


I have a problem with the mybitcoins gadget

I use it to display my bitcoin balance and convert value to GBP, it's set to display balance and value in 2 lines/boxes.
the conversion is working fine, as if i set the pool adjustment to 1 it shows the value of 1 bitcoin in GBP, but, it's as if it can't get the wallet balance, because with the adjustment set to 0, both the balance and value show N/A

Has something changed/no longer available? or is the problem on my machine, i have tried deleting and re-installing it

I'm still using windows 7 btw, and version 4.4 of the gadget, i also use mycoins (v3.3) to just show the value of 1 bitcoin in GBP with the same conversion api key from currencyconverterapi.com which is working fine.


thank you for your any help that might be available.

I'm not sure if the developer is even able to push a new version of the gadget... The gadget store has been dead for 10 years and I'm not aware of any method to download and install them manually.

But anyway, the other reason why it can stop working is if the server hosting the backend is brought down. In such a situation, nobody would be able to use the gadget anymore.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: logfiles on October 03, 2023, 12:57:21 PM
<...>
The OP was online a few months back (around July) so there is a still a chance that you can get in touch with you. The easiest way would be to send him a PM in case he monitors his emails.

Have you considered looking at other alternatives like Bittab.io. I don't know if they have the exact features you want, but they might be worth exploring in case you fail to get a solution here.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on October 03, 2023, 03:17:09 PM
Thanks for the replies  :)

I did wonder if something like the server suggestion, but the rest of the gadget works just fine (as does mycoins gadget) it seems to be just the section related to wallet balance that isn't working.

I tried pm'ing Domchi as i saw he was still active not long ago, but because i'm a newbie, when i tried to send him a pm, it said that the recipient had block pm's from newbies, i suspect this was because he would get lots of messages from newbies instead of them posting in the thread instead.

His website is still active and the download link works fine, and it's easy enough to install standalone and is not affected by the gadget store non-existence.


will wait and see if he sees these new posts, if anyone with higher status wants to drop him a pm to let him know of the new posts that'd be great and appreciated.
i'll have a look at the Bittab.io thing, thank you for the suggestion.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 03, 2023, 04:19:08 PM
I use it to display my bitcoin balance and convert value to GBP, it's set to display balance and value in 2 lines/boxes.
the conversion is working fine, as if i set the pool adjustment to 1 it shows the value of 1 bitcoin in GBP, but, it's as if it can't get the wallet balance, because with the adjustment set to 0, both the balance and value show N/A

Has something changed/no longer available? or is the problem on my machine, i have tried deleting and re-installing it

I'm still using windows 7 btw, and version 4.4 of the gadget, i also use mycoins (v3.3) to just show the value of 1 bitcoin in GBP with the same conversion api key from currencyconverterapi.com which is working fine.

I'm still here. :)

I'm not aware that something specific has changed, but since both Windows gadgets as a technology and Win7 as an OS are deprecated, yeah, I'd definitely suggest that you try to upgrade. :)

If the gadget is showing N/A, that means the value you're getting is 0. APIs that are used are still working, at least on a first glance. Maybe the balance on the wallet address you're monitoring is 0? You can also send me your settings, here or in PM, provided they don't include any private API keys, and I can try to figure it out. Sorry about not being able to PM me, that setting obviously appeared at one point and was off by default - now I've allowed it.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 03, 2023, 04:27:54 PM
I'm not sure if the developer is even able to push a new version of the gadget... The gadget store has been dead for 10 years and I'm not aware of any method to download and install them manually.

But anyway, the other reason why it can stop working is if the server hosting the backend is brought down. In such a situation, nobody would be able to use the gadget anymore.

They can still be installed by downloading the .gadget file and running it even without the gadget store.

There is no gadget-specific backend for this gadget, but it does rely on a few other public APIs, like Bistamp API for exchange rate, blockchain.info API for wallet balance, and currencyconverterapi for fiat exchange rate, all of which miraculously still work.

I must admit that I'm a bit proud that someone is still running this and finding it useful even after the technology it was written in was deprecated decade ago, and the OS it was running on is EOLed and no longer supported by Microsoft. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on October 03, 2023, 04:30:54 PM
hi,

thanks for the reply, just heading out to work so will pm you tomorrow if i dont get time tonight. I hope the balance is not zero  :o  (it does appear to be showing in Electrum)

hopefully this isnt an issue with my machine/os install, it is as you said getting on a bit now, might have to try a roll back on a restore point see if somethings gone wibble at some point.


EDIT:
and yes, i'm still using them, they are small, simple and do exactly what i need and are lightweight and effective, you hit the nail on the head without overloading them with features (i don't use half their features!) i also didn't believe or pay any attention to the bs microsoft put out as to why they closed the gadget store


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 03, 2023, 04:41:17 PM
Sure. I doubt it's related to OS, as long as the gadget is running. It's one of the APIs or values.

Glad you're sill finding it useful! Although today having Win7 connected to Internet is a bit risky simply from security standpoint. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: digaran on October 04, 2023, 10:48:22 AM
Hello dear dev, I haven't seen such a dedicated developer like you to be present when topic is bumped after 3 years.😉, I was wondering since you know stuff like that, is it possible to add something like an alarm, when a certain address is activated on the blockchain, we'd have an alarm going off, we could set a siren sound with max volume.

Because there are online services sending sms when there is any incoming/ outgoing transaction, but that requires registration.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 05, 2023, 04:05:55 AM
Hello dear dev, I haven't seen such a dedicated developer like you to be present when topic is bumped after 3 years.😉, I was wondering since you know stuff like that, is it possible to add something like an alarm, when a certain address is activated on the blockchain, we'd have an alarm going off, we could set a siren sound with max volume.

Because there are online services sending sms when there is any incoming/ outgoing transaction, but that requires registration.

Thanks for your kind words.

I did think about adding sound alerts at one point, but then I decided against it as I couldn't think of a simple way to specify when it would trigger. However I'm not really looking to add this when gadget is basically obsolete; maybe if you asked ten years ago. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: logfiles on October 05, 2023, 11:15:24 PM
Hello dear dev, I haven't seen such a dedicated developer like you to be present when topic is bumped after 3 years.😉, I was wondering since you know stuff like that, is it possible to add something like an alarm, when a certain address is activated on the blockchain, we'd have an alarm going off, we could set a siren sound with max volume.

Because there are online services sending sms when there is any incoming/ outgoing transaction, but that requires registration.
You could actually get a wallet software with such a service. I don't know if it was jaxx liberty or exodus, but one of those wallet software programs would send me a sound notification when there was an incoming transaction. The only issue is you had to keep it open and completely synced.

Most of those service require registration because they at times charge a fee for the service or need an email to send the notifications.

Blocknomics can also send browser push notifications, but still requires one to sign up.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: examplens on October 05, 2023, 11:46:25 PM
Hello dear dev, I haven't seen such a dedicated developer like you to be present when topic is bumped after 3 years.😉, I was wondering since you know stuff like that, is it possible to add something like an alarm, when a certain address is activated on the blockchain, we'd have an alarm going off, we could set a siren sound with max volume.

Because there are online services sending sms when there is any incoming/ outgoing transaction, but that requires registration.
You could actually get a wallet software with such a service. I don't know if it was jaxx liberty or exodus, but one of those wallet software programs would send me a sound notification when there was an incoming transaction. The only issue is you had to keep it open and completely synced.

Most of those service require registration because they at times charge a fee for the service or need an email to send the notifications.

Blocknomics can also send browser push notifications, but still requires one to sign up.

If you use Telegram, there is a bot https://t.me/tracktxbot just enable notification.
Although it shows me some errors with ETH addresses lately

Quote
TrackTX bot helps you to track your ETH / BTC / BNB / XRP / USDT transactions.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on October 13, 2023, 08:48:31 AM
If anyone else is having problems retrieving wallet balance, since blockchain.info started refusing requests from old IE versions, here's the solution. In settings, don't use "Addresses" field. Retrieve your address balance through "Pool #1":
Poll #1 URL: https://chain.api.btc.com/v3/address/YOUR_BTC_ADDRESS
Paid amount JSON key: json.data.balance/100000000

Also, if by any chance Bitstamp which is the default doesn't work for retrieving exchange rate, you can use Binance as primary exchange:
Primary exchange: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT
Exchange rate JSON key: lastPrice


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: dishwara on January 13, 2024, 07:22:30 AM
If anyone else is having problems retrieving wallet balance, since blockchain.info started refusing requests from old IE versions, here's the solution. In settings, don't use "Addresses" field. Retrieve your address balance through "Pool #1":
Poll #1 URL: https://chain.api.btc.com/v3/address/YOUR_BTC_ADDRESS
Paid amount JSON key: json.data.balance/100000000

Also, if by any chance Bitstamp which is the default doesn't work for retrieving exchange rate, you can use Binance as primary exchange:
Primary exchange: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT
Exchange rate JSON key: lastPrice

Hi, Thanks for the nice gadget which i am using for many years.
It stopped working.
I tried to change the primary exchange, which gives N/A

I checked in browser  https://api.binance.com/api/v3/ticker?symbol=BTCUSDT

It gives error

{
  "code": 0,
  "msg": "Service unavailable from a restricted location according to 'b. Eligibility' in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error."
}
What to do?

Also your site to download mycoin gadget  gives 404 error.
https://domchi.cc/gadgets/MyBitcoins.gadget


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on April 08, 2024, 09:33:34 AM
Also, if by any chance Bitstamp which is the default doesn't work for retrieving exchange rate, you can use Binance as primary exchange:
Primary exchange: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT
Exchange rate JSON key: lastPrice


So, sure enough Bitstamp went over the weekend, exactly the same issue as before for grabbing wallet balance, this fix worked nicely though, thank you :)

I do have another oddity, which MyCoins has always done, will post it later when i've managed to compile a post that makes sense with pictures, it relates to displaying Primary currency last/bid price in top field and currency exchanged last/bid price in the lower field



So. lets see if i can explain this, first, settings and desired result...

So as you can see from this image, i use both gadgets, Mycoins to show current value of 1 bitcoin (last/bid price) currently showing GBP via the inbuilt conversion API, My Bitcoins then shows by wallet ballance in BTC and the converted value in GBP

https://i.postimg.cc/g20sDYKv/pair-condensed.png

Now, that is how i've ran them for a while, but i'd actually like the USD price per bitcoin above the GBP one, however, there's an odd issue when i do that.

So this image shows how i currently have the expanded view configured, as you can see i'm using the Secondary exchange section to display low, high and the USD bid/last price.

https://i.postimg.cc/jSkX3G8B/full.png

Currently, you're probably asking why does he have the top field hidden and showing the USD price field 3 if he wan't it shown in non-expanded mode..... well therein lies the problem, currently i have the correction in the currency set to 1 to force GBP value to be for one bitcoin, all is ok with that option. (that can be 0 is showing the custom top field, but if not then it has to be one)

But, when i change the settings of the custom top field to display primary exchange rate, it does this

https://i.postimg.cc/sDmK7B5j/issue.png


Now it's always done this, and i can't remember if we'd spoken about this before (if we have, accept my apologies) to be honest, i'm still not convinced it's not me messing something up



Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on April 09, 2024, 01:11:51 AM
Hi, Thanks for the nice gadget which i am using for many years.
It stopped working.
I tried to change the primary exchange, which gives N/A

I checked in browser  https://api.binance.com/api/v3/ticker?symbol=BTCUSDT

It gives error

{
  "code": 0,
  "msg": "Service unavailable from a restricted location according to 'b. Eligibility' in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error."
}
What to do?

Hi dishwara - terribly sorry, it seems I completely missed your message and I'm seeing it only now. Do you still have this issue?

It's definitely on the Binance side, probably related to location you're connecting from. Maybe try VPN or another exchange?

Also your site to download mycoin gadget  gives 404 error.
https://domchi.cc/gadgets/MyBitcoins.gadget

This is incorrect URL. Please try download button here: https://domchi.cc/mybitcoins/index.htm



Currently, you're probably asking why does he have the top field hidden and showing the USD price field 3 if he wan't it shown in non-expanded mode..... well therein lies the problem, currently i have the correction in the currency set to 1 to force GBP value to be for one bitcoin, all is ok with that option. (that can be 0 is showing the custom top field, but if not then it has to be one)

But, when i change the settings of the custom top field to display primary exchange rate, it does this

https://i.postimg.cc/sDmK7B5j/issue.png

Now it's always done this, and i can't remember if we'd spoken about this before (if we have, accept my apologies) to be honest, i'm still not convinced it's not me messing something up

Hey w.a.y.n.e., nice to hear from you again!

Not sure if I have understood the issue correctly, but let's see if I we can untangle this. Your bottom field seems to be multiplying primary and secondary exchange rate.

Can you try setting your top field to display secondary exchange rate (and be sure to set secondary exchange URL as well), and using primary exchange rate (and correction 1) in your bottom field? Bottom field is calculated so you need to make sure USD and GBP rates are fetched separately, one from primary, and other from secondary exhange URL.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on April 09, 2024, 07:26:16 AM
Morning,

I think i've tried every combination of that, including dropping the ticker URL into source one and selecting pools + correction.

Same thing every time, as soon as the top field is not hidden, the exchange rate calculation goes wrong, hide it, and it works properly.

here's a run down of all of my settings, after your suggestion above:

Quote
PRESETS:
Trading selected

GENERAL:
Custom Top Field: Secondary exchange rate (field 3)
Hide bottom field:  unticked
Main currency/top field label: USD
Correction in currency (will be added to the total amount, can be negative) 1
Note (write anything you want here, for your use, shows on mouseover):                               Value of 1 Bitcoin

ALERT:
not changed anything in this section, all settings default and values 0

UPDATES:
Source data update interval (in minutes): 10
Exchange data update interval (in seconds):  600

PRIMARY EXCHANGE:
Exchange URL: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT
Exchange rate JSON Key: lastPrice
Ticker Currency (not main currency):  USD

Target curerency:  GBP
Target currency API Key:  my API key

SECONDARY EXCHANGE:
Exchange URL: https://api.binance.com/api/v3/ticker?symbol=BTCUSDT

Field 1 Label: Low
JSON KEy: lowPrice

Field 2 Label: High
JSON KEy: highPrice

Field 3 Label: USD
JSON Key: lastPrice

Everything below that point relating to SOURCES is blank



that setup results in the strange calculation in the bottom field, just as if i only use a primary exchange rate, yet as soon as the top field is hidden, the GBP calculation field works as expected, Field 3 of Secondary Exchange rate remains as expected at the lastPrice, this exact scenario also happens if I move the secondary exchange URL and JSON key to Source #1 section and point the top field there instead, and also the same if i simply remove the second exchange URL completely and just run with the one.

If i point the top field to a blank thing, such as pools + correction when that is empty, "1" is displayed and the GBP calculation appears correct, perhaps with "1" added or not, not sure on that as i never checked


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on April 09, 2024, 04:50:24 PM
been playing around with different things, it seems the top and bottom field are tied together regardless of alternative ticker URLs used, be that in the secondary, or source/pool fields, to the point that if i remove all of the info regarding currency conversion (the API key and GBP selection) it defaults to USD in the bottom field and will show a similar weird value, until you hide the top field, then it corrects, so it looks like you can't have top and bottom field visible at the same time

In this test i put an alternative ticker url in the secondary and source#1 with the appropriate JSON key in the first fields and then also in the hashrate one for the source#1, and then changed the top field to look to the secondary exchange, with the same results as before, and then to correction+pool and then to the cumulative hashrates, all resulted in that same incorrect value in the bottom field. so it's like the currency conversion is being done off the value in the top field, not from the primary exchange (which for this test was still the binance one


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on April 13, 2024, 03:45:40 AM
Same thing every time, as soon as the top field is not hidden, the exchange rate calculation goes wrong, hide it, and it works properly.

I'm sorry for the slow response... life happened.

The thing you're trying to do can't be done that way - if you're showing both top and bottom fields, bottom field will always be calculated from the top field. You can't show two unrelated values - bottom field will always be top field multiplied with exchange rate.

What you can do is the following. Hide top field. Use correction 1 and make sure you use currency API (as you already do). That will show GBP exchange rate in bottom field.

Then, under secondary exchange clear exchange URL (as you don't need it). Under "Field 1" (or 2 or 3, whicever you prefer) enter label USD and JSON key "lastPrice".

Then expand your gadget. Bottom field should show GBP exchange rate, and Field 1 should show USD exchange rate. There are two more fields, and you can't hide them unfortunately.

Or simply use two gadgets, one for GBP and one for USD, and show only bottom field on both.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on April 15, 2024, 08:12:30 AM
Same thing every time, as soon as the top field is not hidden, the exchange rate calculation goes wrong, hide it, and it works properly.

I'm sorry for the slow response... life happened.


omg no need to apologise, any reply/help is greatly appreciated.

and i've been away for the weekend so only just seen the reply.


Quote
The thing you're trying to do can't be done that way - if you're showing both top and bottom fields, bottom field will always be calculated from the top field. You can't show two unrelated values - bottom field will always be top field multiplied with exchange rate.

ahhhhh, I thought because the top field had the un modified value of lastprice in USD and even if that was being hidden it was still using that for the currency conversion, I see what your saying now, in that if I don't hide it, it calculates again using the top field entry so then comes up with that strange figure.

I had kind of considered that maybe it couldn't display both (very handy for when the free conversion api goes offline - frequently)


Quote
What you can do is the following. Hide top field. Use correction 1 and make sure you use currency API (as you already do). That will show GBP exchange rate in bottom field.

Then, under secondary exchange clear exchange URL (as you don't need it). Under "Field 1" (or 2 or 3, whicever you prefer) enter label USD and JSON key "lastPrice".

Then expand your gadget. Bottom field should show GBP exchange rate, and Field 1 should show USD exchange rate. There are two more fields, and you can't hide them unfortunately.

Yup, that's exactly what i do, and in the other fields I put the Low and High proces for the day (i have open set in Mybitcoins below) and this is a more than suitable option, and i just need to expand it to check if the conversion is working.

Quote
Or simply use two gadgets, one for GBP and one for USD, and show only bottom field on both.
For some reason i had not considered running 2 mycoins, I guess that's an option too


Thanks again for all your help and support, really appreciate it.


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on April 16, 2024, 12:23:47 AM
Quote
Or simply use two gadgets, one for GBP and one for USD, and show only bottom field on both.
For some reason i had not considered running 2 mycoins, I guess that's an option too

Yeah, you can spin as many of them as you want. Should have made that more obvious somehow.

Thanks again for all your help and support, really appreciate it.

I must admit I'm humbled that someone uses this gadget after all these years, and after the original platform it's made for is EOL'd 4 years ago. :)


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on May 31, 2024, 10:48:48 AM
If anyone else is having problems retrieving wallet balance, since blockchain.info started refusing requests from old IE versions, here's the solution. In settings, don't use "Addresses" field. Retrieve your address balance through "Pool #1":
Poll #1 URL: https://chain.api.btc.com/v3/address/YOUR_BTC_ADDRESS
Paid amount JSON key: json.data.balance/100000000

So this stopped working a week or 2 ago, initially dropped out for a day then came back, now gives 404 on the page, and going back to the root address only gives 503 error.

So i figured i'd look for a new address to put in Pool #1 and came up with this....

https://api.blockcypher.com/v1/btc/main/addrs/PUT_YOUR_ADDRESS_HERE

and that works in the browser, and gives this block of data in the first section of the return (test address they use)

Code:
{
  "address": "38DGj87axzmQiZeAd1w1y5FEmuu5a7pfBa",
  "total_received": 1630000,
  "total_sent": 1630000,
  "balance": 0,
  "unconfirmed_balance": 0,
  "final_balance": 0,
  "n_tx": 7,
  "unconfirmed_n_tx": 0,
  "final_n_tx": 7,
  "txrefs": [

so i figured great, i can substitute that in (yes i tested with my address and all good) and in the Paid amount JSON key use: json.data.final_balance/100000000

but it doesn't work, i've also just tried plain balance, json.data.balance etc etc, with no luck.
can anyone see what i'm doing wrong please


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: w.a.y.n.e on May 31, 2024, 11:11:07 PM
I figured it out, so using the API URL above, then in Paid amount JSON key: json.final_balance/100000000

that is working


Title: Re: Bitcoin Windows gadget which displays BTC and currency amounts
Post by: Domchi on June 01, 2024, 04:12:41 AM
I figured it out, so using the API URL above, then in Paid amount JSON key: json.final_balance/100000000

that is working

Glad to hear that!