Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1486

Help: Rainmeter Skins • Re: How to use api for unmineable pool?

$
0
0
Hello. I didn't want to open a new topic. Because this is relevant. I want to ask you 2 questions. Could you please have the opportunity to review it at a convenient time?

01-) Is there a chance to use the "https://minerstat.com/widgets" code at the bottom of this page in rainmeter? (I reviewed the "https://forum.rainmeter.net/viewtopic.php?f=5&t=11876" page on this subject) (but I could not succeed. If you have an example study you can show on this subject, I would be grateful if you could direct me to it)

02-) I am mining in nicehash pool. I want to pull the "balance" using the API there. But their systems are very different. It's unlike anything we've ever done before and it's beyond me. I asked for help from the officials at the nicehash pool. Thank you, they explained it in detail, but it seemed very complicated. I will write you the necessary information. Could you please contact me at a convenient time? At least guide me if you can. I think I can succeed with your help.

nicehash api doc: https://www.nicehash.com/docs/rest/-accounting

I write with google translate. sorry if there is any mistake.
1) Yes, you have to use the WebView plugin, which will basically draw an Edge browser "window" inside your skin. To install the plugin, you'll have to install the .rmskin in the from the GitHub release link on that page, and follow the steps there (e.g. downloading and installing the WebView redistributable, which the sample skin offers by default on clicking a button). After installing, test a few sample skins and make sure they work, and if they do, then use something like this...

[SkinFolder]\@Resources\BitcoinWidget.html:

Code:

<!DOCTYPE html><html>  <body style="border: 0; outline: 0; margin: 0; padding: 0;">    <a class="minerstat-widget" title="BTC mining calculator" data-coin="BTC" data-algo="SHA-256" data-info="yes" data-style="light" data-color="" data-unit="TH" data-hashrate="100" data-width="300" rel="nofollow" href="https://minerstat.com/coin/BTC">Bitcoin mining calculator</a>    <script async src="https://api.minerstat.com/v2/widgets/coin.js" charset="utf-8"></script>  </body></html>
[SkinFolder]\BitcoinWidget.ini:

Code:

[Rainmeter]Update=-1AccurateText=1DynamicWindowSize=1---Measures---[BitcoinWidget]Measure=PluginPlugin=WebViewX=10Y=10W=330H=336URL=file:///#@#BitcoinWidget.html---Meters---[Background]Meter=ShapeShape=Rectangle 5,5,340,346 | Fill Color 0,0,0,128 | StrokeWidth 10 | Stroke Color 255,0,0,255
Skin:Preview:
BitcoinWidget.jpg
If you want to move the skin, you do it by dragging the red margin. The inside of the skin is basically that widget's webpage, and will behave like the page itself, not like a Rainmeter skin.

2) Nothing is beyond you, if you really want it. We are all born unexperienced, and experience comes by trying things yourself, regardless of whether help is available or not. The system is not different, the response from the site is still just text, and assuming a correct URL and RegExp options, it will work just like the previous example. In other words, you only have to work on the regex pattern, since replacing the URL is trivial to do. Even so, if all you want is the "balance", just adapt the earlier example accordingly, similar to this, no big deal.

Statistics: Posted by Yincognito — Yesterday, 4:43 pm



Viewing all articles
Browse latest Browse all 1486

Trending Articles