A MagicMirror module to track miner rig statistics for Ethereum miners on ethermine.org
cd MagicMirror
cd modules
git clone https://github.com/AjaxCarroway/MMM-ethermine
Add MMM-ethermine
module to the config.js
file in MagicMirror:
modules: [
{
module: 'MMM-ethermine',
position: 'top_left',
config: {
updateInterval: 30000,
address: "0x8E5976d8A259fd1D4160c7E1193192C0B7885771",
}
},
]
Option | Description |
---|---|
updateInterval |
Rate at which module updates (also determines speed of fade in/fade out) If you want to increase the updateInterval, you have to also increase the time of fadeInTable and fadeInShort in ethermine.css for the fade to work properly. For instance, if you changed updateInterval to 40000, then you would need to change the animation for fadeInTable to “fadeIn 40s linear infinite” Also fadeInShort’s animation would be changed to “fadeIn 38s linear infinite” |
address |
Ethereum address that is used to retrieve information about the miners working for it on https://api.ethermine.org/ |
I am a novice at MagicMirror development, so the itself code isn't very clean. Also the fade-in fade-out effect is weird for the first iteration.
If you think I am deserving of money, you can donate to my ethereum address: 0xAD48Bae6795b8B2c1F6CA65473EF726cd7748d29
I based the API request code off of NeilDuToit92's MMM-ethereum module.