Skip to content

Instantly share code, notes, and snippets.

@IanVaughan
Last active March 4, 2016 21:45
Show Gist options
  • Save IanVaughan/b7b3301270c611aaf74a to your computer and use it in GitHub Desktop.
Save IanVaughan/b7b3301270c611aaf74a to your computer and use it in GitHub Desktop.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
20:55 1.392 3.312 5.017 12.094 1268.000 1144.000 0.000 28.000 26.000 17.000 32.00 C 20%
21:00 1.040 3.296 5.017 12.033 1092.000 1126.000 0.000 26.000 36.000 15.500 87.00 C 80%
21:05 1.040 3.296 5.017 12.033 1264.000 1126.000 0.000 28.000 42.000 17.375 91.00 C 80%
21:10 1.040 3.296 5.017 12.033 1347.000 1128.000 0.000 29.000 44.000 17.500 93.00 C 80%
21:15 1.392 3.280 4.966 12.094 1490.000 1130.000 0.000 31.000 45.000 22.500 94.00 C 80%
21:20 1.040 3.280 5.017 12.033 1493.000 1130.000 0.000 31.000 46.000 20.000 94.00 C 80%
21:25 1.040 3.280 5.017 12.033 1493.000 1130.000 0.000 31.000 46.000 19.500 94.00 C 80%
21:30 1.040 3.296 5.017 12.033 1500.000 1132.000 0.000 31.000 46.000 19.625 94.00 C 80%
21:35 1.040 3.280 5.017 12.094 1591.000 1132.000 0.000 32.000 47.000 20.000 94.00 C 80%
21:40 1.040 3.280 5.017 12.094 1607.000 1134.000 0.000 32.000 47.000 20.000 94.00 C 80%
21:45 1.040 3.296 4.966 12.094 1607.000 1134.000 0.000 32.000 47.000 20.750 94.00 C 80%
21:50 1.040 3.296 5.017 12.033 1607.000 1132.000 51923.000 32.000 47.000 20.000 94.00 C 80%
21:55 1.040 3.296 5.017 12.094 1607.000 1134.000 10074.000 32.000 47.000 21.000 94.00 C 80%
22:00 1.040 3.296 5.017 12.094 1610.000 1132.000 225000.000 32.000 47.000 20.875 94.00 C 80%
22:05 1.040 3.280 5.017 12.094 1610.000 1132.000 225000.000 32.000 47.000 20.875 94.00 C 80%
22:10 1.040 3.280 5.017 12.033 1610.000 1132.000 0.000 32.000 47.000 20.625 94.00 C 80%
22:15 1.040 3.280 5.017 12.033 1610.000 1134.000 675000.000 32.000 47.000 20.500 94.00 C 80%
22:20 1.040 3.280 5.017 12.094 1569.000 1134.000 225000.000 31.000 47.000 20.000 94.00 C 80%
22:25 1.040 3.280 5.017 12.033 1607.000 1134.000 225000.000 32.000 47.000 20.000 94.00 C 80%
22:30 1.040 3.296 5.017 12.094 1610.000 1132.000 0.000 32.000 47.000 20.500 94.00 C 80%
22:35 1.040 3.296 5.017 12.094 1607.000 1132.000 225000.000 32.000 47.000 21.000 94.00 C 80%
22:40 1.040 3.280 5.017 12.033 1610.000 1134.000 0.000 32.000 47.000 20.750 94.00 C 80%
22:45 1.392 3.280 5.017 12.033 1607.000 1134.000 56250.000 32.000 47.000 20.000 94.00 C 80%
22:50 1.040 3.280 5.017 12.033 1610.000 1130.000 0.000 32.000 47.000 21.375 94.00 C 80%
22:55 1.040 3.296 5.017 12.094 1610.000 1132.000 0.000 32.000 47.000 20.000 94.00 C 80%
23:00 1.040 3.312 5.017 12.094 1614.000 1134.000 225000.000 32.000 48.000 21.000 94.00 C 80%
23:05 1.040 3.296 5.017 12.033 1610.000 1136.000 225000.000 32.000 48.000 21.250 94.00 C 80%
23:10 1.040 3.280 5.017 12.033 1610.000 1134.000 0.000 32.000 47.000 20.750 94.00 C 80%
23:15 1.040 3.280 5.017 12.033 1607.000 1134.000 45000.000 32.000 47.000 20.500 94.00 C 80%
23:20 1.040 3.280 5.017 12.094 1614.000 1132.000 0.000 32.000 47.000 21.000 94.00 C 80%
23:25 1.040 3.296 5.017 12.094 1708.000 1134.000 675000.000 33.000 48.000 20.500 94.00 C 80%
23:30 1.040 3.280 5.017 12.094 1610.000 1134.000 337500.000 32.000 47.000 20.500 94.00 C 80%
23:35 1.040 3.296 5.017 12.094 1650.000 1130.000 0.000 32.000 48.000 21.000 94.00 C 80%
23:40 1.040 3.280 4.966 12.033 1614.000 1134.000 225000.000 32.000 48.000 21.000 94.00 C 80%
23:45 1.040 3.280 4.966 12.033 1674.000 1134.000 0.000 33.000 47.000 21.125 94.00 C 80%
23:50 1.040 3.296 5.017 12.094 1679.000 1134.000 225000.000 33.000 48.000 21.500 94.00 C 80%
23:55 1.040 3.296 5.017 12.094 1717.000 1134.000 0.000 33.000 48.000 21.500 94.00 C 80%
#IP="$(curl -s icanhazip.com)"
#curl --data "ip=$IP" http://gentle-garden-9807.herokuapp.com/update
curl http://my-config.herokuapp.com/aabbcc/update
#!/bin/bash
wget -q --tries=10 --timeout=20 http://google.com
if [[ $? -eq 0 ]]; then
echo "Online"
else
beep -f 1170 -l 650 -n -f 650 -l 500
fi
rm index.html
{
"pools" : [
{
"url": "stratum+tcp://eu-2.liteguardian.com:3333",
"user": "IanVaughan.miner",
"pass": "ltc"
}
],
"intensity" : "20",
"worksize" : "512",
"thread-concurrency" : "32765",
"gpu-engine" : "1000",
"gpu-memclock" : "1500",
"gpu-powertune" : "20",
"gpu-threads" : "1",
"lookup-gap" : "2",
"gpu-fan" : "70-80",
"scrypt" : true,
"kernel-path" : "/usr/local/bin",
"api-port" : "4001",
"api-listen" : true,
"api-network" : true,
"api-allow" : "W:127.0.0.1,192.168.1.0/24"
}
#!/bin/bash
# atk0110-acpi-0
# Adapter: ACPI interface
# Vcore Voltage: +1.04 V (min = +0.85 V, max = +1.60 V)
# +3.3 Voltage: +3.33 V (min = +2.97 V, max = +3.63 V)
# +5 Voltage: +4.97 V (min = +4.50 V, max = +5.50 V)
# +12 Voltage: +11.97 V (min = +10.20 V, max = +13.80 V)
# CPU FAN Speed: 1259 RPM (min = 600 RPM, max = 7200 RPM)
# CHASSIS FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
# POWER FAN Speed: 0 RPM (min = 600 RPM, max = 7200 RPM)
# CPU Temperature: +28.0°C (high = +60.0°C, crit = +95.0°C)
# MB Temperature: +34.0°C (high = +45.0°C, crit = +75.0°C)
#
# k10temp-pci-00c3
# Adapter: PCI adapter
# temp1: +19.0°C (high = +70.0°C)
# (crit = +99.5°C, hyst = +97.5°C)
#
# atk0110-acpi-0
# Adapter: ACPI interface
# Vcore Voltage:
# in0_input: 1.040 # in0_min: 0.850 # in0_max: 1.600
# +3.3 Voltage:
# in1_input: 3.328 # in1_min: 2.970 # in1_max: 3.630
# +5 Voltage:
# in2_input: 4.966 # in2_min: 4.500 # in2_max: 5.500
# +12 Voltage:
# in3_input: 11.972 # in3_min: 10.200 # in3_max: 13.800
# CPU FAN Speed:
# fan1_input: 1328.000 # fan1_min: 600.000 # fan1_max: 7200.000
# CHASSIS FAN Speed:
# fan2_input: 0.000 # fan2_min: 600.000 # fan2_max: 7200.000
# POWER FAN Speed:
# fan3_input: 0.000 # fan3_min: 600.000 # fan3_max: 7200.000
# CPU Temperature:
# temp1_input: 29.000 # temp1_max: 60.000 # temp1_crit: 95.000
# MB Temperature:
# temp2_input: 34.000 # temp2_max: 45.000 # temp2_crit: 75.000
#
# k10temp-pci-00c3
# Adapter: PCI adapter
# temp1:
# temp1_input: 20.000
# temp1_max: 70.000
# temp1_crit: 99.500
# temp1_crit_hyst: 97.500
#
DATE=`date +%Y-%m-%d`
TIME=`date +%H:%M`
result=`sensors -u | egrep "_input" | sed 's/.*: /,/' | tr -d '\n'`
export DISPLAY=:0
temp=`/usr/bin/aticonfig --odgt | grep "Temperature" | sed 's/^.*- //'`
fan=`/usr/bin/aticonfig --pplib-cmd "get fanspeed 0" | grep "Fan Speed" | sed 's/^.*: //'`
echo "$TIME,$result,$temp,$fan" >> "/home/ian/mining/scripts/monitoring/$DATE-monitor.csv"
#!/bin/bash
beep -f100 -n -f200 -n -f300 -n -f400 -n -f500
sleep 60
/usr/bin/screen -dmS mining_screen /home/ian/mining/scripts/launchers/start_mining.sh
beep -f500 -n -f400 -n -f300 -n -f200 -n -f100
#!/bin/bash
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_HEAP_SIZE=100
/opt/cgminer/cgminer --config /home/ian/mining/scripts/config/ltccoin.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment