Page 1 of 1

Dashticz - Module - Crypto Currency [BETA]

Posted: Saturday 11 November 2017 21:53
by robgeerts
In latest beta it is possible to show the current exchange rates for crypto currencies like Bitcoins, Bitcoin Cash etc.
Image

Add to config.js:

Code: Select all

var coins = {}
coins.bitcoin = { key:'bitcoin', currency: 'EUR', layout:'vertical',width:6 }
coins.monero = { key:'monero', currency: 'EUR', layout:'vertical',width:6 }
coins.bitcoincash = { key:'bitcoin-cash',  amount: 0.03071800, currency: 'EUR', width:12 }
Add to blocks like:

Code: Select all

columns[1]['blocks'] = [coins.bitcoin, coins.monero, coins.bitcoincash]

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Saturday 11 November 2017 22:23
by Teknor
Cool,
From which beta?

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Saturday 11 November 2017 22:35
by robgeerts

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Sunday 12 November 2017 15:14
by freakshock
Thanks Rob, nice idea for a module.
Seems to crash my tablet browser (Fully Kiosk Browser) quite often however.
Have not tested other browsers.

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Monday 13 November 2017 16:22
by robgeerts
Could you test latest BETA?

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Tuesday 14 November 2017 10:38
by robgeerts
Also, in latest beta it is possible to use litebit.eu as a source.
just add the source-parameter, like:

Code: Select all

var coins = {}
coins.btc = { key:'btc', source: 'litebit', currency: 'EUR', layout:'vertical',width:6 }
coins.bcc = { key:'bcc', source: 'litebit', currency: 'EUR', layout:'vertical',width:6 }
coins.dash = { key:'dash', source: 'litebit', currency: 'EUR', amount: 0.07935300, width:12 }

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Thursday 16 November 2017 15:20
by freakshock
robgeerts wrote: Monday 13 November 2017 16:22 Could you test latest BETA?
Seems fixed now Rob, thanks!

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Tuesday 21 November 2017 20:56
by gielie
really nice feature, is it possible to use USD, if i change EUR to USD it doesnt work.
What i also like to see is how much BTC my alts are, so BTC as currency

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Thursday 21 December 2017 11:20
by remb0
I have added this with nxt nem etc. but I don't see them:
https://cors-anywhere.herokuapp.com/htt ... ve-updates
is a red line when I use F12. So it can't use this, can I use another link or disable cors?
nu and garbage still works.

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Thursday 28 December 2017 15:35
by nldforce
Hey Rob,

great work on this. got it all setup.
i got also navoin but it does not seems to work.
i think it is 'coins.navcoin parameter??'

it would also bee nice if you could add the symbols of the curency

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Thursday 28 December 2017 15:58
by robgeerts
This works:

Code: Select all

coins.nav = { key:'nav-coin', currency: 'EUR', amount: 200, width:12 }

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Thursday 28 December 2017 16:54
by nldforce
robgeerts wrote: Thursday 28 December 2017 15:58 This works:

Code: Select all

coins.nav = { key:'nav-coin', currency: 'EUR', amount: 200, width:12 }
this looks like it is not working
coins.nav = { key:'navcoin', amount: *hidden*.04140900, currency: 'EUR', width:3 }

but yours is thnx

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Sunday 31 January 2021 14:36
by Chris12
@lokonli, is this still supported in the latest beta (3.7.3) ?

I've added some examples of crypto currency to test this feature, but it won't display on my screen.
Maybe something changed over the last couple of years in the code-base?

example:
Spoiler: show

Code: Select all

//Crypto currency
var coins = {}
coins.bitcoin = { key:'bitcoin', source: 'litebit', amount: 0.1, currency: 'EUR', layout:'vertical',width:6 }
coins.litecoin = { key:'litecoin',source: 'litebit', amount: 1.0, currency: 'EUR', layout:'vertical',width:6 }
Can there also be graphs created, so a nice overview of some coins can be displayed? Or do I need another sollution for that?

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Sunday 31 January 2021 17:08
by Lokonli
I never tried it before ...

I did a quick test. There is support for two servers: litecoin and coinmarketcap.

Unfortunately neither one is working.

So coin is not supported anymore.

I'm not so into crypto myself, so no priority for me to fix this.

Re: Dashticz - Module - Crypto Currency [BETA]

Posted: Sunday 31 January 2021 17:32
by Chris12
I found some API documentation for coinmarket, with some programming examples in it.
It seems that a API key is now needed (free when creating a dev account)

https://coinmarketcap.com/api/documenta ... troduction

But changing the dashticz coins.js using above examples is way out of my league unfortunatelly.