Created
September 2, 2018 21:51
-
-
Save dfoderick/4cfc95eb40986479d7b4d4a755bbc813 to your computer and use it in GitHub Desktop.
No frills ASIC monitor. Monitor your Bitcoin miner. 5 minute tutorial.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Want to call the api of your cgminer? You can do it from Windows or Linux using a utility called NetCat (or ncat, or simply "nc") | |
| Linux | |
| ===== | |
| Your linux computer probably has netcat already installed. Just run `nc` from command line to see if it is installed. | |
| ``` | |
| pi@raspberrypi:~/bin $ nc | |
| usage: nc [-46CDdFhklNnrStUuvZz] [-I length] [-i interval] [-O length] | |
| [-P proxy_username] [-p source_port] [-q seconds] [-s source] | |
| [-T toskeyword] [-V rtable] [-w timeout] [-X proxy_protocol] | |
| [-x proxy_address[:port]] [destination] [port] | |
| ``` | |
| For example, send the version command to get the results on your console. Replace the ip address and port for your needs. | |
| ``` | |
| echo -n "version" | nc 192.168.1.1 4028 | |
| STATUS=S,When=1517721449,Code=22,Msg=BMMiner versions,Description=bmminer 1.0.0|VERSION,BMMiner=2.0.0,API=3.1,Miner=16.8.1.3,CompileTime=Fri Nov 17 17:37:49 CST 2017,Type=Antminer S9| | |
| ``` | |
| Windows | |
| ======= | |
| If you have windows you will need to download netcat. Google netcat download and install on your system. Then send command to your miner thusly: | |
| ``` | |
| echo {"command":"version"} | nc 192.168.1.1 4028 | |
| ``` | |
| Did you notice that if you send the command in json format that you will get json formatted results? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment