• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

DashTV - The easy way to keep an eye on your investment

Why don't you take the requests and cache it locally? that way when folks run to your site with a valid request you can hit your local cache. Albeit only allowing it to be refreshed every x interval ?

Actually I request the API data every minute with a cronjob and write it to a file which my users access. (Is there a better solution? thought it's ok).
But still, with the worldcoinindex API I could refresh only every 5 minutes.

Edit: fiat prices are now calculated from poloniex price too.
 
Last edited by a moderator:
Actually I request the API data every minute with a cronjob and write it to a file which my users access. (Is there a better solution? thought it's ok).
But still, with the worldcoinindex API I could refresh only every 5 minutes.

Edit: fiat prices are now calculated from poloniex price too.
Is there a place on the page where you could have it display total BTC worth? I'm lazy. :)

total/btc-usd=btc total or "value=amount"*dash-btc=btc total
 
Last edited by a moderator:
What exchange are you using for these number - they seem a bit low for the actual cost per DASH
My DASHtv screen says = 3.17
Poloneix = $3.56USD

hummmmmm
 
What exchange are you using for these number - they seem a bit low for the actual cost per DASH
My DASHtv screen says = 3.17
Poloneix = $3.56USD

hummmmmm

USD price from Poloniex is nonsense because of it's low volume (28 Dash/ last 24h). I calculate with Dash price from Polo and BTC price from https://dash-stats.firebaseio.com/stats.json , should be reasonably accurate. Better compare with coinmarketcap.com for example.
 
Got my pi screen from singapore yesterday :wink: Now I have to figure out how to autostart into chromium...

Code:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
add:
Code:
@xset s noblank 
@xset s off 
@xset -dpms
@chromium --noerrdialogs --kiosk http://dash-news.de/dashtv/?value=1000 --incognito --disable-translate

rYwWeTC.jpg
 
Last edited by a moderator:
Got my pi screen from singapore yesterday :wink: Now I have to figure out how to autostart into chromium...

Code:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
add:
Code:
@chromium --noerrdialogs --kiosk http://dash-news.de/dashtv/?value=1000 --incognito --disable-translate

rYwWeTC.jpg


OooOOOOOOOoooooooOO Thats cool! I want one!
 
Most of my data is taken from https://dash-stats.firebaseio.com/stats.json (latest on the bottom) . Dash price is always slightly lower than Poloniex. I don't know from which exchange exactly it's taken, maybe it's an average value?

Hi pille ,

The price at dash-stats.com is an average value from cryptsy, bittrex and poloniex. Those are the top 3 exchanges with more volume.
Code is open-source and you can see it here:
https://github.com/mjsrs/dash-board/blob/master/docker/sync.py

Edit: added bter and livecoin to the price average calcs
 
Last edited by a moderator:
Actually I request the API data every minute with a cronjob and write it to a file which my users access. (Is there a better solution? thought it's ok).
But still, with the worldcoinindex API I could refresh only every 5 minutes.

Edit: fiat prices are now calculated from poloniex price too.


The best way to do it is to use javascript API:
https://www.firebase.com/docs/web/api/
With this API you will have the changes in realtime without requesting all data every minute.
PM if you need help with this.
 
I really like the black and white !
do not change it please :wink:
(specially the black D thumbnail)
 
you know
Zero Block ?
https://zeroblock.com/mobile/

Their page and app's rule for BTC (news, facts, numbers and charts)
if you extend your page a 'little further' we would have an amazing
"Dash Block" - TV"
:wink:

Edit:
could not stop,
this would be so sexy
:wink:
(this is just a sketch, if you need a proper version i am happy to help)
61jCfNl.png
 
Last edited by a moderator:
This is a great idea for bigger screens tungfa. For small displays it could remain as it is (Raspi, Smartphone) and if it gets bigger it could extend. Is there a service around that provides a chart like this, I can simply embed? Doing this myself exceeds my abilities.
 
This is a great idea for bigger screens tungfa. For small displays it could remain as it is (Raspi, Smartphone) and if it gets bigger it could extend. Is there a service around that provides a chart like this, I can simply embed? Doing this myself exceeds my abilities.

I have no Idea ether
I can only copy / paste this visually together
 
Maybe you should kick cryptsy, their price is a lot lower because of their withdrawal problems. The average is distorted by them.

Cryptsy is already kicking out themselves because their server is really slow at the moment.
I've added two more exchanges: bter and livecoin. It will make the price more accurate.
Now the price is an average from 5 exchanges.

Regarding the communication with my API, if you can't or don't want to use the javascript api, I would suggest you use this url to get the data:
https://dash-stats.firebaseio.com/stats.json?orderBy="timestamp"&limitToLast=1

This url will give you only the lastest added info, decreasing response time and traffic.
It's important to reduce traffic because I'm using a free plan which gives 10Gb of traffic :)
 
Back
Top