Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: anselal on October 11, 2017, 05:47:49 PM



Title: Antminer Monitor
Post by: anselal on October 11, 2017, 05:47:49 PM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.
If you would like to contribute you can do so by reporting any error, request new features or create pull requests.

I am very excited about this project. I hope it will help you monitor our miners, especially if you own a lot of them.

Happy mining !!!


UPDATE 23/01/2018:

Twitter: https://twitter.com/AntminerMonitor


Title: Re: Antminer Monitor
Post by: memphis88 on October 18, 2017, 04:20:33 AM
Thx for soft.
But will need more function for more interest to your asic monitor.


Title: Re: Antminer Monitor
Post by: anselal on October 18, 2017, 05:31:37 AM
Thx for soft.
But will need more function for more interest to your asic monitor.

Hey,

thank you for the interest in my app. You can always open an issue on github and suggest new features, report errors or contribute on the codebase if you want. The app is still in development and there are more features to come !!


Title: Re: Antminer Monitor
Post by: polymer_city on October 24, 2017, 10:47:23 AM
I'm working on something similar in WPF.

How are you getting temperature stats for S9's?

I just get 0 on my S9


Title: Re: Antminer Monitor
Post by: anselal on October 24, 2017, 10:49:46 AM
I'm working on something similar in WPF.

How are you getting temperature stats for S9's?

I just get 0 on my S9

You can check the code at https://github.com/anselal/antminer-monitor


Title: Re: Antminer Monitor
Post by: polymer_city on October 24, 2017, 11:45:41 AM
cheers bro!

Found it!!

Code:
//From this
//output = sr.ReadToEnd().Replace("\x00", "");

//To this
output = sr.ReadToEnd().Replace("\x00", "").Replace("}{", "},{");


Title: Re: Antminer Monitor
Post by: anselal on October 24, 2017, 11:46:56 AM
cheers bro!

Found it!!

Code:
//From this
//output = sr.ReadToEnd().Replace("\x00", "");

//To this
output = sr.ReadToEnd().Replace("\x00", "").Replace("}{", "},{");

Open Source software rules !!!!


Title: Re: Antminer Monitor
Post by: anselal on October 24, 2017, 11:49:10 AM
cheers bro!

Found it!!

Code:
//From this
//output = sr.ReadToEnd().Replace("\x00", "");

//To this
output = sr.ReadToEnd().Replace("\x00", "").Replace("}{", "},{");

Yeah, it seems that there is an error in the JSON produced by cgminer. This is a workaround (hack) that I had to do in order to be able to parse the output !!!


Title: Re: Antminer Monitor
Post by: polymer_city on October 24, 2017, 11:55:02 AM
I knew it was simple, as it couldn't deserialize that stat command.

I was desperate to get the temps, as im making a monitor to control 27 D3's!

I have a selenium tool i made to change pools and fans and frequency's.

But I'm building an API version for GPU and ASIC right now.

SSH tool, network scan (need to finish port scanner)

If you need a hand let me know. :)

https://image.prntscr.com/image/4qtNJMyOSDit1Bxvi3Cp2g.png

https://image.prntscr.com/image/0bNC28UPQ2WVSBrDmAIc_w.png

https://image.prntscr.com/image/Gvipg24LTlaM_fUFbvx_Rw.png


Title: Re: Antminer Monitor
Post by: anselal on October 24, 2017, 11:58:46 AM
Thanks, you are welcome to contribute if yo want. I am currently testing the remote reboot/shutdown functionality and after that I want to add a network scan feature like yours, as requested by some users. More features to come. If you like my app give it a hands up !!!


Title: Re: Antminer Monitor
Post by: polymer_city on October 24, 2017, 12:11:03 PM
I don't know any python really...

Keep saying i will delve into it.. just havent got the time!

Good luck with your project :)


Title: Re: Antminer Monitor
Post by: Drachi on November 28, 2017, 10:35:28 AM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.

Hi Anselal,

Really like what you've done with this app.
I was wondering if there is anyway to edit the Hyperlink that is produced by adding the ip?

It is a local IP but I want to hyperlink a public ip.

So the text on the page is still 192.168.xxx.xxx but the hyperlink is to 212.xxx.xxx.xxx:81

Hopefully this isn't to confusing.
And hopefully possible.


Title: Re: Antminer Monitor
Post by: anselal on November 28, 2017, 10:39:20 AM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.

Hi Anselal,

Really like what you've done with this app.
I was wondering if there is anyway to edit the Hyperlink that is produced by adding the ip?

It is a local IP but I want to hyperlink a public ip.

So the text on the page is still 192.168.xxx.xxx but the hyperlink is to 212.xxx.xxx.xxx:81

Hopefully this isn't to confusing.
And hopefully possible.

The app communicates with the cgminer api at a default port and not at the web's interface port (80). So just add the ip of the miner and you should be ready to monitor your miners.
Let me know if you have other questions.


Title: Re: Antminer Monitor
Post by: Drachi on November 28, 2017, 04:11:45 PM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.

Hi Anselal,

Really like what you've done with this app.
I was wondering if there is anyway to edit the Hyperlink that is produced by adding the ip?

It is a local IP but I want to hyperlink a public ip.

So the text on the page is still 192.168.xxx.xxx but the hyperlink is to 212.xxx.xxx.xxx:81

Hopefully this isn't to confusing.
And hopefully possible.

The app communicates with the cgminer api at a default port and not at the web's interface port (80). So just add the ip of the miner and you should be ready to monitor your miners.
Let me know if you have other questions.

Hi Anselal,

That wasn't what I was getting at but I've found what I wanted.
The html file.
I'm trying the change the hyperlink on the webpage to go from a local IP to Public IP, but as I have the HTML file I can figure the rest out.

Thanks for such a swift reply.


Title: Re: Antminer Monitor
Post by: anselal on November 29, 2017, 06:43:47 AM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.

Hi Anselal,

Really like what you've done with this app.
I was wondering if there is anyway to edit the Hyperlink that is produced by adding the ip?

It is a local IP but I want to hyperlink a public ip.

So the text on the page is still 192.168.xxx.xxx but the hyperlink is to 212.xxx.xxx.xxx:81

Hopefully this isn't to confusing.
And hopefully possible.

The app communicates with the cgminer api at a default port and not at the web's interface port (80). So just add the ip of the miner and you should be ready to monitor your miners.
Let me know if you have other questions.

Hi Anselal,

That wasn't what I was getting at but I've found what I wanted.
The html file.
I'm trying the change the hyperlink on the webpage to go from a local IP to Public IP, but as I have the HTML file I can figure the rest out.

Thanks for such a swift reply.

No problem, but I still don't understand what you are trying to do. Pm me and we will figure this out ;)


Title: Re: Antminer Monitor
Post by: mikespax on December 10, 2017, 05:00:39 PM
Could you do a step by step of how to run this for dummies? I'm not great with all this command line on mac.


Title: Re: Antminer Monitor
Post by: anselal on December 10, 2017, 06:15:40 PM
Could you do a step by step of how to run this for dummies? I'm not great with all this command line on mac.

I am finalizing a more detailed installation guide. I hope it will help. I think i will push it tomorrow. If you want help we can teamviewer, just pm


Title: Re: Antminer Monitor
Post by: qingsha3 on December 11, 2017, 11:03:30 AM
Thanks, you are welcome to contribute if yo want


Title: Re: Antminer Monitor
Post by: anselal on December 11, 2017, 11:05:49 AM
Thanks, you are welcome to contribute if yo want

Thnx, I will contribute to my own project :P


Title: Re: Antminer Monitor
Post by: hossamelsawy on December 12, 2017, 06:47:46 PM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.
If you would like to contribute you can do so by reporting any error, request new features or create pull requests.

I am very excited about this project. I hope it will help you monitor our miners, especially if you own a lot of them.

Happy mining !!!
please can you help me to know how can i install it


Title: Re: Antminer Monitor
Post by: anselal on December 12, 2017, 06:56:19 PM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.
If you would like to contribute you can do so by reporting any error, request new features or create pull requests.

I am very excited about this project. I hope it will help you monitor our miners, especially if you own a lot of them.

Happy mining !!!
please can you help me to know how can i install it

If you followed the instructions but couldn't make the app run pm me


Title: Re: Antminer Monitor
Post by: catalkasik8 on December 14, 2017, 09:40:38 PM
Hello there,

I just want to share with you an "Antminer Monitor" I am developing. You can check the source at https://github.com/anselal/antminer-monitor
It is based on Flask, a python web micro-framework. Currently the app support miner model L3+, S7, S9, D3. The features include keeping an eye on temperatures, fan speed, hashrate, total hashrate grouped by model.
There are in-app notifications in case of a problem. Every problem is logged in a file. Currently the log file is not accessible vie the web interface, but will be available in feature releases.
Another requested feature is the ability to reboot/power off the miner, which will soon available (currently working on it)
You can find more information on the projects page at github.

Hi Anselal,

Really like what you've done with this app.
I was wondering if there is anyway to edit the Hyperlink that is produced by adding the ip?

It is a local IP but I want to hyperlink a public ip.

So the text on the page is still 192.168.xxx.xxx but the hyperlink is to 212.xxx.xxx.xxx:81

Hopefully this isn't to confusing.
And hopefully possible.

The app communicates with the cgminer api at a default port and not at the web's interface port (80). So just add the ip of the miner and you should be ready to monitor your miners.
Let me know if you have other questions.

Hi Anselal,

That wasn't what I was getting at but I've found what I wanted.
The html file.
I'm trying the change the hyperlink on the webpage to go from a local IP to Public IP, but as I have the HTML file I can figure the rest out.

Thanks for such a swift reply.

exactly same think what im looking for. Anselal says, you can not go to public ip. but you say, from the html file(template file which is located "..\antminer-monitor-master\app\templates" can go to public ip, then you can check yuour miners status REMOTLY. Im trying it but I could not. can you help me please.


Title: Re: Antminer Monitor
Post by: anselal on December 15, 2017, 06:49:19 AM
The app is supposed to run on a local LAN, so all the ip address you add are local ip addresses. For every miner you add, the ip address of that miner is rendered as a hyperlink so you can access your miner's web interface more quickly.
If you are monitoring outside your local LAN e.g. via port forwarding, you won't be able to access the miner's interface. A workaround is to setup a VPN server or connecting to the pc running the #AntminerMonitor e.g. via teamviewer


Title: Re: Antminer Monitor
Post by: dinotom on December 15, 2017, 09:50:32 PM
I already have Python 3.6.3 installed on my PC as I am starting to learn Python (Went from VB.net to C#, now trying to learn Python and C++). I saw your antminer monitor, looks great and I'd love to use it as i run a bunch of S9's and L3's.

Will it work on 3.6.3? I see you spec 2.7.3?

I'd love some help getting it installed and configured once I know if my Python version is good.


Title: Re: Antminer Monitor
Post by: anselal on December 15, 2017, 10:51:44 PM
No, it won't work with python 3 since there are some changes to the socket module which I haven't merged yet, although I have tested them and they work.
You need to install python 2 and I think that you have to uninstall python 3. I have seen it not working when both versions were installed.
Try to follow the instructions and if you still have problems just pm


Title: Re: Antminer Monitor
Post by: catalkasik8 on December 16, 2017, 12:01:23 AM
The app is supposed to run on a local LAN, so all the ip address you add are local ip addresses. For every miner you add, the ip address of that miner is rendered as a hyperlink so you can access your miner's web interface more quickly.
If you are monitoring outside your local LAN e.g. via port forwarding, you won't be able to access the miner's interface. A workaround is to setup a VPN server or connecting to the pc running the #AntminerMonitor e.g. via teamviewer

Hi Anselal,
Thank you very much for your quick response. Additionally I want to appreciate you that creating a helpfull tools for world wide coin miners  for free. Im not an expert coder of python, but Im coding same tool in visual basic now, then I gonna be published to github soon for miners for free. It will be very usefull toll for the mid or long range mining farms in the future, I think. Hovewer, remote control of farm status will be very important for investors. According this, you are kindly requested to work on this issue. If you done this, also you will help all of miners of the World.

Thanks a lot,

gultekin  


Title: Re: Antminer Monitor
Post by: anselal on December 16, 2017, 07:29:03 AM
Thank you for your kind words. We have implemented some very nice features like reboot/save shutdown etc.. We are currently testing those features and we hope we can release them soon.

I chose python so the app can be platform independent. The app has been tested on Windows, Linux and Mac and runs without any errors. Even more, since the app is web based it is easily accessible remotely.


Title: Re: Antminer Monitor
Post by: Hotcooler on December 25, 2017, 03:04:27 AM
The app is supposed to run on a local LAN, so all the ip address you add are local ip addresses. For every miner you add, the ip address of that miner is rendered as a hyperlink so you can access your miner's web interface more quickly.
If you are monitoring outside your local LAN e.g. via port forwarding, you won't be able to access the miner's interface. A workaround is to setup a VPN server or connecting to the pc running the #AntminerMonitor e.g. via teamviewer

Cheers for the software Anselal.

As another suggestion, one can proxy/reverse proxy them through some http server, say apache with mod_proxy. One can also run monitor through the proxy to add SSL, and authorization. Though I'm either bad at it, or I dont understand something, thus had to create couple of rules and modify default root of the web app to get it to work properly..


Title: Re: Antminer Monitor
Post by: anselal on December 31, 2017, 01:00:58 PM
The app is supposed to run on a local LAN, so all the ip address you add are local ip addresses. For every miner you add, the ip address of that miner is rendered as a hyperlink so you can access your miner's web interface more quickly.
If you are monitoring outside your local LAN e.g. via port forwarding, you won't be able to access the miner's interface. A workaround is to setup a VPN server or connecting to the pc running the #AntminerMonitor e.g. via teamviewer

Cheers for the software Anselal.

As another suggestion, one can proxy/reverse proxy them through some http server, say apache with mod_proxy. One can also run monitor through the proxy to add SSL, and authorization. Though I'm either bad at it, or I dont understand something, thus had to create couple of rules and modify default root of the web app to get it to work properly..

Sorry for the delayed reply. In order to setup SSL you will have to run the app with gunicorn and proxy that on nginx or apache. I prefer nginx since it is easier to use with gunicorn


Title: Re: Antminer Monitor
Post by: anselal on January 08, 2018, 02:19:35 PM
Quote
The app is supposed to run on a local LAN, so all the ip address you add are local ip addresses. For every miner you add, the ip address of that miner is rendered as a hyperlink so you can access your miner's web interface more quickly.

I've sent a pull request to allow remote management. The idea is that you add port forward to the miners in your router and use this address in the remote host port configuration while you add the miner. The webapp will still be running in the LAN and be able to connect to the RPC ports of the miners and you would be able to access the miners remotely to do anything.

Hi there,

First of all thank you for taking the time to contributing to my little project, I really appreciate it.
I saw your pull request but didn't had the time to reply earlier. I will reply to you at Github !!!


Title: Re: Antminer Monitor
Post by: BertTOC on January 10, 2018, 11:15:38 PM
Hey!

Thank you for such great software.  ;D I have small issue, I cant and I dont know how to install this. Could you help with step by step install guide. I followed what you put in the Github but keep getting Systax error and Stgin kind of error.  ???


Title: Re: Antminer Monitor
Post by: adstek on January 11, 2018, 02:34:43 AM
This looks awesome, I've tried to install it, but I can't seem to figure out how to do it, could anyone help me?
I get error "No module maned pip" when I type in "python -m pip install -r requirements.txt" ???


Title: Re: Antminer Monitor
Post by: anselal on January 11, 2018, 06:25:38 AM
This looks awesome, I've tried to install it, but I can't seem to figure out how to do it, could anyone help me?
I get error "No module maned pip" when I type in "python -m pip install -r requirements.txt" ???

I assume you are working on a Windows machine ? Uninstall python and reinstall the latest Python2.7 version https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi


Title: Re: Antminer Monitor
Post by: adstek on January 11, 2018, 10:07:12 AM
This looks awesome, I've tried to install it, but I can't seem to figure out how to do it, could anyone help me?
I get error "No module maned pip" when I type in "python -m pip install -r requirements.txt" ???

I assume you are working on a Windows machine ? Uninstall python and reinstall the latest Python2.7 version https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi

Iím using Ubuntu, and I have python 2.7


Title: Re: Antminer Monitor
Post by: anselal on January 11, 2018, 10:29:55 AM
This looks awesome, I've tried to install it, but I can't seem to figure out how to do it, could anyone help me?
I get error "No module maned pip" when I type in "python -m pip install -r requirements.txt" ???

I assume you are working on a Windows machine ? Uninstall python and reinstall the latest Python2.7 version https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi

Iím using Ubuntu, and I have python 2.7

Install pip using the following command: `sudo apt-get install python-pip` ;)


Title: Re: Antminer Monitor
Post by: stantpro on January 11, 2018, 11:05:20 AM
Very impressive project.We want to know using this Flask, a python web micro-framework app,
is it compatible with regular operating systems as Windows, Linux, Mac, Unix, etc or does it select
specific operating systems.How about the processor speed required and minimum storage requirements?



Title: Re: Antminer Monitor
Post by: anselal on January 11, 2018, 11:09:43 AM
Very impressive project.We want to know using this Flask, a python web micro-framework app,
is it compatible with regular operating systems as Windows, Linux, Mac, Unix, etc or does it select
specific operating systems.How about the processor speed required and minimum storage requirements?



Thank you very much for your kind words. This is tested to run on Windows, Linux, and Mac. It should run flawless on all OSs that support python ;)
I run this app on an old RaspberryPi model B, 1 core CPU, 512MB RAM and it runs very well. It runs a bit better on a RaspberryPi 3 meaning it loads the stats a bit quicker.
I think it can run on older machines too :D
If you try it on older machines I would appreciate any feedback


Title: Re: Antminer Monitor
Post by: adstek on January 11, 2018, 06:24:14 PM
This looks awesome, I've tried to install it, but I can't seem to figure out how to do it, could anyone help me?
I get error "No module maned pip" when I type in "python -m pip install -r requirements.txt" ???

I assume you are working on a Windows machine ? Uninstall python and reinstall the latest Python2.7 version https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi

Iím using Ubuntu, and I have python 2.7

Install pip using the following command: `sudo apt-get install python-pip` ;)

ah lol, thanks!  ;D


Title: Re: Antminer Monitor
Post by: ralf007at on January 31, 2018, 08:30:28 AM
Hello Anselal,

thank you for your great software - i use it since a few weeks - today i installed your Version 0.3.0 (before running 0.2.0) then i added a T9 Miner - since then i only get Errors:

Code:
127.0.0.1 - - [31/Jan/2018 09:25:07] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\flask\app.py", line 1997, in __call__
    return [Suspicious link removed]gi_app(environ, start_response)
  File "C:\Python27\lib\site-packages\flask\app.py", line 1985, in wsgi_app
    response = self.handle_exception(e)
  File "C:\Python27\lib\site-packages\flask\app.py", line 1540, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\Python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\Python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\Python27\app\views\antminer.py", line 95, in miners
    total_hash_rate_per_model[miner.model.model] += float(str(ghs5s))
KeyError: u'T9'

can you help me on this?

thank you!



