Pages:
Author

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

sr. member
Activity: 516
Merit: 268
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.
newbie
Activity: 33
Merit: 0
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!!)
full member
Activity: 181
Merit: 100
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!
newbie
Activity: 23
Merit: 0
Thnx for update, much appreciated  Wink
sr. member
Activity: 516
Merit: 268
It's not working again  Cry

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).
sr. member
Activity: 516
Merit: 268
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?
legendary
Activity: 1098
Merit: 1000
It's not working again  Cry

Down and out here as well.  Huh

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
full member
Activity: 181
Merit: 100
Seems to be working fine here, using the URL https://data.mtgox.com/api/1/BTCEUR/ticker ...
newbie
Activity: 23
Merit: 0
It's not working again  Cry
full member
Activity: 181
Merit: 100
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?
newbie
Activity: 23
Merit: 0
Thanks for the update  Wink
sr. member
Activity: 516
Merit: 268
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. Smiley

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

full member
Activity: 181
Merit: 100
Looks like the solution is to use https for the Gox API?

https://bitcointalksearch.org/topic/m.2090533
full member
Activity: 181
Merit: 100
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...
full member
Activity: 181
Merit: 100
Hi,

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

Thanks!
sr. member
Activity: 516
Merit: 268
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...
newbie
Activity: 46
Merit: 0
ahh just what i've been looking for.. thanks!
newbie
Activity: 22
Merit: 0
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.
sr. member
Activity: 516
Merit: 268
{"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/

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/) I've published a way to switch to the new MtGox API without upgrading.
hero member
Activity: 669
Merit: 500
{"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
Pages:
Jump to: