Thank you for the script. I've been looking for something like this.
This will help me while I'm continue tweaking OC to optimize my hash rate.
Can I suggest to add a few things?
- Adding color coded on the data
- Adding temperature, something like (Total GPU Power Usage: 257 W , Total Speed: 599 Sol/s , Average Temp: 74C , Total Shares: 49 , Total Rejected: 0) or (Total GPU Power Usage: 257 W , Total Speed: 599 Sol/s , Total Shares: 49 , Total Rejected: 0 , Temp 74C 72C 72C 73C 71C) -> ascending order of GPU0,1,2,3,4,5
[update]
Apparently, when I start ewbf_monitor.bat, it shows me the summary but also halt my ewbf miner. I thought, maybe because I started it with ewbf already running. So, I closed ewbf and tried running this tool, it'll open 2 command prompt but failed to start miner. Tried couple of time but still won't work so went back with the usual way of running EWBF.
FYI, I'm normally use EWBF miner.cfg and it can select next pool in case one fail.
Hello!
Of course any suggestion is welcome. I'm going to add this feature.
For your issue: there is no problem if ewbf miner is already runing. The app will recognize it. Yes it will open two command promt. One for monitor and one for the miner(if it is not running). So what happend when your miner is halt ? Are you wait a few second ? Because it takes some time to refres the data from the miner. What shows the monitor command window ? Are you enabled the api in ewbf ? In case of error the monitor tool create a log file. Could you share it with me ?
I can see the script fetches data from EWBF and it looks fine. It just that after that my EWBF stopped responding and later in your script it shows this:
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at ewbf_miner_json_restarter.utils.JsonParser.getStatFromMiner(JsonParser.java:35)
at ewbf_miner_restarter.CheckMiner.run(CheckMiner.java:31)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I will try the script again and let you know.
Right now, I'm using sverox's script which so far seems to work fine. (
https://forum.z.cash/t/auto-restart-possible/15772/55)
Another suggestion for you is instead to offer just email notification, why not give option to either use email or telegram or both?