Start a new topic
Answered

Trying to make a nicehash app

Hi all


I am trying to make an app to check my  nicehash profitability but keep getting the "wrong data format" error


this is the nicehash API

https://www.nicehash.com/index.jsp?p=api


and the method I am trying to use is the stats.provider one


but when I use the url https://api.nicehash.com/api?method=stats.provider&addr=MYBTCADDYHERE (with my address there rather than the mybtcaddyhere text)


all I get is "wrong data format

can anyone help me?

Best Answer

Hi I don't see any replies so thought I would put my answer forward, the La-metric time expects the data it gets to be in the format like Jack Huy pointed out . So you would need some webservice that would do a request to https://api.nicehash.com/api?method=stats.provider&addr=MYBTCADDYHERE , then get the result and format it in the way La-metric expects and then sent the result to La-Metric .


There is an example of this in the GitHub Followers App


I've been trying to make a nicehash app too but its not working out. I encountered the same problem you had. I think the link needs to be in the format of:
{
    "frames": [
        {
            "text":"(your value)",
            "icon":"i241"
        }
    ]
}

 

Answer

Hi I don't see any replies so thought I would put my answer forward, the La-metric time expects the data it gets to be in the format like Jack Huy pointed out . So you would need some webservice that would do a request to https://api.nicehash.com/api?method=stats.provider&addr=MYBTCADDYHERE , then get the result and format it in the way La-metric expects and then sent the result to La-Metric .


There is an example of this in the GitHub Followers App

Login or Signup to post a comment