anselal / antminer-monitor

Cryptocurrency ASIC mining hardware monitor using a simple web interface
GNU General Public License v3.0
229 stars 146 forks source link

Add a notification on zero hashrate #108

Open ClaudiuPRO opened 6 years ago

ClaudiuPRO commented 6 years ago

Hi Anselal,

I've noticed that I get rows highlighted (in red) only if Chips are down. But in my case the chips are ok, but the miner is not working (not mining). Can you set also this feature to mark in red if the miner is not doing the hashrate specified? 2018 06 22 - anselal s9 no hashing

errand commented 6 years ago

Hello @ClaudiuPRO ! I'm sure @anselal is busy creating antminer-monitor V2, so if you don't mind here is the code snippet to fix the issue: if ghs5s == 0: error_message = "[ERROR] '{}' Miner is not working '{}'.".format(Xs, miner.ip) logger.error(error_message) flash(error_message, "error") errors = True miner_errors.update({miner.ip: error_message}) Put it into the app\views\antminer.py and upload to the server. Hope this helps ;)

anselal commented 6 years ago

@ClaudiuPRO This is a really strange case that the miner is showing zero hashrate.

Thank you @errand for the solution. I will fix this in the next release

anselal commented 6 years ago

I was in the middle of creating per miner settings which include custom hashrate alerts for each miner. You can see my tweet at https://twitter.com/AntminerMonitor/status/968638542078513152