How to use Api on minera
zezto opened this issue · comments
https://github.com/login?return_to=%2Fgetminera%2Fminera%2Fwiki%2FNetwork-mining-devicesIm trying to make a python script that dislays my current hasrate and other info. I tried using api allow but it shows me
`b'\n\n\n\t\t\n\t<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>\n\t\n\t\n\t\n\t\n\t<title>Minera - Welcome to Minera</title>\n\t\n\t\n\t\n\t\n\t\n\t\t\t\n\t\n \n \t<div class="app_data"\n\t\t\tdata-ads-free="1"\n\t\t\tdata-browser-mining="1"\n\t\t\tdata-browser-mining-threads="2"\n\t\t\tdata-minera-id="ywezmtumdkyz"\n\t\t\tdata-page="login"\n\t\t>\n \t\t
System: minera
\n\t\t\t\t\tIp Address: 10.0.0.248
\n\t\t\t\t\tMinera Version: 0.8.1
\n\t\t\t\tAnd i cant figure put what to do next
What's the code?
The python code/script you used.
Unfortunately there isn't, you should hack the Minera code to remove auth on API endpoints
Just comment this line and you should be set.
https://github.com/getminera/minera/blob/master/application/controllers/app.php#L1022