getminera / minera

Minera is a web interface to monitor and manage mining devices

Home Page:http://getminera.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

\n \n
\n\t
\n
\n \n \n
Hello Miner
\n \n \n

\n \n
\n user image\n
\n \n\t\t\t\t\n \n\t
\n\t\n\t
\n\t\n\t \n\t
\n\t \n\t
\n\t\n\t
\n\t
\n\n\t\t\t\t\n
\n\t\t\t\n\t\t\t
\n\t\t\t\tWelcome to Minera\n\t\t\t\t
\n\t\t\t

System: minera

\n\t\t\t\t\t

Ip Address: 10.0.0.248

\n\t\t\t\t\t

Minera Version: 0.8.1

\n\t\t\t\t
\n\t\t\t
\n\n\t\t\t
\n\t\t\t\t Online | Minera ID: "removed lol"\n\t\t\t
\n\t\t\t\t\t\t\n
\t
\n\t \t\t
\n\t\t\t
\n\t\t\t\tFollow @michelem\n\t\t\t\tStar\n\t\t\t
\n\t \t\t\t \t
\n\t
\n\t\n\t<script src="https://coinhive.com/lib/coinhive.min.js"></script>\n \n <script type="text/javascript">\n\t var _baseUrl = \'http://10.0.0.248/minera/index.php\';\n\t</script>\n\t\n\t\t\t<script src="http://10.0.0.248/minera/assets/js/application.min.js?time=1515387654" type="text/javascript"></script>\n\t\n \n\t<script defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>\n\t\n\t<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?\'http\':\'https\';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+\'://platform.twitter.com/widgets.js\';fjs.parentNode.insertBefore(js,fjs);}}(document, \'script\', \'twitter-wjs\');</script>\n\n\n`

And 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