Welcome to the Dash Forum!

Please sign up to discuss the most innovative cryptocurrency!

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

Discussion in 'Dash Websites' started by pille, Dec 23, 2015.

  1. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
  2. mjsrs

    mjsrs Member

    Joined:
    Aug 6, 2014
    Messages:
    88
    Likes Received:
    68
    Trophy Points:
    68
    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
     
    #32 mjsrs, Jan 2, 2016
    Last edited by a moderator: Jan 4, 2016
  3. mjsrs

    mjsrs Member

    Joined:
    Aug 6, 2014
    Messages:
    88
    Likes Received:
    68
    Trophy Points:
    68

    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.
     
    • Like Like x 1
  4. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    Maybe you should kick cryptsy, their price is a lot lower because of their withdrawal problems. The average is distorted by them.
     
  5. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
    I really like the black and white !
    do not change it please ;)
    (specially the black D thumbnail)
     
  6. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
    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"
    ;)

    Edit:
    could not stop,
    this would be so sexy
    ;)
    (this is just a sketch, if you need a proper version i am happy to help)
    [​IMG]
     
    #36 tungfa, Jan 3, 2016
    Last edited by a moderator: Jan 3, 2016
    • Like Like x 1
  7. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    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.
     
  8. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
    I have no Idea ether
    I can only copy / paste this visually together
     
  9. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    #39 pille, Jan 3, 2016
    Last edited by a moderator: Jan 4, 2016
    • Like Like x 1
  10. mjsrs

    mjsrs Member

    Joined:
    Aug 6, 2014
    Messages:
    88
    Likes Received:
    68
    Trophy Points:
    68
    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 :)
     
  11. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
    down ?
    :sad:
     
  12. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
    down ?
    :sad:
     
  13. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member
    Linguistic Dash Nation Founder Moderator

    Joined:
    Jul 15, 2014
    Messages:
    2,433
    Likes Received:
    2,479
    Trophy Points:
    1,183
    Down for me, I only see dash.org.
     
  14. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    Back. But can happen anytime again. Need to fix a bug.
     
    • Like Like x 1
  15. TaoOfSatoshi

    TaoOfSatoshi Grizzled Member
    Linguistic Dash Nation Founder Moderator

    Joined:
    Jul 15, 2014
    Messages:
    2,433
    Likes Received:
    2,479
    Trophy Points:
    1,183
    Down again. Please fix! Your site rocks.
     
  16. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    Should be fixed permanently now. Let's see.
     
    • Like Like x 4
  17. Lebubar

    Lebubar Active Member

    Joined:
    Mar 15, 2014
    Messages:
    252
    Likes Received:
    213
    Trophy Points:
    103
    It seems that it was not fixed permanently ;) down for me right now.

    Edit : working now.
     
    #47 Lebubar, Jan 13, 2016
    Last edited by a moderator: Jan 13, 2016
  18. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    The yearly 7% block reward decrease is now considered in the calculations.
     
    • Like Like x 3
  19. UdjinM6

    UdjinM6 Official Dash Dev
    Dash Core Team Moderator

    Joined:
    May 20, 2014
    Messages:
    3,604
    Likes Received:
    3,515
    Trophy Points:
    1,183
    • Like Like x 3
  20. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
  21. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    wow thanks for the hint!
     
    • Like Like x 2
  22. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    Updates:
    - seperators (1,000.00)
    - if 'Total value fiat' or 'fiat/month' >=1000 -> cents are hidden
     
    • Like Like x 2
  23. tungfa

    tungfa Administrator
    Dash Core Team Foundation Member Masternode Owner/Operator Moderator

    Joined:
    Apr 9, 2014
    Messages:
    8,486
    Likes Received:
    6,560
    Trophy Points:
    1,283
    pille
    looks great
    am running this all the time as a general overview
    ;)
     
    • Like Like x 3
  24. Balych

    Balych Active Member

    Joined:
    Sep 12, 2015
    Messages:
    366
    Likes Received:
    211
    Trophy Points:
    113
    Dash Address:
    Xba1ychX7CjgbRrCKE1LjHjT3jLUhcexs5
    It would be nice to add numeral.language('x') where x is window.navigator.language or any other function which get browsers locale ;)
     
    • Like Like x 1
  25. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    Is there an easy way to embed all the languages?
     
  26. Balych

    Balych Active Member

    Joined:
    Sep 12, 2015
    Messages:
    366
    Likes Received:
    211
    Trophy Points:
    113
    Dash Address:
    Xba1ychX7CjgbRrCKE1LjHjT3jLUhcexs5
    Easiest way is use native js function toLocaleString(), since you don't need any locale/languages options except number formating.
     
  27. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    Yes I know, but my raspberry pi chromium didn't support it.
     
  28. Balych

    Balych Active Member

    Joined:
    Sep 12, 2015
    Messages:
    366
    Likes Received:
    211
    Trophy Points:
    113
    Dash Address:
    Xba1ychX7CjgbRrCKE1LjHjT3jLUhcexs5
    Numeral-js ver 1.5.0+ support 27 language settings with languages.js

    May be it work
    Code:
    var lang = (navigator.language || navigator.systemLanguage || navigator.userLanguage).substr(0, 2).toLowerCase();
    
    numeral.language(lang)
     
  29. pille

    pille Active Member

    Joined:
    Feb 18, 2015
    Messages:
    262
    Likes Received:
    286
    Trophy Points:
    123
    multilingual seperators done.

    ('be-nl'||'chs'||'cs'||'da-dk'||'de-ch'||'de'||'en-gb'||'es'||'et'||'fi'||'fr-CA'||'fr-ch'||'fr'||'hu'||'it'||'ja'||'nl-nl'||'pl'||'pt-br'||'pt-pt'||'ru-UA'||'ru'||'sk'||'th'||'tr'||'uk-UA')
     
    #59 pille, Mar 5, 2016
    Last edited by a moderator: Mar 5, 2016
    • Like Like x 2
  30. Balych

    Balych Active Member

    Joined:
    Sep 12, 2015
    Messages:
    366
    Likes Received:
    211
    Trophy Points:
    113
    Dash Address:
    Xba1ychX7CjgbRrCKE1LjHjT3jLUhcexs5
    Nice, thank you!
     

Share This Page