Search content
Sort by

Showing 4 of 4 results by NicoxDJ
Post
Topic
Board Service Announcements
Re: BitcoinWisdom.com - Live Bitcoin/LiteCoin Charts
by
NicoxDJ
on 23/04/2019, 20:54:31 UTC
Hey guys!

Where can i see now statistics like on that page:
https://bitcoinwisdom.com/bitcoin/difficulty

I need the graph with the difficulty, "Estimated Next Difficulty", "Adjust time" and "Block Generation Time"

Thank you!
Post
Topic
Board Mining (Altcoins)
Re: PhoenixMiner 3.0c: fastest Ethereum/Ethash miner with lowest devfee (Windows)
by
NicoxDJ
on 24/07/2018, 07:38:03 UTC
how to get jsonrpc with curl for this miner?
I'm trying this and it's not working

curl -X POST -H "Content-Type: application/json" -d '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}' http://IP:3333

I didn't make it with curl but I made it with python I had to add a newline character \n at the end of the request.
like this {"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}\n


Hey Germini,
Can you post your code please?
I found one python code somewhere here, but neither with \n it does not working :/

Hi, no problem with this code you can get all the data from a claymore or phoenixminer with no problem using python. thanks to (https://github.com/pistonov/RedTools-Rig-Light)

Code:
import socket
import json

def get_data(ip, port):
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    server_address = (ip, int(port))
    try:
        sock.connect(server_address)
    except Exception as e:
        return []
    request = '{\"id\":0,\"jsonrpc\":\"2.0\",\"method\":\"miner_getstat1\"}\n'
    request = request.encode()
    try:
        sock.sendall(request)
    except Exception as e:
        return []
    try:
        data = sock.recv(512)
    except Exception as e:
        return []
    message = json.loads(data)
    sock.close()
    return message

def get_data_claymore(miner_ip, miner_port):
    hashrate_total = []
    hashrate = []
    accepted_shares = []
    invalid_shares = []
    miner_uptime = []

    data = get_data(miner_ip, miner_port)

    try:
        all = data['result'][6].split(';')
        gpu_temp = all[::2]
        gpu_fans = all[1::2]
        hashrate_total = int(data['result'][2].split(';')[0])
        hashrate = data['result'][3].split(';')
        accepted_shares = int(data['result'][2].split(';')[1])
        invalid_shares = int(data['result'][2].split(';')[2])
        miner_uptime = data['result'][1]
        return gpu_temp, gpu_fans, hashrate_total, hashrate, accepted_shares, invalid_shares, miner_uptime

    except Exception as e:
        return []

data = get_data_claymore("192.168.1.13", 3333)
print(data)

Enjoy my friend!

Thanks!! It works on Phoenix, but it doesn't on Claymore. It doesn't get the info i goes, because cannot decode JSON:
raise ValueError("No JSON object could be decoded")
Post
Topic
Board Mining (Altcoins)
Re: PhoenixMiner 3.0c: fastest Ethereum/Ethash miner with lowest devfee (Windows)
by
NicoxDJ
on 20/07/2018, 08:09:29 UTC
how to get jsonrpc with curl for this miner?
I'm trying this and it's not working

curl -X POST -H "Content-Type: application/json" -d '{"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}' http://IP:3333

I didn't make it with curl but I made it with python I had to add a newline character \n at the end of the request.
like this {"id":0,"jsonrpc":"2.0","method":"miner_getstat1"}\n


Hey Germini,
Can you post your code please?
I found one python code somewhere here, but neither with \n it does not working :/
Post
Topic
Board Mining (Altcoins)
Re: PhoenixMiner 3.0c: fastest Ethereum/Ethash miner with lowest devfee (Windows)
by
NicoxDJ
on 17/07/2018, 09:41:58 UTC
Hello!

I build one web monitoring system.
Its working based web connection to the ip:port of the miner, and getting the information.
On Claymore there is one hidden JSON code on the web page of each miner, and it looks like that:
Code:

{"result": ["11.6 - ETH", "99", "211784;300;0", "30513;30612;30614;29074;30615;30546;29806", "0;0;0", "off;off;off;off;off;off;off", "59;83;60;83;60;83;62;82;60;84;59;82;60;84", "pool:port", "2;0;0;0", "45;47;41;36;42;37;52", "0;0;0;0;0;0;0", "0;0;0;2;0;0;0", "0;0;0;0;0;0;0", "0;0;0;0;0;0;0", "0;0;0;0;0;0;0", "1;2;3;5;6;7;8"]}

ETH: Share accepted (62 ms)!

ETH: 07/17/18-02:26:55 - SHARE FOUND - (GPU 3)
It's very useful, because you get all the information you need in one single http request (without any post requests to the miner).

So my question is, is it there some hidden config code, that will enable this feature, or it's just missing from PhoenixMiner?
Or else... how can i get that information? Because i can't monitor all miners now :/

Thanks!