Closed sergioclemente closed 6 years ago
Very nice @sergioclemente thanks.
All my work is in my github @anselal
To use cgminer-api's restart command did you have to edit the config file of the miner via ssh? I found that this is the only way. I have tested many more commands like changing pool priorities which is working great !!!
Correct. I send a restart command through the CGMiner API, for bitmain I have to edit the ssh file manually. For Avalon, they provide a way through the user interface.
Did you add support for the Avalon using the snippet i sent you ? I hope it helped.
Yes indeed. I've reverse engineer some code from avalon7.cc and also looking at their documentation of error codes.
I will add a login screen using the Flask-Login extension
This was ridiculously easy with the flask-login extension. For now I configure the username and password through env variables to avoid displaying it at the cli.
I would like to see the email daemon code and compare it with my implementation
As I said earlier its all available that particular part is here: https://github.com/sergioclemente/antminer-monitor/blob/refactor/app/views/antminer.py#L190
I didn't implement muting an alert yet. I have a flaky miner and sometimes I wanted to mute a miner for a couple of hours until I can get to it.
Hi,
I would also try the "e-mail" feature but the above link give me "Error 404"
Robert
I am waiting for @anselal submit the latest changes so i can try merge into his fork, right now the code is already pretty different and a bit incompatible. I've put a gist with the part you are interested
https://gist.github.com/sergioclemente/201bb6f5abffe4c792c897fdf9a69978
Closing this for now. Again I am open to migrate features if others find useful
Let me know if others would find useful and we can discuss how to integrate into @anselal's version:
1) Show fan percentage if provided by the miner 2) Show clock frequency of the miner 3) Restart (By using cgminer api) 4) Verbose section for all messages in the miner 5) Daemon that checks for errors every 5min and sends a mail if something is found 6) Support for Avalon 741 7) Basic authentication that prompts for user/password when getting into the page