Post
Topic
Board Project Development
Topic OP
[ANN] blockfound - push notifications when your pool solves a block
by
Professoruss
on 18/02/2014, 01:23:55 UTC
I just updated this so it works on all pools via blockchain, so I figured, might as well post it in here.
Hope someone can get some use out of it.
https://github.com/professoruss/blockfound

readme:

Blockfound will notify you when your pool finds a new block

Ruby
Support for Pushover - ios/android push notifications
Run via cron or irc bot
Data comes from blockchain.info API (or optionally slush API)
Version

2.0

Installation

gem install json
gem install yaml
git clone https://github.com/professoruss/blockfound.git
Command line options

--pool (Specify pool name from blockchain.info - use same case as https://blockchain.info/pools?timespan=24hrs, replace spaces with %20)
--oldschool (Get data from slush API instead of blockchain.info)
--output (specify the output, defaults to cli)
--help (uhh, help)
Run the damn thing!

output to console

ruby blockfound.rb --pool Slush
Push Notifications Via pushover

enter your token and user into the yaml file

cd blockfound
vim pushover.yaml
push notifications

ruby blockfound.rb --pool Slush --output pushover
Run via cron

* * * * * sleep 1 ;ruby blockfound/blockfound.rb --pool Slush --output pushover > /dev/null 2>&1