(Moderator's note: This post was edited by frodocooper to use code tags for the log.)


Title: Re: Antminer Monitor
Post by: anselal on January 31, 2018, 08:39:04 AM
...

Hi there,

I updated the installation and upgrade instructions. This is caused because you didn't run the update script. Run `python update_db.py` and you are ready to go !!!



(Moderator's note: This post was edited by frodocooper to trim the quote from ralf007at.)


Title: Re: Antminer Monitor
Post by: imtnc on January 31, 2018, 09:15:07 PM
Hi there,

I tried runing the software and this is what i get? :-\

0\app\__init__.py", line 1, in <module>
    from flask import Flask
ImportError: No module named flask

any idea?


Title: Re: Antminer Monitor
Post by: imtnc on January 31, 2018, 09:36:22 PM
Code:
File "C:\Python27\lib\site-packages\flask\app.py", line 1997, in __call__
return [Suspicious link removed]gi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Users\HP Server\Downloads\antminer-monitor-0.3.0\app\views\antminer.py", line 44, in miners
miners = Miner.query.all()
File "C:\Python27\lib\site-packages\sqlalchemy\orm\query.py", line 2726, in all
return list(self)
File "C:\Python27\lib\site-packages\sqlalchemy\orm\query.py", line 2878, in __iter__
return self._execute_and_instances(context)
File "C:\Python27\lib\site-packages\sqlalchemy\orm\query.py", line 2901, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 948, in execute
return meth(self, multiparams, params)
File "C:\Python27\lib\site-packages\sqlalchemy\sql\elements.py", line 269, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1060, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1200, in _execute_context
context)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1413, in _handle_dbapi_exception
exc_info
File "C:\Python27\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1193, in _execute_context
context)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\default.py", line 507, in do_execute
cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) no such table: miner [SQL: u'SELECT miner.id AS miner_id, miner.ip AS miner_ip, miner.model_id AS miner_model_id, miner.remarks AS miner_remarks \nFROM miner'] (Background on this error at: http://sqlalche.me/e/e3q8)

i did upgrade not sure whats goin on!


Title: Re: Antminer Monitor
Post by: anselal on January 31, 2018, 09:43:15 PM
Code:
File "C:\Python27\lib\site-packages\flask\app.py", line 1997, in __call__
return [Suspicious link removed]gi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Users\HP Server\Downloads\antminer-monitor-0.3.0\app\views\antminer.py", line 44, in miners
miners = Miner.query.all()
File "C:\Python27\lib\site-packages\sqlalchemy\orm\query.py", line 2726, in all
return list(self)
File "C:\Python27\lib\site-packages\sqlalchemy\orm\query.py", line 2878, in __iter__
return self._execute_and_instances(context)
File "C:\Python27\lib\site-packages\sqlalchemy\orm\query.py", line 2901, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 948, in execute
return meth(self, multiparams, params)
File "C:\Python27\lib\site-packages\sqlalchemy\sql\elements.py", line 269, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1060, in _execute_clauseelement
compiled_sql, distilled_params
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1200, in _execute_context
context)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1413, in _handle_dbapi_exception
exc_info
File "C:\Python27\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\base.py", line 1193, in _execute_context
context)
File "C:\Python27\lib\site-packages\sqlalchemy\engine\default.py", line 507, in do_execute
cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) no such table: miner [SQL: u'SELECT miner.id AS miner_id, miner.ip AS miner_ip, miner.model_id AS miner_model_id, miner.remarks AS miner_remarks \nFROM miner'] (Background on this error at: http://sqlalche.me/e/e3q8)

i did upgrade not sure whats goin on!


Well, it seems that you run the update script on a new installation where the database didnt exist. Why did you do that?

Are you sure there is a database at all ?


Title: Re: Antminer Monitor
Post by: imtnc on February 01, 2018, 10:36:25 PM
it refused to start
i tried to run the command stated in your previous post

what can be done here?


Title: Re: Antminer Monitor
Post by: anselal on February 02, 2018, 05:57:49 AM
it refused to start
i tried to run the command stated in your previous post

what can be done here?

Did you run 'python create_db.py' ?


Title: Re: Antminer Monitor
Post by: anselal on February 02, 2018, 10:31:43 AM
it is there

What do you mean by `it is there` ? Did you run it ? Please follow the instructions at https://github.com/anselal/antminer-monitor/blob/master/README.md or pm me so I can assist you


Title: Re: Antminer Monitor
Post by: tatooedsn on February 16, 2018, 08:00:26 PM
Anselal, nice software bud. If you could incorporate some sort of notification by email or sms/text of over temp or under hash speed conditions.. that would be a great tool to have in our pocket. Also, if the miners go above temp, what indication does the webpage show? Do the temps values show up in red, or does it just show a message in info section? I'll send you some bitcoins in a moment. Thanks for the work from you and your team.


Title: Re: Antminer Monitor
Post by: anselal on February 17, 2018, 02:34:39 PM
Anselal, nice software bud. If you could incorporate some sort of notification by email or sms/text of over temp or under hash speed conditions.. that would be a great tool to have in our pocket. Also, if the miners go above temp, what indication does the webpage show? Do the temps values show up in red, or does it just show a message in info section? I'll send you some bitcoins in a moment. Thanks for the work from you and your team.

Thank you for using AntminerMonitor and for the support, I really appreciate it and it keeps us going.

Email notifications are currently tested and we hope to be part of the next releases. We are currently trying to close some older issues.
In the next release we will probably see per miner settings, like temp warning/errors.
Currently the threshold is hardcoded for all miner and you get an in-app notification if the temp reaches 80 degrees Celsius, which actually raises an error and besides the notification the row of the miner turns red.

PS: I got your donation. Again, thank you very much !!!

If you want to stay updated you can follow us on twitter at https://twitter.com/AntminerMonitor


Title: Re: Antminer Monitor
Post by: ralf007at on February 20, 2018, 11:20:34 AM
Hi there,

after i added a S9-14TH i only get Error-Messages:

Code:
ValueError
ValueError: max() arg is an empty sequence

Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 1997, in __call__
return [Suspicious link removed]gi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
        # request came with the OPTIONS method, reply automatically
        if getattr(rule, 'provide_automatic_options', False) \
           and req.method == 'OPTIONS':
            return self.make_default_options_response()
        # otherwise dispatch to the handler for that endpoint
        return self.view_functions[rule.endpoint](**req.view_args)
 
    def full_dispatch_request(self):
        """Dispatches the request and on top of that performs request
        pre and postprocessing as well as HTTP exception catching and
        error handling.
File "C:\Python27\app\views\antminer.py", line 138, in miners
if max(temps) >= 80:
ValueError: max() arg is an empty sequence
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

do you have an idea?!

BR Ralf



(Moderator's note: This post was edited by frodocooper to add code tags.)


Title: Re: Antminer Monitor
Post by: anselal on February 20, 2018, 11:55:18 AM
...

Does the error fix after a refresh?  I think this is due that the app cannot retrieve the miner's temperatures for some reason. It turns out that sometimes it has to do with the socket timeout I have set (1 second).
I can tell that you are running an older version. I did some updates and moved some files around.
In your current version the file `pycgminer.py` should be located inside the `pycgminer` folder.
Please try to increase the timeout in the file `pycgminer.py` to eg. 3 seconds.

the line you should change is the following:

`sock.settimeout(1)`

just change it to:

`sock.settimeout(3)`

PS: In the latest versions the file `pycgminer.py` is moved inside the `lib` folder



(Moderator's note: This post was edited by frodocooper to trim the quote from ralf007at.)


Title: Re: Antminer Monitor
Post by: ralf007at on February 20, 2018, 12:06:20 PM
Hi there,

i changed the file - but no success - for your additional information: i checked the miner in the cgminer interface - i don't see any temperature in this miner-type - can i delete the entry out of the database?

BR Ralf


Title: Re: Antminer Monitor
Post by: anselal on February 20, 2018, 12:22:14 PM
Hi there,

i changed the file - but no success - for your additional information: i checked the miner in the cgminer interface - i don't see any temperature in this miner-type - can i delete the entry out of the database?

BR Ralf

Can you please try to change the timeout to 5 seconds and be sure to restart the app after that. If this still doesn't fix your issue I will submit a patch immediately.


Title: Re: Antminer Monitor
Post by: ralf007at on February 20, 2018, 12:53:22 PM
Hi there,

it didn't helped - sorry...

BR Ralf


Title: Re: Antminer Monitor
Post by: anselal on February 20, 2018, 01:10:41 PM
Hi there,

it didn't helped - sorry...

BR Ralf

I released a patch. Please update to the latest version following the instructions in the README file https://github.com/anselal/antminer-monitor/blob/master/README.md

Please be so kind and let me know if this fixed your issue


Title: Re: Antminer Monitor
Post by: ralf007at on February 20, 2018, 01:27:02 PM
thank you - that worked!

BR Ralf


Title: Re: Antminer Monitor
Post by: anselal on February 20, 2018, 01:30:22 PM
thank you - that worked!

BR Ralf

I am glad it worked out for you


Title: Re: Antminer Monitor
Post by: citronick on April 22, 2018, 12:41:25 AM
This is an interesting project.

Would adding a "search miner" and report writer function makes sense too?


Title: Re: Antminer Monitor
Post by: anselal on April 22, 2018, 01:30:18 PM
This is an interesting project.

Would adding a "search miner" and report writer function makes sense too?

Thank you very much. Searching will be part in the next releases. What exactly do you want the report to include? Please open an issue on Github if you like so.


Title: Re: Antminer Monitor
Post by: citronick on April 22, 2018, 01:47:23 PM
This is an interesting project.

Would adding a "search miner" and report writer function makes sense too?

Thank you very much. Searching will be part in the next releases. What exactly do you want the report to include? Please open an issue on Github if you like so.

Thanks for adding search function.

Example:
Search by worker name, pool name, miner type
>> output, IP address, Miner type/username/poolname/password/other details
Option to output to txt file.
The search function can double up as the Report writer - output to screen or text/log file.


Title: Re: Antminer Monitor
Post by: anselal on April 30, 2018, 10:29:21 AM
Thank you for shearing the softwear with us but I will like to ask how to go about it as a beginner couse I am very much intrested. And I wan to thank you once again for giving us the platform ti invest the little we can to earn more

Thank you for using my software. The README file should cover all of your questions regarding installation and stuff https://github.com/anselal/antminer-monitor/blob/master/README.md


Title: Re: Antminer Monitor
Post by: phrostb on May 08, 2018, 07:06:00 PM
i can't figure out how to run it.. tried python3 and python2 (made sure to install to path)

Code:
C:\monitor>$ python manager.py runserver
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\monitor>python manager.py runserver
'python' is not recognized as an internal or external command,
operable program or batch file.

C:\monitor>manager.py runserver
Traceback (most recent call last):
  File "C:\monitor\manager.py", line 1, in <module>
    from app import manager
  File "C:\monitor\app\__init__.py", line 1, in <module>
    from flask import Flask
ImportError: No module named flask

C:\monitor>



Moderator's note: This post was edited by frodocooper to add code tags.


Title: Re: Antminer Monitor
Post by: anselal on May 09, 2018, 06:55:58 AM
i can't figure out how to run it.. tried python3 and python2 (made sure to install to path)

[...]

Hi there,

you didn't follow the instructions. First you will have to install all the requirements with `python -m pip install -r requirements` and then start the app. The trailing dollar sign ($) is unnecessary.
Please read carefully the instructions at https://github.com/anselal/antminer-monitor/blob/master/README.md



Moderator's note: This post was edited by frodocooper to trim the quote from phrostb.


Title: Re: Antminer Monitor
Post by: phrostb on May 09, 2018, 01:41:05 PM
Hi there,

you didn't follow the instructions. First you will have to install all the requirements with `python -m pip install -r requirements` and then start the app. The trailing dollar sign ($) is unnecessary.
Please read carefully the instructions at https://github.com/anselal/antminer-monitor/blob/master/README.md

looks like i missed it hiding under this line

    This step apply only to Mac users. If you are a Windows or Linux user continue to step 5.


it's working fine now, thanks for the tip. is there a way to hide the high temperature warning?



Moderator's note: This post was edited by frodocooper to remove a nested quote.


Title: Re: Antminer Monitor
Post by: anselal on May 10, 2018, 05:31:32 AM
If you are familiar with programming you can check the code at the projects page. The code is pretty straight forward.

Look at this line https://github.com/anselal/antminer-monitor/blob/498edf9265ae129bd2d038ed3ce88d01d1a3f269/app/views/antminer.py#L122


Title: Re: Antminer Monitor
Post by: Guinsanity on May 26, 2018, 05:08:17 PM
Im using this, best so far

Do you plan to add DragonT1s to the asics suported?


Title: Re: Antminer Monitor
Post by: anselal on May 26, 2018, 06:54:01 PM
Im using this, best so far

Do you plan to add DragonT1s to the asics suported?

Hi there. We are planning to add support for DragonMints but it will take some time. We need support from users who own those.


Title: Re: Antminer Monitor
Post by: Guinsanity on June 08, 2018, 09:50:20 PM
Im using in my little farm (101 asics) and no problems, I can copy the data from excel and make some studies of temps and hashrates x time.

https://imgur.com/a/JhcFmRt


Title: Re: Antminer Monitor
Post by: anselal on June 08, 2018, 09:59:56 PM
Good day!
Are you finalizing the program? any news ? the idea itself interested me - I think it is interesting for many miners

I am still maintaining the software and try to add more features. So far the software is working great in production and can handle  a lot of mining machines


Title: Re: Antminer Monitor
Post by: NotFuzzyWarm on June 11, 2018, 06:00:02 PM
Im using this, best so far
Do you plan to add DragonT1s to the asics suported?
Hi there. We are planning to add support for DragonMints but it will take some time. We need support from users who own those.
You mean those who got suckered into buying T1's and were unaware of it's pool restrictions ;)
Of course you need support from your users because Halong Mining could care less about providing any sort of support for developers, pool operators, or users. As an aside, AFAIK the T1 does not support any sort of SSH so all coms must use the API.


Title: Re: Antminer Monitor
Post by: anselal on June 11, 2018, 07:05:39 PM
You mean those who got suckered into buying T1's and were unaware of it's pool restrictions ;)
Of course you need support from your users because Halong Mining could care less about providing any sort of support for developers, pool operators, or users. As an aside, AFAIK the T1 does not support any sort of SSH so all coms must use the API.

I managed to connect to the API and retrieve some data. A friend gave me access to his miners. Maybe in the next release we will add support for them.

What do you mean with pool restrictions?


Title: Re: Antminer Monitor
Post by: Guinsanity on June 13, 2018, 07:32:11 PM
I managed to connect to the API and retrieve some data. A friend gave me access to his miners. Maybe in the next release we will add support for them.

What do you mean with pool restrictions?

T1s only works in a couple of pools (that supports AsicBoost).


Title: Re: Antminer Monitor
Post by: anselal on June 14, 2018, 06:16:25 AM
T1s only works in a couple of pools (that supports AsicBoost).

Didn't know that. They work fine with slushpool though


Title: Re: Antminer Monitor
Post by: ralf007at on June 28, 2018, 06:16:08 AM
Hi Anselal,

i have the following problem: any ideas?? BR Ralf

Code:
KeyError
KeyError: 'GHS 5s'

Traceback (most recent call last)
File "C:\Python27\lib\site-packages\flask\app.py", line 1997, in __call__
return [Suspicious link removed]gi_app(environ, start_response)
File "C:\Python27\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python27\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python27\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python27\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Python27\app\views\antminer.py", line 82, in miners
ghs5s = float(str(miner_stats['STATS'][1]['GHS 5s']))
KeyError: 'GHS 5s'


Title: Re: Antminer Monitor
Post by: anselal on June 28, 2018, 06:30:33 AM
Hi Anselal,

i have the following problem: any ideas?? BR Ralf

[...]

Hi there,

1) does the error go away if you refresh the page ?
2) Did this error occur after you added a new miner ?


Title: Re: Antminer Monitor
Post by: ralf007at on July 03, 2018, 05:26:34 AM
Hi there,

sorry for my late reply - was sick...

yes - the error stays also after refreshing - no actually the error appears after i removed some physical miners before i delete them...

BR Ralf


Title: Re: Antminer Monitor
Post by: anselal on July 03, 2018, 05:31:42 AM
Hi there,

sorry for my late reply - was sick...

yes - the error stays also after refreshing - no actually the error appears after i removed some physical miners before i delete them...

BR Ralf

The software queries for the miners you have added and if an IP does not respond then the miner will be added to list of in-active miners.
I suspect that after you physically removed the miner another device got the same ip, which is not a miner so the app crashed because it tries to communicate with the miner's API.

Please check if this is the case and make sure that no other device has the IP your miner had.
Normally you should first delete the device from the application and then unplug it.

If the problem continues you can delete the database and add the miners again.

Let me know if that helped


Title: Re: Antminer Monitor
Post by: ralf007at on July 03, 2018, 06:31:05 AM
i deleted the database and get:
sqlalchemy.exc.OperationalError
OperationalError: (sqlite3.OperationalError) no such table: miner [SQL: u'SELECT miner.id AS miner_id, miner.ip AS miner_ip, miner.model_id AS miner_model_id, miner.remarks AS miner_remarks \nFROM miner'] (Background on this error at: http://sqlalche.me/e/e3q8)

BR Ralf


Title: Re: Antminer Monitor
Post by: anselal on July 03, 2018, 06:32:31 AM
i deleted the database and get:
sqlalchemy.exc.OperationalError
OperationalError: (sqlite3.OperationalError) no such table: miner [SQL: u'SELECT miner.id AS miner_id, miner.ip AS miner_ip, miner.model_id AS miner_model_id, miner.remarks AS miner_remarks \nFROM miner'] (Background on this error at: http://sqlalche.me/e/e3q8)

BR Ralf

Sorry, I forgot to mention that yo must recreate the database using the command: `python create_db.py` if you are on an older version.


Title: Re: Antminer Monitor
Post by: ralf007at on July 03, 2018, 07:06:21 AM
thank you - that helped!

BR Ralf


Title: Re: Antminer Monitor
Post by: btc2017btc2017 on August 08, 2018, 08:31:59 PM
Hi, how do I add miners that are located at a different location, eg

ExternalServerIP:10001
ExternalServerIP:10002
etc

The ports 10001, 10002 etc goes to port 80 on the miners

I've successfully added the Z9 Mini, but how do I go about adding Innosilicon, what files do I need to modify?


Title: Re: Antminer Monitor
Post by: btc2017btc2017 on August 08, 2018, 08:43:13 PM
Ok, so it looks like the API port is 4028.

My problem is that I can open up port 4028 for forwarding to only one device. Is there a way to do this for multiple miners or will I need to modify the python script to used different ports and then use port forwarding on the router to point back to 4028

eg port 20001 goes to the 1st miner on port 4028
port 20001 goes to the 2nd miner on port 4028


Title: Re: Antminer Monitor
Post by: anselal on August 08, 2018, 08:58:41 PM
Ok, so it looks like the API port is 4028.

My problem is that I can open up port 4028 for forwarding to only one device. Is there a way to do this for multiple miners or will I need to modify the python script to used different ports and then use port forwarding on the router to point back to 4028

eg port 20001 goes to the 1st miner on port 4028
port 20001 goes to the 2nd miner on port 4028

The software is supposed to run on tbe same network as tbe miners. It cant run outside the network of the miners.
You must install it on a machine behind your router and expose only the software's port if you want to access it this way


Title: Re: Antminer Monitor
Post by: btc2017btc2017 on August 09, 2018, 11:17:56 AM
Would this help?

https://halongmining.com/api/
https://github.com/brndnmtthws/dragon-rest



Im using this, best so far

Do you plan to add DragonT1s to the asics suported?

Hi there. We are planning to add support for DragonMints but it will take some time. We need support from users who own those.


Title: Re: Antminer Monitor
Post by: cu.orq on August 17, 2018, 05:57:49 PM
Hi anselal, congratz for this software its really easy to use and it works perfect for my miners. However I want to now how to change the red alert of the miners, I have one T9 12,5 THs and another one of 10,5 and it appears always en red, cause the program see them like the same tipe of machine even when they have diferentes values of hashing.

Another questione is where in the code I can see the temperature values of the miners to change it, bīcause is always in red in some miners but they are OK

regards
cu.orq


Title: Re: Antminer Monitor
Post by: Guinsanity on September 13, 2018, 03:19:49 PM
Im having this error when i add 80+ machines, the sw are working good then i update and havig this bug, i back for de 0.3 version and the problem persists.

Code:
builtins.KeyError
KeyError: 'GHS 5s'

Traceback (most recent call last)
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1997, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\Guilherme\AppData\Local\Programs\Python\Python37-32\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "G:\antminer-monitor-master\app\views\antminer.py", line 84, in miners
ghs5s = float(str(miner_stats['STATS'][1]['GHS 5s']))
KeyError: 'GHS 5s'
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object


Title: Re: Antminer Monitor
Post by: anselal on September 13, 2018, 06:15:22 PM
Im having this error when i add 80+ machines, the sw are working good then i update and havig this bug, i back for de 0.3 version and the problem persists.

[...]

Check out the issues at https://github.com/anselal/antminer-monitor/issues?utf8=✓&q=Keyerror


Title: Re: Antminer Monitor
Post by: Guinsanity on September 14, 2018, 01:50:54 PM
Check out the issues at https://github.com/anselal/antminer-monitor/issues?utf8=✓&q=Keyerror

I try settimeout 2s, 5s and 60s and still same problem.
I edited with IDLE and save only, i dunno if i have to do something else or reinstall.


Title: Re: Antminer Monitor
Post by: anselal on September 14, 2018, 02:24:24 PM
I try settimeout 2s, 5s and 60s and still same problem.
I edited with IDLE and save only, i dunno if i have to do something else or reinstall.

Try to restart the app. I think this is communication error. The only thing I can do is to add a default value of 0 in case of a key error but the thing is that i cannot reproduce it to fix it.
Let me know if the restart fixed and we will see how we proceed


Title: Re: Antminer Monitor
Post by: Guinsanity on September 14, 2018, 02:59:05 PM
Try to restart the app. I think this is communication error. The only thing I can do is to add a default value of 0 in case of a key error but the thing is that i cannot reproduce it to fix it.
Let me know if the restart fixed and we will see how we proceed

I restarted (exited with ctr+c) and start again, nothing
Then I compile the file with powershell and replace the old pycgminer with 60 and with 5 timeout and not work


Title: Re: Antminer Monitor
Post by: anselal on September 14, 2018, 06:47:08 PM
Will try to fix it. I opened an issue at https://github.com/anselal/antminer-monitor/issues/124
You can comment or enable notifications for this project to get notified when i fix the bug. Besides that it is easier to keep track of issues there instead of here.


Title: Re: Antminer Monitor
Post by: Guinsanity on September 15, 2018, 02:04:13 PM
Will try to fix it. I opened an issue at https://github.com/anselal/antminer-monitor/issues/124
You can comment or enable notifications for this project to get notified when i fix the bug. Besides that it is easier to keep track of issues there instead of here.

Thanks man,

Im following.

The bug appears with more than 70+ asics as I verified.


Title: Re: Antminer Monitor
Post by: anselal on September 15, 2018, 03:58:47 PM
The bug appears with more than 70+ asics as I verified.

On what hardware are you running the monitor ?


Title: Re: Antminer Monitor
Post by: Guinsanity on September 16, 2018, 02:54:18 AM
On what hardware are you running the monitor ?

Same as i always run, a notebook Core i5 3rd, 16gb ddr4, W10
I update to the latest version then the problem occurs, try to go back to the 0.3 and same problem.


Title: Re: Antminer Monitor
Post by: Guinsanity on September 17, 2018, 02:03:26 PM
@anselal

I deleted 0.3 version and download the 0.4 trying to install again and having this error

Code:
G:\antminer-monitor-master>python manage.py create_db
Traceback (most recent call last):
  File "manage.py", line 2, in <module>
    from antminermonitor.app import create_app
  File "G:\antminer-monitor-master\antminermonitor\app.py", line 3, in <module>
    from antminermonitor.blueprints.asicminer import antminer, antminer_json
  File "G:\antminer-monitor-master\antminermonitor\blueprints\asicminer\__init__.py", line 1, in <module>
    from antminermonitor.blueprints.asicminer.views.antminer import antminer
  File "G:\antminer-monitor-master\antminermonitor\blueprints\asicminer\views\antminer.py", line 7, in <module>
    from flask_login import login_required
ModuleNotFoundError: No module named 'flask_login'


Title: Re: Antminer Monitor
Post by: anselal on September 17, 2018, 03:56:50 PM
@anselal

I deleted 0.3 version and download the 0.4 trying to install again and having this error

[...]

Thank you for the feedback. I accidentally pushed some testing code. I will fix it later today


Title: Re: Antminer Monitor
Post by: anselal on September 18, 2018, 05:27:01 AM
Fixed !!


Title: Re: Antminer Monitor
Post by: ShurikMMS on September 22, 2018, 04:36:45 PM
Hello! I'm trying to install according to the instructions. Python 2.7, the windows 10.
1) python -m pip install -r requirements.txt - successfully!
2) python manager.py create_db - gives an error:
C: \ antminer> python manager.py create_db
usage: manager.py [-?] {runserver, shell} ...
manager.py: error: invalid choice: u'create_db '(choose from' runserver ',' shell ')
I read the instructions 10 times))) But  I do not see what my problem


Title: Re: Antminer Monitor
Post by: anselal on September 22, 2018, 05:15:57 PM
Hello! I'm trying to install according to the instructions. Python 2.7, the windows 10.
1) python -m pip install -r requirements.txt - successfully!
2) python manager.py create_db - gives an error:
C: \ antminer> python manager.py create_db
usage: manager.py [-?] {runserver, shell} ...
manager.py: error: invalid choice: u'create_db '(choose from' runserver ',' shell ')
I read the instructions 10 times))) But  I do not see what my problem

Hi. I think you are looking at an older version. Please download the latest from https://github.com/anselal/antminer-monitor/archive/master.zip and read the instructions from https://github.com/anselal/antminer-monitor/blob/master/README.md


Title: Re: Antminer Monitor
Post by: ShurikMMS on September 23, 2018, 04:19:17 AM
Thank you! All OK. However, now I need to work hard to manually add many asics ;D


Title: Re: Antminer Monitor
Post by: anselal on September 23, 2018, 05:35:10 AM
Thank you! All OK. However, now I need to work hard to manually add many asics ;D

Will add batch add probably this week. Please stay tuned and follow us on twitter for updates


Title: Re: Antminer Monitor
Post by: NazarShlykov on November 04, 2018, 01:43:40 PM
Hello, Thank you for your software! I have a little problem, most of the time my miners shows in In-active miners with "Error: Check connection or IP Address". And I have to refresh the page manually myself several times and after that everything shows as it suppose to be. But after couple auto refresh cycles the miners again in In-active miners. It happens randomly sometimes they in active, sometimes in In-active. What should I do?


Title: Re: Antminer Monitor
Post by: anselal on November 04, 2018, 01:57:27 PM
Hello, Thank you for your software! I have a little problem, most of the time my miners shows in In-active miners with "Error: Check connection or IP Address". And I have to refresh the page manually myself several times and after that everything shows as it suppose to be. But after couple auto refresh cycles the miners again in In-active miners. It happens randomly sometimes they in active, sometimes in In-active. What should I do?

Hi there, this is probably due to a delayed connection to your miners, most of the times this is due your network topology and/or setup. You can try to increase the socket timeout by editing the code in the file pycgminer.py


Title: Re: Antminer Monitor
Post by: NazarShlykov on November 04, 2018, 02:48:01 PM
Hi there, this is probably due to a delayed connection to your miners, most of the times this is due your network topology and/or setup. You can try to increase the socket timeout by editing the code in the file pycgminer.py

Thank you! that solved my problem.


Title: Re: Antminer Monitor
Post by: mikeywith on December 20, 2018, 04:30:26 AM
Hey OP , thanks for the app , it's light and  handy.  would be great if you add a restart function  ::)

and btw there are a few typos in your readme that probably will stop many from installing your software as not everyone will be able to go through the py file to check for the spelling.

Code:
python manage.py create_db

should be replaced with

Code:
python manage.py create-db

Code:
python manage.py create_admin

should be replaced with

Code:
python manage.py create-admin

i think you should also mention that it's not compatible with python 2.7 on windows. works with previous and later versions ( on windows ) based on my test.

Good luck and thanks.


Title: Re: Antminer Monitor
Post by: anselal on December 20, 2018, 08:38:39 AM
Hi there,

There is a recent issue on Github about that problem. The thing is that I cannot reproduce the error because on my machines it works with underscores.
I can update the README and add a troubleshooting section mentioning this kind of things. Thanks for the heads up !!!

And as always, donations are welcome.


Title: Re: Antminer Monitor
Post by: messjuk on January 03, 2019, 08:41:10 PM
Hello. And happy new year to you. I have just install your soft of Antminer monitoring. But I have problem.. I login intro web page by local host:5000 and when I wrote ip of miner then next line is: mode select the option.. and there is nothing.. no any options I canít see any list so I canít chose any of model and I canít add any of my miner.. can you please help. Thanks



Oh I just update the dB and now all is fine. But how I can add auto miner detect? Also all my miners is in all local are but all they have different wi if router so they have different ip range some have 192.169.88.... some 192.168.0.... and some 192.168.31.... so some miners canít be added on the monitoring. How it can be fixed without modifying the network settings of local area. Thanks


Title: Re: Antminer Monitor
Post by: mikeywith on January 07, 2019, 11:09:22 PM
Also all my miners is in all local are but all they have different wi if router so they have different ip range some have 192.169.88.... some 192.168.0.... and some 192.168.31.... so some miners canít be added on the monitoring. How it can be fixed without modifying the network settings of local area. Thanks

this a network problem , how do you expect the software to solve it?

you have different subnets( regions), the PC you using has a different gateway from the miner's gateway, it will drop the packet immediately. this is like sending expecting a dog to talk to a fish, it doesn't work.

PC on subnet 1 can add all asics on subnet 1
PC on subnet 1 can NOT add asics on subnet 2/3/4

you probably have a switch of layer 2 and not a router, it's commercially called a router but if it does not transmit packets between different subnets then it's simply a switch.

in order to do whatever you want to do, you will need some networking skills, you need to have all of your subnet under a single VLAN, you need to teach your router how to route packets coming and going among different subnets, this will require some work and a device that is capable of doing so, and if not done perfectly the congestion on your network will be ATH.

the easier way to go about this is to have only 1 router that acts as a router, and the other "routers" must act as a bridge only, 1 router will handle all the traffics, even if your devices were thousands miles apart, as long as they are under the same subnet you will not have to do anything advance to have them all accessed from a single host.


Title: Re: Antminer Monitor
Post by: Artemis3 on January 08, 2019, 07:16:10 PM
Oh I just update the dB and now all is fine. But how I can add auto miner detect? Also all my miners is in all local are but all they have different wi if router so they have different ip range some have 192.169.88.... some 192.168.0.... and some 192.168.31.... so some miners canít be added on the monitoring. How it can be fixed without modifying the network settings of local area. Thanks

The 192.169 sounds strange, but in case you meant 192.168.* ALL you have to do is change your network mask from 255.255.255.0 to 255.255.0.0


Title: Re: Antminer Monitor
Post by: messjuk on January 09, 2019, 10:04:37 AM
Hi all. Is there any possible to made auto restart from this monitoring? I mean if some of miner have problem with plates for example some of xxx, or low hash rate, can this monitoring made restart of this miner? Thanks


Title: Re: Antminer Monitor
Post by: mikeywith on January 09, 2019, 08:29:34 PM
The 192.169 sounds strange, but in case you meant 192.168.* ALL you have to do is change your network mask from 255.255.255.0 to 255.255.0.0

why use a class B that can accommodate 65000 hosts when you only need a few ips ? this is a very lazy workaround, putting a small subnets into a large subnet is not the best thing to do, he is better of using a single router and a subnet mask of 255.255.255.0


Title: Re: Antminer Monitor
Post by: Artemis3 on January 09, 2019, 09:55:54 PM
why use a class B that can accommodate 65000 hosts when you only need a few ips ? this is a very lazy workaround, putting a small subnets into a large subnet is not the best thing to do, he is better of using a single router and a subnet mask of 255.255.255.0

Why not?

It really doesn't matter, if they want to organize it better with it or something. They are private IPs (https://en.wikipedia.org/wiki/Private_network), you are wasting nothing if you'd rather use a class A because 10.1.5.11 might mean area 1, isle 5, computer 11 or something like that.


Title: Re: Antminer Monitor
Post by: mikeywith on January 10, 2019, 06:45:35 PM
first of all i would imagine the guy does not have managed switch, depending on the "routers" he has, using a class B might slow down the network.

using your example

10.1.5.11

let's assume 10 = country 1 = state = 5 = city  11 = house

using a class B means every packet has to broadcast to

city> house

this increases traffic and creates longer routing tables.

using a class C means every packet has to be broadcast to

> house only.

going from city to home is not as bad as i might have described  it, it could be too "irrelevant" to consider, I have seen many networks drop in performance after migrating from class C to class B without a the proper setup.

these problems are solved using actual routers that are capable of VLAN flags for example, they sort of "memorize" every "home" location so they don't actually have to search through "city" for every traffic , but i am pretty certain this is not the case with the OP network.

in theory , there is nothing wrong with using a whole school bus to send 1 kid to school, it will still get him there, the better question is "why" not "why not".

your suggestion is in fact a brilliant one for a quick-work around , but it's just not the best , given the fact that he can simply switch from
router<>router<>router > large subnet
to bridge>router>bridge > small subnet.


Title: Re: Antminer Monitor
Post by: JFoxOne on January 19, 2019, 09:17:35 AM
...all my miners is in all local are but all they have different wi if router so they have different ip range some have 192.169.88.... some 192.168.0.... and some 192.168.31....

If you have hard time locating ASICs on your network you can try with Locator (https://minerstat.com/software/locator).

You don't have to be minerstat user to use Locator. It is free to use for everyone.