Initial commit

This commit is contained in:
jay
2016-09-27 10:19:15 +01:00
parent ab861d3460
commit 4a809b5008
16 changed files with 162 additions and 0 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1006 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

+37
View File
@@ -0,0 +1,37 @@
${css.selector} {
background-image: url(%%${ticker.name}%%);
background-repeat: repeat-x;
background-position-y: 0px;
display: block;
width: 100%;
height: 30px;
animation-name: ${ticker.name};
-moz-animation-name: ${ticker.name};
-webkit-animation-name: ${ticker.name};
animation-iteration-count: infinite;
-moz-animation-iteration-count: infinite;
-webkit-animation-iteration-count: infinite;
animation-timing-function: linear;
-moz-animation-timing-function: linear;
-webkit-animation-timing-function: linear;
animation-duration: 30s;
-moz-animation-duration: 30s;
-webkit-animation-duration: 30s;
color: white;
content: " ";
position: absolute;
top: ${ticker.top};
}
@keyframes ${ticker.name} {
0% {
background-position: ${ticker.width}px 0px;
background-position: -webkit-calc(50% + ${ticker.width}px) 0px;
background-position: calc(50% + ${ticker.width}px) 0px;
}
100% {
background-position: 0 0px;
background-position: -webkit-calc(50% + 0) 0px;
background-position: calc(50% + 0) 0px;
}
}
+116
View File
@@ -0,0 +1,116 @@
ticketh {
// General settings.
reddit {
frequencySeconds = 300 // Every 5 minutes
authUrl = "https://www.reddit.com/api/v1/"
apiUrl = "https://oauth.reddit.com/"
}
// Define URLs, with %s placeholders for variables and interesting fields in the response.
providers {
etherscan {
url = "https://api.etherscan.io/api?module=stats&action=%s&tokenname=%s&apikey=KY27HKJKGJKSTP3FGI1IKB9RAJKRDH38WS"
fields {
supply = "/result"
}
}
coinmarketcap {
url = "https://api.coinmarketcap.com/v1/ticker/%s/"
fields {
price = "/0/price_usd"
}
}
coinmarketcapnexuist {
url = "https://coinmarketcap-nexuist.rhcloud.com/api/%s"
fields {
btcPrice = "/price/btc"
usdPrice = "/price/usd"
gbpPrice = "/price/gbp"
eurPrice = "/price/eur"
cnyPrice = "/price/cny"
cadPrice = "/price/cad"
audPrice = "/price/aud"
btcVolume = "/volume/btc"
usdVolume = "/volume/usd"
gbpVolume = "/volume/gbp"
eurVolume = "/volume/eur"
cnyVolume = "/volume/cny"
cadVolume = "/volume/cad"
audVolume = "/volume/aud"
}
}
cryptofresh {
url = "https://cryptofresh.com/api/asset/markets?asset=%s"
fields {
usdPrice = "/USD/price"
btcPrice = "/BTC/price"
}
}
}
// Using the URLs defined above, choose some datapoints (first value is the name of the provider, the rest are used in the placeholders.
dataPoints {
eth = ["coinmarketcapnexuist", "eth"]
etc = ["coinmarketcapnexuist", "etc"]
dgd = ["coinmarketcap", "digixdao"]
augur = ["coinmarketcap", "augur"]
plu = ["coinmarketcap", "pluton"]
}
// 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.
// formatted data. prefix symbol / \ decimal places
tickers {
upper-ticker {
font = "Segoe UI"
fontHeight = 14
color = "#000000"
background = "#ffffffbb"
backgroundHighlight = "#ffff77bb"
positiveColor: "#00cc00ff"
negativeColor: "#cc0000ff"
top: "22px"
cssSelector: "span.redditname:before"
segments = [
" ",
"! ","[[!/img/btc.png]]","! BTC {eth.btcPrice|฿ ||4|N|N|1} v:{eth.btcVolume|||1|N|Y|1} ",
" ",
"! ","[[!/img/us.png]]","! USD {eth.usdPrice|$||2|N|N|1} v:{eth.usdVolume|||1|N|Y|1} ",
" ",
" ","[[/img/gb.png]]"," GBP {eth.gbpPrice|£||2|N|N|1} v:{eth.gbpVolume|||1|N|Y|1} ",
" ",
" ","[[/img/eu.png]]"," EUR {eth.eurPrice|€||2|N|N|1} v:{eth.eurVolume|||1|N|Y|1} ",
" ",
" ","[[/img/cn.png]]"," CNY {eth.cnyPrice|¥||2|N|N|1} v:{eth.cnyVolume|||1|N|Y|1} ",
" ",
" ","[[/img/ca.png]]"," CAD {eth.cadPrice|$||2|N|N|1} v:{eth.cadVolume|||1|N|Y|1} ",
" ",
" ","[[/img/au.png]]"," AUD {eth.audPrice|$||2|N|N|1} v:{eth.audVolume|||1|N|Y|1} ",
" ",
]
}
lower-ticker {
font = "Segoe UI"
fontHeight = 14
color: "#ffffff"
background: "#00009999"
backgroundHighlight: "#00009999"
positiveColor: "#00cc00ff"
negativeColor: "#cc0000ff"
top: "44px"
cssSelector: "span.redditname:after"
segments = [
"[[/img/dgd.png]]",
" DGD {dgd.price|$||2|N|N|1} ",
"[[/img/rep.png]]",
" AUG {augur.price|$||2|N|N|1} ",
"[[/img/etc.png]]",
" ETC {etc.usdPrice|$||2|N|N|1} ",
"[[/img/plutus.png]]",
" PLU {plu.price|$||2|N|N|1} "
]
}
}
}
+9
View File
@@ -0,0 +1,9 @@
span.redditname:after,span.redditname:before {
-webkit-animation-play-state: paused;
animation-play-state: paused;
}
span.redditname:hover:after,span.redditname:hover:before {
-webkit-animation-play-state: running;
animation-play-state: running;
}