Bitcoin Forum

Economy => Service Announcements => Topic started by: tim-tams on November 08, 2013, 02:42:51 AM



Title: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: tim-tams on November 08, 2013, 02:42:51 AM
[quick link to the converter (http://youmeandbtc.com/bitcoin-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!

https://i.imgur.com/t4jHZrJ.png

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 (http://youmeandbtc.com/bitcoin-converter/convert-btc-mbtc-bits-satoshis-usd/) 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 (https://i.imgur.com/FnrN1Rc.png) (very old screenie - see lots of new details above).

Hope this helps everyone! Simply visit the main page (http://youmeandbtc.com/bitcoin-converter/) 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:
http://youmeandbtc.com/received.php?address=13hK4GefkMYyk1iwH8QzAzYpAtqoNkSWju


Title: Re: Free Bitcoin Price Converter!
Post by: Eternity on November 08, 2013, 09:23:58 AM
What does this convert to ?


Title: Re: Free Bitcoin Price Converter!
Post by: tim-tams on November 08, 2013, 01:08:30 PM
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.


Title: Re: Free Bitcoin Price Converter! Perfect for online sales.
Post by: tim-tams on November 13, 2013, 10:08:05 PM
Updated the tool a bit. You can now convert from BTC to USD. Feedback welcome!


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Eternity on November 14, 2013, 02:03:23 PM
Cool stuff


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Bobbyd on November 14, 2013, 04:51:18 PM
Can you do one for BTC to GBP?


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Eternity on November 14, 2013, 09:02:30 PM
Use xe.com to convert to whatever currency you desire :)


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Martijnvdc on November 15, 2013, 08:08:01 AM
NICE!!
How about EUR/BTC or some cryptocurrencies?


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on November 15, 2013, 09:23:24 PM
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.


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Martijnvdc on November 15, 2013, 09:24:39 PM
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. :)


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on November 16, 2013, 12:28:00 AM
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. :)

You are quite welcome!


Title: Re: [Huge Update]Free Bitcoin Price Converter! v2.0
Post by: tim-tams on November 19, 2013, 02:14:18 AM
I've made this project A LOT easier to use. Please read about the update in the OP and try out the new setup (http://www.youmeandbtc.com/p/price-converter_7.html)!


Title: Re: [Huge Update]Free Bitcoin Price Converter! v2.0
Post by: pxlcoin on November 19, 2013, 04:56:52 AM
I've made this project A LOT easier to use. Please read about the update in the OP and try out the new setup (http://www.youmeandbtc.com/p/price-converter_7.html)!

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


Title: Re: [Huge Update]Free Bitcoin Price Converter! v2.0
Post by: unknownfame on November 19, 2013, 05:33:48 AM
Thanks it's awesome! Will help lots of buyers/sellers.


Title: Re: [Huge Update]Free Bitcoin Price Converter! v2.0
Post by: tim-tams on November 19, 2013, 01:28:52 PM
I've made this project A LOT easier to use. Please read about the update in the OP and try out the new setup (http://www.youmeandbtc.com/p/price-converter_7.html)!

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. ;) 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'];
        }



Title: Re: [Huge Update]Free Bitcoin Price Converter! v2.0
Post by: pxlcoin on November 23, 2013, 05:33:27 AM
Thanks, but there's some HTTPS error with file_get_contents for me :\


Title: Re: [Huge Update]Free Bitcoin Price Converter! v2.0
Post by: tim-tams on January 04, 2014, 09:54:54 PM
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!


