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 "<txt>${temp}°</txt><bar>${temp}</bar>"

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 "<img>/home/xxx/litecoin/hypernova.ico</img><txt>${totalhashrate}</txt><tool>${confirmedrewards}LTC</tool>"

Applet xfce: Genmon

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