summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2011-09-05 01:40:45 +0200
committerEUcancER <root@euer.krebsco.de>2011-09-05 01:40:45 +0200
commit2b4fa0c5c5712096fb16df68f44af3a2954905a4 (patch)
treea579622c3323504899b604ddc695a6ac7999462f
parent57c5c973a40bf718f99c6e0fcd65b416514e2257 (diff)
changed ticker for solidcoin
now using mooncoin with appropriate gold module changing modules in scoreboard
-rw-r--r--gold/Makefile1
-rwxr-xr-xgold/mooncoin/ticker2
-rwxr-xr-xgold/mooncoin/ticker_text.sh4
-rwxr-xr-xgold/scoreboard/modules/available/solidcoin/gather2
-rwxr-xr-xgold/scoreboard/modules/available/solidcoin/init8
5 files changed, 12 insertions, 5 deletions
diff --git a/gold/Makefile b/gold/Makefile
index ff553def..69b9119b 100644
--- a/gold/Makefile
+++ b/gold/Makefile
@@ -1,3 +1,4 @@
install:
ln -snf $$PWD/mtgox/ticker_text.sh ../bin/mtgox_ticker
ln -snf $$PWD/scex/ticker_text.sh ../bin/scex_ticker
+ ln -snf $$PWD/mooncoin/ticker_text.sh ../bin/mooncoin_ticker
diff --git a/gold/mooncoin/ticker b/gold/mooncoin/ticker
new file mode 100755
index 00000000..1be3ed7f
--- /dev/null
+++ b/gold/mooncoin/ticker
@@ -0,0 +1,2 @@
+#! /bin/sh
+exec curl -ksS https://moonco.in/exchange/api/ticker/solidcoin
diff --git a/gold/mooncoin/ticker_text.sh b/gold/mooncoin/ticker_text.sh
new file mode 100755
index 00000000..fbaff55b
--- /dev/null
+++ b/gold/mooncoin/ticker_text.sh
@@ -0,0 +1,4 @@
+#! /bin/sh
+set -euf
+cd $(dirname `readlink -f $0`)
+./ticker | ../json/render/ticker
diff --git a/gold/scoreboard/modules/available/solidcoin/gather b/gold/scoreboard/modules/available/solidcoin/gather
index b4fe81f2..8b54bbb8 100755
--- a/gold/scoreboard/modules/available/solidcoin/gather
+++ b/gold/scoreboard/modules/available/solidcoin/gather
@@ -9,4 +9,4 @@ mkdir -p $LDIR
# write into live directory and archive
$SOLIDCOIND_PATH sc_getinfo | python $HERE/render | tee $LDIR/$LF >> $ADIR/$LF
-echo `date +"%Y-%m-%dT%H:%M:%S"` `$KREBSDIR/bin/scex_ticker` | sed -e 's/High: //' -e 's/Low: //' -e 's/Last: //' | tee $LDIR/ticker_${LF}>> $ADIR/ticker_${LF}
+echo `date +"%Y-%m-%dT%H:%M:%S"` `$KREBSDIR/bin/mooncoin_ticker` | sed -e 's/High: //' -e 's/Low: //' -e 's/Last: //' | tee $LDIR/ticker_${LF}>> $ADIR/ticker_${LF}
diff --git a/gold/scoreboard/modules/available/solidcoin/init b/gold/scoreboard/modules/available/solidcoin/init
index 165569a4..b44a1b6b 100755
--- a/gold/scoreboard/modules/available/solidcoin/init
+++ b/gold/scoreboard/modules/available/solidcoin/init
@@ -29,15 +29,15 @@ set size 0.5,0.5
set origin 0.5,0.0
plot "$ADIR/solidcoin" using 1:3 title "Difficulty" with lines
-#set title "Scex Pricing"
+#set title "Pricing"
set notitle
set tmargin 2
set size 1,0.5
set origin 0.0,0.5
set key left top
-plot "$ADIR/ticker_solidcoin" using 1:2 smooth bezier title "Scex High" with lines , \
- "$ADIR/ticker_solidcoin" using 1:3 smooth bezier title "Scex Low" with lines , \
- "$ADIR/ticker_solidcoin" using 1:4 smooth bezier title "Scex Last" with lines
+plot "$ADIR/ticker_solidcoin" using 1:2 smooth bezier title "High" with lines , \
+ "$ADIR/ticker_solidcoin" using 1:3 smooth bezier title "Low" with lines , \
+ "$ADIR/ticker_solidcoin" using 1:4 smooth bezier title "Last" with lines
EOF