Title: Re: [Updated]Free Bitcoin Price Converter! v2.0 # Create Automatically Updating PNGs
Post by: tim-tams on January 31, 2014, 08:08:03 PM
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 (http://www.youmeandbtc.com/p/convert-between-btc-and-mbtc.html). 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.


Title: Re: [Updated]Free Bitcoin Price Converter! v2.1 # Create Automatically Updating PNGs
Post by: tim-tams on April 28, 2014, 03:31:37 PM
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.
http://youmeandbtc.com/frombtc.php?value=1&eur=0&mbtc=0&exchange=Bitstamp&dec=8 (http://youmeandbtc.com/bitcoin-price-converter/)


Title: Re: [Updated] Free Bitcoin Price Converter! v2.2 *Create Automatically Updating PNGs
Post by: tim-tams on July 02, 2014, 02:01:12 PM
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! (http://youmeandbtc.com/bitcoin-price-converter/)

Another sample: $100 at Bitstamp is

http://youmeandbtc.com/tobtc.php?value=100&eur=0&mbtc=0&exchange=Bitstamp&dec=8 (http://youmeandbtc.com/bitcoin-price-converter/)

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


Title: Re: [Updated] Free Bitcoin Price Converter! v2.3 *Create Automatically Updating PNGs
Post by: tim-tams on July 13, 2014, 10:27:24 PM
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. :)


Title: Re: [Updated] Free Bitcoin Converter! v2.3 **Create Automatically Updating PNGs!**
Post by: tim-tams on September 02, 2014, 08:11:18 PM
Update 9/2/14

I used to have a BTC/mBTC/bits converter, but now it's a BTC/mBTC/bits/USD converter (http://youmeandbtc.com/bitcoin-converter/convert-btc-mbtc-bits-usd/)! Please try it out and let me know how it goes. Thanks!


Title: Re: [Updated] Free Bitcoin Converter! v2.3 **Create Automatically Updating PNGs!**
Post by: bernard75 on October 01, 2014, 06:42:16 AM
Awesome, but what happened to EUR?
Have you considered adding HitBTC or Kraken for EUR?


Title: Re: [Updated] Free Bitcoin Converter! v2.3 **Create Automatically Updating PNGs!**
Post by: tim-tams on October 03, 2014, 03:14:51 PM
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 (http://youmeandbtc.com/bitcoin-converter/) (the one that creates an image) supports Eur and as far as I can tell it's working right now.

The simpler one (http://youmeandbtc.com/bitcoin-price-converter/convert-btc-mbtc-bits/) 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! :D


Title: Re: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: tim-tams on March 02, 2015, 06:50:45 PM
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 (http://youmeandbtc.com/bitcoin-converter/)!

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!

https://i.imgur.com/t4jHZrJ.png


Title: Re: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: foxkyu on March 03, 2015, 10:48:58 AM
looks like your website is down
it say error database connection
http://i58.tinypic.com/2q89etk.jpg


Title: Re: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: Muhammed Zakir on March 03, 2015, 11:20:53 AM
'Type of Bitcoin' isn't good, use 'Unit if Bitcoin' instead. :)

   -MZ


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Bitcoin Explorer on March 03, 2015, 03:17:30 PM
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?


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on March 03, 2015, 04:27:41 PM
looks like your website is down
it say error database connection
http://i58.tinypic.com/2q89etk.jpg

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. :)

   -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?


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Bitcoin Explorer on March 03, 2015, 04:47:45 PM
looks like your website is down
it say error database connection
http://i58.tinypic.com/2q89etk.jpg

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. :)

   -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


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: foxkyu on March 03, 2015, 05:23:20 PM
looks like your website is down
it say error database connection
http://i58.tinypic.com/2q89etk.jpg
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?


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on March 03, 2015, 05:34:53 PM
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 (http://youmeandbtc.com/bitcoin-converter/) to generate all the URLs you need.


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on March 03, 2015, 05:36:12 PM
looks like your website is down
it say error database connection
http://i58.tinypic.com/2q89etk.jpg
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.


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: foxkyu on March 04, 2015, 08:19:52 AM
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


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: Bitcoin Explorer on March 04, 2015, 12:33:49 PM
looks like your website is down
it say error database connection
http://i58.tinypic.com/2q89etk.jpg
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


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on March 04, 2015, 07:07:13 PM
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!


Title: Re: Free Bitcoin Price Converter! Perfect for online sales!
Post by: tim-tams on March 04, 2015, 07:19:47 PM
-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?


Title: Re: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: TrianglePythagoras on March 04, 2015, 07:21:49 PM
Would you mind posting a tutorial somewhere on how you achieved this?


Title: Re: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: tim-tams on March 04, 2015, 07:41:34 PM
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 (http://youmeandbtc.com/bitcoin-converter/convert-btc-mbtc-bits-satoshis-usd/).


Title: Re: UPDATE: Free BTC Converter v2.4 - Now with color! *Automatically Updating PNGs*
Post by: tim-tams on March 07, 2015, 06:14:16 PM
Wanted to share that http://mycryptovault.net/ (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/ (http://expresszigaretten.com/).