Last active
August 29, 2015 14:14
-
-
Save toodooleedoo/280ffa64c775262f057b to your computer and use it in GitHub Desktop.
#CURL Bitcoin Rate to Pushover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USER="<<<CUT>>>" | |
TOKEN="<<<CUT>>>" | |
rate=`curl --silent 'http://www.bitcoinexchangerate.org/' |grep "#36" |sed -e 's/$//g;s/ .*//g;'` | |
#rate=`curl --silent -k "https://www.mtgox.com" |grep "Weighted Avg:" |sed -e 's/.*<span>//g;s/<\/span>.*//g;s/\..*$//g;'` | |
echo "Rate: ${rate}" | |
curl --silent -k "https://api.pushover.net/1/messages.json" -d "token=${TOKEN}" -d "user=${USER}" -d "title=Bitcoin Exchange Rate" -d "message=${rate}" -d "url_title=MtGox" "url=https://www.mtgox.com" -d "priority=-1" -d "device=edroid" -d "url=tasker://action bitcoin" -d "url_title=Repeat" | |
## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment