minerstat used jq (JSON parser  wget http://stedolan.github.io/jq/download/linux64/jq) and extract miner stats from monitor.php