diff --git a/ticker.conf b/ticker.conf index d9ae7f0..4e116ed 100644 --- a/ticker.conf +++ b/ticker.conf @@ -41,6 +41,13 @@ ticker { btcPrice = "/BTC/price" } } + maker { + url = "http://api.mkr.market/" + fields { + mkrPrice = "/ETH_MKR/last" + gntPrice = "/ETH_GNT/last" + } + } } // Using the URLs defined above, choose some datapoints (first value is the name of the provider, the rest are used in the placeholders. @@ -51,11 +58,12 @@ ticker { augur = ["coinmarketcap", "augur"] plu = ["coinmarketcap", "pluton"] icn = ["coinmarketcap", "iconomi"] + maker = ["maker"] } // Define the format of the ticker(s) here: // Use the tokens as path in json \ suffix symbol \ / format red/green based on sign - // follows to display {response.field|€|¢|3|Y|Y} <- reduce big numbers with 'k' for thousands, 'M' for millions etc. + // follows to display ","{dataPointName: \"response\", valueName: \"field\", prefix: \"€\", suffix: \"¢\", precision: \"3\", useColor: \"Y\", shorten: \"Y\", divisor: \"\"}"," <- reduce big numbers with 'k' for thousands, 'M' for millions etc. // formatted data. prefix symbol / \ decimal places tickers { upper-ticker { @@ -69,22 +77,24 @@ ticker { top: "22px" cssSelector: "span.redditname:before" segments = [ - " ","[[/img/eth.png]]"," Vol: {eth.usdVolume|$||1|N|Y|1} Supply: {eth.supply|||0|N|Y|1} ", + " ", + "{dataPointName: \"eth\", valueName: \"usdVolume\", prefix: \"Vol: $\", suffix: \"\", precision: \"1\", useColor: \"N\", shorten: \"Y\", divisor: \"1\", image: \"/img/eth.png\"}", + "{dataPointName: \"eth\", valueName: \"supply\", prefix: \" Supply: \", suffix: \"\", precision: \"0\", useColor: \"N\", shorten: \"Y\", divisor: \"1\"}", + " ", + "{dataPointName: \"eth\", valueName: \"btcPrice\", prefix: \"BTC ฿ \", suffix: \" \", precision: \"4\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/btc.png\", highlight: true}", " ", - "! ","[[!/img/btc.png]]","! BTC {eth.btcPrice|฿ ||4|N|N|1} ", - " ", - "! ","[[!/img/us.png]]","! USD {eth.usdPrice|$||2|N|N|1} ", - " ", - " ","[[/img/gb.png]]"," GBP {eth.gbpPrice|£||2|N|N|1} ", - " ", - " ","[[/img/eu.png]]"," EUR {eth.eurPrice|€||2|N|N|1} ", - " ", - " ","[[/img/cn.png]]"," CNY {eth.cnyPrice|¥||2|N|N|1} ", - " ", - " ","[[/img/ca.png]]"," CAD {eth.cadPrice|$||2|N|N|1} ", - " ", - " ","[[/img/au.png]]"," AUD {eth.audPrice|$||2|N|N|1} ", + "{dataPointName: \"eth\", valueName: \"usdPrice\", prefix: \"USD $\", suffix: \" \", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/us.png\", highlight: true}", " ", + "{dataPointName: \"eth\", valueName: \"gbpPrice\", prefix: \"GBP £\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/gb.png\"}", + " ", + "{dataPointName: \"eth\", valueName: \"eurPrice\", prefix: \"EUR €\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/eu.png\"}", + " ", + "{dataPointName: \"eth\", valueName: \"cnyPrice\", prefix: \"CNY ¥\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/cn.png\"}", + " ", + "{dataPointName: \"eth\", valueName: \"cadPrice\", prefix: \"CAD $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/ca.png\"}", + " ", + "{dataPointName: \"eth\", valueName: \"audPrice\", prefix: \"AUD $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/au.png\"}", + " ", ] } lower-ticker { @@ -98,14 +108,18 @@ ticker { top: "44px" cssSelector: "span.redditname:after" segments = [ - "[[/img/dgd.png]]", - " DGD {dgd.price|$||2|N|N|1} ", - "[[/img/rep.png]]", - " REP {augur.price|$||2|N|N|1} ", - "[[/img/plutus.png]]", - " PLU {plu.price|$||2|N|N|1} ", - "[[/img/iconomi.png]]", - " ICN {icn.price|$||2|N|N|1} " + "{dataPointName: \"dgd\", valueName: \"price\", prefix: \"DGD $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/dgd.png\"}", + " ", + "{dataPointName: \"augur\", valueName: \"price\", prefix: \"REP $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/rep.png\"}", + " ", + "{dataPointName: \"plu\", valueName: \"price\", prefix: \"PLU $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/plutus.png\"}", + " ", + "{dataPointName: \"icn\", valueName: \"price\", prefix: \"ICN $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/iconomi.png\"}", + " ", + "{dataPointName: \"maker\", valueName: \"mkrPrice\", prefix: \"MKR $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/mkr.png\", fxName: \"eth\", fxValue: \"usdPrice\"}", + " ", + "{dataPointName: \"maker\", valueName: \"gntPrice\", prefix: \"GNT $\", suffix: \"\", precision: \"2\", useColor: \"N\", shorten: \"N\", divisor: \"1\", image: \"/img/gnt.png\", fxName: \"eth\", fxValue: \"usdPrice\"}", + " " ] } }