Cryptocurrency Mining Rig Physical Watchdog. Uses a Raspberry Pi hard wired onto the motherboard of a mining rig and a switch to reset if communication is lost with Claymore. Also includes a TUI to do manual resets.
- Raspberry Pi 2 Model B
- Any Raspberri Pi will do, although the GPIO pin numbers may be different.
- 4 Channel DC 5V Relay Module
- This allows the Pi to safely "press" the power button on a motherboard.
- Iot Relay
- Enables the Pi to powercycle all the hardware components (basically, lets the Pi "flip" the surge protector switch).
- Raspbian installed on the Pi.
- The GPIO Utility installed on the Pi.
- Login to the pi using the pi user.
- Add the pi user to the crontab group.
- Clone/or extract zip this repo under /home/pi.
git clone https://github.com/spardue/mining-rig-watchdog.git
- Run the setup script to setup variables.
cd mining-rig-watchdog
./setup.sh
- Add the following cron jobs by running
crontab -e
:
*/15 * * * * /home/pi/mining-rig-watchdog/watchdog
* 0 0 * * * /home/pi/mining-rig-watchdog/reset