Author

Topic: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs* (Read 4754 times)

sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Wanted to share that http://mycryptovault.net/ has integrated this tool into their website. Looks pretty awesome!

I've also noticed that there are a few German tobacco retailers that use us, like http://expresszigaretten.com/.
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Would you mind posting a tutorial somewhere on how you achieved this?

I've been super busy recently but I might be able to make time for that. What sort of information would you want to see in a tutorial?

Side note: I also just added CNY to our simpler converter.
sr. member
Activity: 274
Merit: 250
Would you mind posting a tutorial somewhere on how you achieved this?
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
-snip-
im willing to help you in developing this and i can also provide nice VPS hosting. let me know if youre interested

I really appreciate the offer and I'll keep that in mind. I'm not really sure if there's anything else that needs more development right now though. Did you have any ideas in mind?

I also appreciate the VPS offer. At the moment I'm not paying for my server but I'm still open to options. What sort of deal did you have in mind for that?
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
No plans at the moment but it should take very little time to add anything you need. Is there a currency that you had in mind? I could probably knock it out in a few minutes.
maybe cny and idr
you know that china is the biggest market bitcoin
and idr(rupiah) is my country currency

CNY was a really good call. Just added it!

If you have a specific plan to use one of those other currencies, let me know and I can add them right away!
hero member
Activity: 854
Merit: 500
looks like your website is down
it say error database connection

Dang, I hate when that happens... It's good now but I hope the problem doesn't persist. Thanks for letting me know!
No problem, yeah it's good now
btw is there any plan to add more fiat currency in the future?

No plans at the moment but it should take very little time to add anything you need. Is there a currency that you had in mind? I could probably knock it out in a few minutes.
im willing to help you in developing this and i can also provide nice VPS hosting. let me know if youre interested
hero member
Activity: 938
Merit: 1000
No plans at the moment but it should take very little time to add anything you need. Is there a currency that you had in mind? I could probably knock it out in a few minutes.
maybe cny and idr
you know that china is the biggest market bitcoin
and idr(rupiah) is my country currency
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
looks like your website is down
it say error database connection

Dang, I hate when that happens... It's good now but I hope the problem doesn't persist. Thanks for letting me know!
No problem, yeah it's good now
btw is there any plan to add more fiat currency in the future?

No plans at the moment but it should take very little time to add anything you need. Is there a currency that you had in mind? I could probably knock it out in a few minutes.
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
That is really nice, which backend do you use?

It's PHP for the image and a little Javascript for the webpage. Is that what you meant by backend?
Yes

Also, I should have mentioned that pages like the frombtc.php page are really deprecated right now. Everything has been combined into one page (http://youmeandbtc.com/bitcoin-converter-php.php) and you can use this page to generate all the URLs you need.
hero member
Activity: 938
Merit: 1000
looks like your website is down
it say error database connection

Dang, I hate when that happens... It's good now but I hope the problem doesn't persist. Thanks for letting me know!
No problem, yeah it's good now
btw is there any plan to add more fiat currency in the future?
hero member
Activity: 854
Merit: 500
looks like your website is down
it say error database connection


Dang, I hate when that happens... It's good now but I hope the problem doesn't persist. Thanks for letting me know!

'Type of Bitcoin' isn't good, use 'Unit if Bitcoin' instead. Smiley

   -MZ

Good call. That was a real easy fix and hopefully it makes more sense to people. Thanks!

NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
That is really nice, which backend do you use?

It's PHP for the image and a little Javascript for the webpage. Is that what you meant by backend?
Yes
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
looks like your website is down
it say error database connection


Dang, I hate when that happens... It's good now but I hope the problem doesn't persist. Thanks for letting me know!

'Type of Bitcoin' isn't good, use 'Unit if Bitcoin' instead. Smiley

   -MZ

Good call. That was a real easy fix and hopefully it makes more sense to people. Thanks!

NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
That is really nice, which backend do you use?

It's PHP for the image and a little Javascript for the webpage. Is that what you meant by backend?
hero member
Activity: 854
Merit: 500
NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
That is really nice, which backend do you use?
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
'Type of Bitcoin' isn't good, use 'Unit if Bitcoin' instead. Smiley

   -MZ
hero member
Activity: 938
Merit: 1000
looks like your website is down
it say error database connection
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
It's been awhile since I added anything cool to this so I figured it was time for an update. Check out the new color features!

Also: As I was revising this thread, I noticed that the BCT forum image proxy has been fixed to work perfectly with this converter, so now you can post prices here that automatically update! No Javascript or anything necessary, just a simple image!

---From OP---

Please let me know if you have ANY ideas or suggestions for how I could improve this tool.

Awesome 2.4 Update (3/1/15): Color Support!
This should be self explanatory but I think it's pretty darn awesome. Now you can make the image fit in with whatever your website's theme looks like. As usual, if you're willing, please take some time to test it out and let me know if you find any bugs. Thanks a ton!

sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Awesome, but what happened to EUR?
Have you considered adding HitBTC or Kraken for EUR?

Depends, which converter were you trying to use? This one (the one that creates an image) supports Eur and as far as I can tell it's working right now.

The simpler one does not currently support Eur. Did you need that? I can get that in there if you need it.

Also: Little bonus, I just added Satoshis to the simple converter. I'll be doing a bigger announcement when I have time.

Thanks for the interest! I think I've received a tip or two recently too, which are awesome! Cheesy
legendary
Activity: 1316
Merit: 1003
Awesome, but what happened to EUR?
Have you considered adding HitBTC or Kraken for EUR?
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Update 9/2/14

I used to have a BTC/mBTC/bits converter, but now it's a BTC/mBTC/bits/USD converter! Please try it out and let me know how it goes. Thanks!
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Update (7/13): Just finished a fairly major code update. You all won't really notice the changes, but I need some people to test it out and let me know if you find any bugs. If it ever gives you a strange result or an error or anything, please tell me. Thanks!

It'd also be sweet if you could post here and tell me if everything works well. Smiley
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Haven't bumped this in awhile but I just recently made a cool update. We now support conversion to and from bits. Enjoy! I'm working on updating the code too but you all won't notice much of that. As usual, please let me know if you have questions, comments, or suggestions!

Convert!

Another sample: $100 at Bitstamp is



From OP:
Medium Update (6/28): We added support for bits too, which are 1/1,000,00th of a Bitcoin.
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Bumping this just for fun. It's still available and functional and I'm still looking for suggestions. Just recently fixed it up for our new website too.

Here's a sample, 1 BTC at the Bitstamp rate.
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
I noticed that lots of people were finding this tool when searching for things like "convert btc to mbtc." This conversion is extremely simple (just multiply or divide by 1000) but I figured I'd create a tool for the lazy people, so here it is. All you have to do is input a value in BTC or mBTC and select how to convert. Then the corresponding value will be displayed for you.

I'm always willing to add exchanges or currencies to the original tool as well, so let me know if you need anything.
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
I just wanted to bump this because it should be useful for a lot of people. I'm still looking for suggestions to improve it if anyone has any good ideas!
newbie
Activity: 11
Merit: 0
Thanks, but there's some HTTPS error with file_get_contents for me :\
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
I've made this project A LOT easier to use. Please read about the update in the OP and try out the new setup!

Hi tim-tams;

I'm interested in creating something similar (basically, grabbing prices from exchanges and posting). Can you message me perhaps and tell me what you use to grab the exchange prices? Currently I'm trying to use (PHP) either file_get_contents or CURL. The former doesn't work for HTTPS requests and I can't quite figure out the latter, so I'd appreciate if you threw me some help.

Thanks,
pxlcoin

It is just PHP and file_get_contents. I might have a little competition now but oh well. Wink If you want a new exchange, you'll just have to find their json API, get the URL, and update the indexes of the array to match the API.

if ($exchange == 'btc-e' or $exchange == 'btce'){
        $url = 'https://btc-e.com/api/2/btc_usd/ticker';
        $content = file_get_contents($url);
        $json = json_decode($content, true);
        $rate = $json['ticker']['last'];
        }
elseif ($exchange == 'mtgox'){
        $url = 'http://data.mtgox.com/api/2/BTCUSD/money/ticker';
        $content = file_get_contents($url);
        $json = json_decode($content, true);
        $rate = $json['data']['last']['value'];
        }
elseif ($exchange == 'coinbase'){
        $url = 'https://coinbase.com/api/v1/currencies/exchange_rates';
        $content = file_get_contents($url);
        $json = json_decode($content, true);
        $rate = $json['btc_to_usd'];
        }
else {
        $url = 'https://www.bitstamp.net/api/ticker/';
        $content = file_get_contents($url);
        $json = json_decode($content, true);
        $rate = $json['last'];
        }

full member
Activity: 150
Merit: 100
Thanks it's awesome! Will help lots of buyers/sellers.
newbie
Activity: 11
Merit: 0
I've made this project A LOT easier to use. Please read about the update in the OP and try out the new setup!

Hi tim-tams;

I'm interested in creating something similar (basically, grabbing prices from exchanges and posting). Can you message me perhaps and tell me what you use to grab the exchange prices? Currently I'm trying to use (PHP) either file_get_contents or CURL. The former doesn't work for HTTPS requests and I can't quite figure out the latter, so I'd appreciate if you threw me some help.

Thanks,
pxlcoin
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
I've made this project A LOT easier to use. Please read about the update in the OP and try out the new setup!
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
Thank you very much. Smiley

You are quite welcome!
sr. member
Activity: 322
Merit: 250
NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
Thank you very much. Smiley
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
NICE!!
How about EUR/BTC or some cryptocurrencies?

Added conversion to and from EUR. Just use the same URLs and add &eur=1 to the end.

I also added a frombtc.php page so that it wouldn't have to be tousd.php in case you were using Euros.

Hope this works, tips welcome!

Also, I probably won't do this for other cryptos because there's just too many to make this really worthwhile.
sr. member
Activity: 322
Merit: 250
NICE!!
How about EUR/BTC or some cryptocurrencies?
full member
Activity: 196
Merit: 100
Use xe.com to convert to whatever currency you desire Smiley
newbie
Activity: 20
Merit: 0
Can you do one for BTC to GBP?
full member
Activity: 196
Merit: 100
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
Updated the tool a bit. You can now convert from BTC to USD. Feedback welcome!
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
What does this convert to ?

It converts USD to BTC. See the "value" field in the URL? That's where you put the USD amount then it converts to BTC in the image. I'll try to clarify that better.
full member
Activity: 196
Merit: 100
What does this convert to ?
sr. member
Activity: 479
Merit: 252
You, Me, and BTC: *Your* Liberty & Bitcoin Podcast
[quick link to the converter]

I've been working on a price converter that generates an image and automatically updates with the exchange rate. This is perfect for when you are selling something and want to post a Bitcoin price that changes as the exchange rate fluctuates. You can also use it to post the value of 1 BTC so people can see the exchange rate on your website or anywhere else you like. It began when I was helping out with a "for sale" thread here on the forums, but since then I've been slowly expanding it and adding features as time permits.

Please let me know if you have ANY ideas or suggestions for how I could improve this tool.

Awesome 2.4 Update (3/1/15): Color Support!
This should be self explanatory but I think it's pretty darn awesome. Now you can make the image fit in with whatever your website's theme looks like. As usual, if you're willing, please take some time to test it out and let me know if you find any bugs. Thanks a ton!



2.3 Update (7/13/14): Just finished a fairly major code update. You all won't really notice the changes, but I need some people to test it out and let me know if you find any bugs. If it ever gives you a strange result or an error or anything, please tell me. Thanks!

Medium 2.2 Update (6/28/14): We added support for bits too, which are 1/1,000,00th of a Bitcoin.

Smaller 2.1 Update (1/31/14): There is now a tool for the lazy people who want to convert between BTC and mBTC (and now bits, Satoshis, USD and Euros as well).

Big 2.0 Update (11/18/13)
I have made it MUCH simpler to generate a URL for any conversion you like. All you have to do is make a few selections and the URL will be automatically created so you can copy and paste it wherever you want.

It looks like this (very old screenie - see lots of new details above).

Hope this helps everyone! Simply visit the main page to try it out.

Note to BCT users: This forum's fail of an image proxy does not allow you to pass more than one PHP variable through a URL. This means that you can choose a value to convert but everything else goes the the default settings (Coinbase rate, USD, etc.) This still works but can be annoying. Complain to theymos if you feel the need. Or simply use this tool on any other website. This seems to have been fixed, so now the converter should be perfect for anyone posting prices here! No Javascript or anything necessary - just a simple image!



If you have any questions or suggestions, let me know.
Donations to this project would be darn wonderful if you're willing.

13hK4GefkMYyk1iwH8QzAzYpAtqoNkSWju

Total donated so far:
Jump to: