Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support new release software #6

Open
manustars opened this issue Jan 10, 2024 · 2 comments
Open

support new release software #6

manustars opened this issue Jan 10, 2024 · 2 comments

Comments

@manustars
Copy link

hi, i have a questions:

with the new release of nicehash the data structure is changed, your (fantastic) product still active and supported (I sincerely hope so)?

i show you the problem:
in older release the rig_name is here

"rigId": "0-ihfhdlifhsdfhsdl", "type": "MANAGED", "name": "THISNAMERIG", "statusTime": 1704889765925, "joinTime": 1704877919, "minerStatus": "MINING", "groupName": "", "unpaidAmount": "0.00000000", "softwareVersions": "NHM/3.0.9.2", "devices": [ {
in the new release

"rigId": "0-uaasdsdasdasdasg", "type": "MANAGED", "statusTime": 1704889772309, "minerStatus": "MINING", "groupName": "", "unpaidAmount": "0.00000004", "stats": [ { "statsTime": 1704889764000, "market": "EU", "algorithm": { "enumName": "KAWPOW", "description": "KAWPOW" }, "unpaidAmount": "0.00000004", "difficulty": 67108864, "proxyId": 1, "timeConnected": 1704886876794, "xnsub": true, "speedAccepted": 2.7332694653333336, "speedRejectedR1Target": 0, "speedRejectedR2Stale": 0, "speedRejectedR3Duplicate": 0, "speedRejectedR4NTime": 0, "speedRejectedR5Other": 0, "speedRejectedTotal": 0, "profitability": 0 } ], "profitability": 0, "localProfitability": 0.000002087076897842218, "v4": { "versions": [ "NHM/3.1.0.7", "Microsoft Windows NT 10.0.17763.0" ], "mdv": { "state": 2 }, "mmv": { "targetState": 2, "workerName": "THISNAMERIG" }, "osv": [], "odv": [ { "key": "Uptime", "unit": "s", "value": "11941" }, { "key": "IP address", "unit": "", "value": "ipaddremachine" }, { "key": "Profiles bundle id", "unit": "", "value": "" }, { "key": "Profiles bundle name", "unit": "", "value": "" } ], "omv": [ { "id": 370, "displayName": "User name", "displayGroup": 0, "defaultValue": { "type": "DataTypesString", "stringValue": "walletnumber" }, "range": [ { "type": "DataTypesInteger", "intValue": 64 }, { "type": "DataTypesString" } ], "value": { "type": "DataTypesString", "stringValue": "walletnumber" } }, { "id": 371, "displayName": "Worker name", "displayGroup": 0, "defaultValue": { "type": "DataTypesString", "stringValue": "THISNAMERIG" }, "range": [ { "type": "DataTypesInteger", "intValue": 64 }, { "type": "DataTypesString" } ], "value": { "type": "DataTypesString", "stringValue": "THISNAMERIG" } },

@tg44
Copy link
Owner

tg44 commented Jan 11, 2024

Hello!

It is kinda supported, but I have no account/rig on NiceHash anymore, so I can't test it.

https://github.com/tg44/nicehash-exporter/blob/main/app.js#L128 is the "main" function with most of the logic. As I understand they fully reworked the rigs api response structure; https://www.nicehash.com/docs/rest/get-main-api-v2-mining-rigs2 I have no time and capacity to rewrite this right now, but if you create a PR I will review it and merge it for you.

@manustars
Copy link
Author

if there is a need to test it I can help, but honestly I don't know if I'm going to try the code, I'm not a developer and I would only risk creating confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants