From 2b4fa0c5c5712096fb16df68f44af3a2954905a4 Mon Sep 17 00:00:00 2001 From: EUcancER Date: Mon, 5 Sep 2011 01:40:45 +0200 Subject: changed ticker for solidcoin now using mooncoin with appropriate gold module changing modules in scoreboard --- gold/Makefile | 1 + gold/mooncoin/ticker | 2 ++ gold/mooncoin/ticker_text.sh | 4 ++++ gold/scoreboard/modules/available/solidcoin/gather | 2 +- gold/scoreboard/modules/available/solidcoin/init | 8 ++++---- 5 files changed, 12 insertions(+), 5 deletions(-) create mode 100755 gold/mooncoin/ticker create mode 100755 gold/mooncoin/ticker_text.sh (limited to 'gold') 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 -- cgit v1.2.3