mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-22 16:43:08 +02:00
icarus-miner: record time on u.log and export to webserver ROUTER_IP/u.log
This commit is contained in:
parent
3a9287c415
commit
ed8a0b7d51
@ -8,6 +8,7 @@ WORKER=http://xiangfu.z@gmail.com_1:1234@pit.deepbit.net:8332/
|
||||
SCRIPT_PATH=`pwd`
|
||||
|
||||
${SCRIPT_PATH}/icarus_undermanager.py -a ${API_KEY} > ${SCRIPT_PATH}/u.log 2>&1
|
||||
date >> ${SCRIPT_PATH}/u.log
|
||||
|
||||
TRUE_COUNT=`less ${SCRIPT_PATH}/u.log | grep "\"alive\": true" | wc -l`
|
||||
HASHRATE=`less ${SCRIPT_PATH}/u.log | grep "\"hashrate\": 0," | wc -l`
|
||||
|
1
icarus-miner/data/root/scripts/u.log
Normal file
1
icarus-miner/data/root/scripts/u.log
Normal file
@ -0,0 +1 @@
|
||||
icarus_monitor.sh not start yet
|
1
icarus-miner/data/www/u.log
Symbolic link
1
icarus-miner/data/www/u.log
Symbolic link
@ -0,0 +1 @@
|
||||
../root/scripts/u.log
|
Loading…
Reference in New Issue
Block a user