Dashticz - Module - Crypto Currency [BETA]

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Dashticz - Module - Crypto Currency [BETA]

Post 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]
User avatar
Teknor
Posts: 30
Joined: Monday 08 February 2016 13:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.48
Location: Norway
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post by Teknor »

Cool,
From which beta?
Raspberry Pi 3 | EasyESP NodeMCU v3 | RFXTRX433e | Mysensors NRF24L01 | MotionEYE | PikrellCam
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post by robgeerts »

freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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.
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post by robgeerts »

Could you test latest BETA?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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 }
freakshock
Posts: 64
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post by freakshock »

robgeerts wrote: Monday 13 November 2017 16:22 Could you test latest BETA?
Seems fixed now Rob, thanks!
User avatar
gielie
Posts: 290
Joined: Tuesday 12 January 2016 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest β
Location: The Netherlands (Alkmaar)
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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.
nldforce
Posts: 14
Joined: Wednesday 27 December 2017 22:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post by robgeerts »

This works:

Code: Select all

coins.nav = { key:'nav-coin', currency: 'EUR', amount: 200, width:12 }
nldforce
Posts: 14
Joined: Wednesday 27 December 2017 22:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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?
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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.
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Dashticz - Module - Crypto Currency [BETA]

Post 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.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest