Monitor your crypto mining hardware temperatures and hash rates with the ability to restart the rig remotely as well as Alexa integration.
Things used in this project
Story
Crypto Miner
Crypto Miner is a companion system that runs alongside your cryptocurrency mining rig. The system allows you to monitor the temperatures of your hardware, hashing rate and also gives you the ability to reset the power supply on the rig. All these features are integrated with Alexa for voice interaction.
The temperatures are monitored using an Arduino MKR1000 with five temperature probes. This setup runs a sketch that posts the readings of each probe to a local server running on a Raspberry Pi.
I have an Express web server running on the pi which receives readings from the sensors and saves them to a RethinkDB instance. The web server acts as an API to provide data to the Alexa skill for voice interface. The user may also visit a dashboard running on the Pi that is also exposed.
The dashboard provides the user with their rig information like name and current hash rate. It also provides a real time graph of the latest readings.
Dashboard
The user can click through on any of the readings to see the full history for each of the temperatures.
Full hash rate history
Zoomed hash rate history
Alexa
This hardware has a companion Alexa skill called Crypto Miner. You can use Crypto Miner to get your rigs current hash rate and temperatures.
- Alexa, ask Crypto Miner, what is the hash rate of Gill?
Where Gill is the name of your mining rig.
You can also ask for temperatures based on name.
- Alexa, ask Crypto Miner, what is the temperature of the radiator?
- Alexa, ask Crypto Miner, what is the temperature of the video cards?
- Alexa, ask Crypto Miner, what is the temperature of the case?
You may also restart the rig by name.
- Alexa, ask Crypto Miner to reset rig Gill.
Demo
Demo of Crypto Miner
High Level Flow
I’m using the Arduino MKR1000 to post all the sensor data to the Raspberry Pi which saves the readings to a RethinkDB instance. I have an Alexa skill running on the AWS lambda service that Alexa will use to request data from the mining rigs. The skill sends a call to the Pi and it returns the latest readings or hash rates. The Pi also acts as a web server to deliver a dashboard with a web socket connection to keep the data streaming in.
Mining Rig Hardware
My mining rig consists of two water cooled 290x GPUs which are currently mining Ethereum. I have a temperature probe taped to the backplate of each of the graphics cards, one near the PSU inside the case, one on the exhaust of the radiator and one probe for room temperature. The probes are all wired directly to the same pin on the MKR1000 and use OneWire protocol.