Outils pour utilisateurs

Outils du site


public:cryptocur:scripts

Ceci est une ancienne révision du document !


Scripts

Affichage de la température GPU (amd) :

temp=`aticonfig --adapter=0 --od-gettemperature|tail -n 1|cut -c 37-|cut -c -2`
echo ${temp}°

Affichage du hashrate d'un pool (ex hypernova):

function jsonval {
  temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
  echo ${temp##*|}
}
 
json=`curl -s https://hypernova.pw/api/key/abcdefghijklmnopqrstuvwxyz/`
prop='total_hashrate'
totalhashrate=`jsonval`
prop='confirmed_rewards'
confirmedrewards=`jsonval`
 
echo /${totalhashrate}kHs/${confirmedrewards}L

Applet xfce: Genmon

public/cryptocur/scripts.1386503110.txt.gz · Dernière modification : 2023/02/13 13:39 (modification externe)