Configuration Telegram

Additional Telegram information

Below is a telegram post that is customized. To have the same information follow the instructions below. (thanks to DamNmad)

Worker: nRIGNVOC19V13
System Boot Time: 2017-10-26 00:11:09
System Up Time: up 16 hours, 3 minutes
Miner Uptime: 16:02:22
GPU Count: 8

GPU_UTILIZATIONS: 98
99
100
100
99
99
99
100

TEMPS: 53
53
60
56
57
59
55
53

POWERDRAW: 76.04 W
75.99 W
76.19 W
76.49 W
76.16 W
75.15 W
76.54 W
76.43 W

FAN SPEEDS: 30 %
30 %
30 %
30 %
30 %
30 %
30 %
30 %

Mining information comes here

if you like it and want to add it, instructions here :

Add this in 1bash

TELEGRAM_TYPE="damNmad" # kk003 or papampi or BaliMiner or damNmad

Add this in telegram file in right place

#mod by damNmad
if [ $TELEGRAM_TYPE == "damNmad" ]
then
CHATID=$TELEGRAM_CHATID
APIKEY=$TELEGRAM_APIKEY
SYSTEM_BOOT_TIME=$(uptime -s)
SYSTEM_UP_TIME=$(uptime -p)
GPU_COUNT=$(nvidia-smi -L | tail -n 1| cut -c 5 |awk '{ SUM += $1+1} ; { print SUM }')
MINER_UP_TIME=$(ps -p pgrep miner -o etime | grep -v ELAPSED)
CURRENTLY_MINING=$(ps aux | grep miner)
GPU_UTILIZATIONS=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits)
TEMP=$(/usr/bin/nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader)
PD=$(/usr/bin/nvidia-smi --query-gpu=power.draw --format=csv,noheader)
FAN=$(/usr/bin/nvidia-smi --query-gpu=fan.speed --format=csv,noheader)
LF=$'\n'
PROFIT=$(cat /home/m1/current-profit)
MSG=" Worker: $WORKERNAME
System Boot Time: $SYSTEM_BOOT_TIME
System Up Time: $SYSTEM_UP_TIME
Miner Uptime: $MINER_UP_TIME
GPU Count: $GPU_COUNT
$LF GPU_UTILIZATIONS: $GPU_UTILIZATIONS
$LF TEMPS: $TEMP
$LF POWERDRAW: $PD
$LF FAN SPEEDS: $FAN
$LF $CURRENTLY_MINING"
 
/usr/bin/curl -s -X POST --output /dev/null https://api.telegram.org/bot$%7BAPIKEY%7D/sendMessage -d "text=${MSG}" -d 
chat_id=${CHATID}
fi

Leave a Reply

Your email address will not be published. Required fields are marked *

Powered by: Wordpress
%d bloggers like this: