Bitcoin Forum

Bitcoin => Project Development => Topic started by: NyeFe on December 16, 2016, 11:42:44 PM



Title: Embed Image - Live price update (currency exchange)
Post by: NyeFe on December 16, 2016, 11:42:44 PM
Take a look at this

http://i67.tinypic.com/2rprzbt.png

Okay, in normal cases, that image would be static (it is).

I've developed a small tool, which would allow us (those exchanging, and selling bitcoins), to add our own live percentage, which will be embeddable within this forum, and other websites, and will contain live update of bitcoins price, and your selling margin.

How do you feel about this?




> Bitcointalk caches images for 24hrs. (https://gtmetrix.com/reports/bitcointalk.org/vyIvF61N) That's how long it'd take, for images to update for every user, specifically, on this forum.

> For everything else, updates will be every 30 minute, for this current test version, since it's locally hosted on our machines and requires lots of CPU and RAM. If the direct link is unavailable, then we've switched-off the server.

> If this test version is successful, then we'll look at making bitcoin related charts (https://blockchain.info/charts) Live, using the same technologies.



Title: Re: Embed Image - Live price update (currency exchange)
Post by: Kray on December 17, 2016, 09:27:57 PM
Take a look at this

http://i67.tinypic.com/2rprzbt.png

Okay, in normal cases, that image would be static (it is).

I've developed a small tool, which would allow us (those exchanging, and selling bitcoins), to add our own live percentage, which will be embeddable within this forum, and other websites, and will contain live update of bitcoins price, and your selling margin.


How do you feel about this?



wow it's cool. is it free and open source?


Title: Re: Embed Image - Live price update (currency exchange)
Post by: BuySomeBitcoins on December 18, 2016, 02:27:10 AM
how much bandwidth does it consume ?


Title: Re: Embed Image - Live price update (currency exchange)
Post by: NyeFe on December 18, 2016, 08:04:19 AM
wow it's cool. is it free and open source?

Absolutely!  :D

how much bandwidth does it consume ?

That would depending on the amount of users. Each image is like 20.9KB.

The main problem, is that it crashes since its single threaded in NodeJS, but we've finally solved that problem.


Title: Re: Embed Image - Live price update (currency exchange)
Post by: NyeFe on December 18, 2016, 10:51:46 AM
The project is complete, finally.

Here's a Live sample: http://cleanatom.ddns.net:8080/show/usd/up/10/image.png

[ img ]http://cleanatom.ddns.net:8080/show/usd/up/10/image.png[/ img ]


Title: Re: Embed Image - Live price update (currency exchange)
Post by: amacar2 on December 18, 2016, 03:04:22 PM
It looks working
http://cleanatom.ddns.net:8080/show/usd/down/10/image.png
However there is error like below when we put 100 in % area
Quote
Error: ENOENT: no such file or directory, open 'C:\Users\Wisdom\projects\screenshot\show\usd\down\100\image.png'

Also what is the source of that bitcoin price, Preev ?


Title: Re: Embed Image - Live price update (currency exchange)
Post by: NyeFe on December 18, 2016, 03:30:33 PM
It looks working
http://cleanatom.ddns.net:8080/show/usd/down/10/image.png
However there is error like below when we put 100 in % area
Quote
Error: ENOENT: no such file or directory, open 'C:\Users\Wisdom\projects\screenshot\show\usd\down\100\image.png'

Also what is the source of that bitcoin price, Preev ?

You can't have a bitcoin exchange with 100% rate, (https://bitcointalk.org/index.php?topic=1719803.msg17220293#msg17220293) that's practically giving bitcoin away, or getting it for free.

Also, the server is a test version on my local pc, we might move it to a vps. the source of the price is average from btc-e, bitstamp and bitfinex.