It is currently April 27th, 2024, 11:12 am

How to use api for unmineable pool?

Get help with creating, editing & fixing problems with skins
User avatar
mtchannel
Posts: 24
Joined: October 21st, 2021, 11:08 pm

Re: How to use api for unmineable pool?

Post by mtchannel »

@balala
@Yincognito
thank you very much.

The return took a long time due to intense work. but it works really well. It works smoothly with minor corrections.

Image
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to use api for unmineable pool?

Post by Yincognito »

mtchannel wrote: March 8th, 2024, 9:39 pm @balala
@Yincognito
thank you very much.

The return took a long time due to intense work. but it works really well. It works smoothly with minor corrections.

Image
Excellent - feel free to adjust it further if you like (e.g. if you want better visuals and such)! :great:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
balala
Rainmeter Sage
Posts: 16176
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to use api for unmineable pool?

Post by balala »

mtchannel wrote: March 8th, 2024, 9:39 pm @balala
No, I didn't help you this time at least, at all. Yincognito is entirely and alone the one who deserves the thanks.
mtchannel wrote: March 8th, 2024, 9:39 pm but it works really well.
I'm glad if you got it working well.
User avatar
mtchannel
Posts: 24
Joined: October 21st, 2021, 11:08 pm

Re: How to use api for unmineable pool?

Post by mtchannel »

I've been following "Rainmeter" for a very long time. I have come a long way since the day I joined the forum. I had the opportunity to examine many examples. I had the opportunity to customize my own desktop. Of course, I did it by editing the ready-made examples. Unfortunately I couldn't build anything from scratch. Building something truly from scratch requires both knowledge and time. I don't have either of them for now :) In the evening, I will share a short video of all the customizations I made with "rainmeter". I hope you like it. I prefer to use a "rain gauge" whenever possible. Because I love.
User avatar
mtchannel
Posts: 24
Joined: October 21st, 2021, 11:08 pm

Re: How to use api for unmineable pool?

Post by mtchannel »

This was a work I did when I had free time, when I first encountered "rainmeter".
https://hizliresim.com/5iir5bz

I can say that this is my last personalization that I will use until I die, as I probably won't have the opportunity due to my job.
https://streamable.com/0q1fdy

All "rainmeter" related plugins you watch in the video are excerpts. I didn't build any of them from scratch. I just customized it for myself. I would like to thank everyone who developed these plugins from here.
User avatar
balala
Rainmeter Sage
Posts: 16176
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to use api for unmineable pool?

Post by balala »

mtchannel wrote: March 9th, 2024, 9:52 pm All "rainmeter" related plugins you watch in the video are excerpts. I didn't build any of them from scratch. I just customized it for myself.
Very few are creating plugins. There definitely are some who are creating, but not too many, for sure. So don't worry, customizing things is the essence of Rainmeter.
Glad you've started working with Rainmeter. Good luck for the upcoming skins and feel free to come any ask, whenever questions arise.
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to use api for unmineable pool?

Post by Yincognito »

mtchannel wrote: March 9th, 2024, 9:52 pm This was a work I did when I had free time, when I first encountered "rainmeter".
https://hizliresim.com/5iir5bz

I can say that this is my last personalization that I will use until I die, as I probably won't have the opportunity due to my job.
https://streamable.com/0q1fdy

All "rainmeter" related plugins you watch in the video are excerpts. I didn't build any of them from scratch. I just customized it for myself. I would like to thank everyone who developed these plugins from here.
Nice customizations - well done! All of us are using the work of others and sometimes others use the results of our work, and this is no problem as long as there is fair acknowledgement of everyone's contribution to the final result. ;-)
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
mtchannel
Posts: 24
Joined: October 21st, 2021, 11:08 pm

Re: How to use api for unmineable pool?

Post by mtchannel »

Yincognito wrote: March 9th, 2024, 10:35 pm Nice customizations - well done! All of us are using the work of others and sometimes others use the results of our work, and this is no problem as long as there is fair acknowledgement of everyone's contribution to the final result. ;-)
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.
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to use api for unmineable pool?

Post by Yincognito »

mtchannel wrote: March 12th, 2024, 1:55 pm 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: Select all

<!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: Select all

[Rainmeter]
Update=-1
AccurateText=1
DynamicWindowSize=1

---Measures---

[BitcoinWidget]
Measure=Plugin
Plugin=WebView
X=10
Y=10
W=330
H=336
URL=file:///#@#BitcoinWidget.html

---Meters---

[Background]
Meter=Shape
Shape=Rectangle 5,5,340,346 | Fill Color 0,0,0,128 | StrokeWidth 10 | Stroke Color 255,0,0,255
Skin:
BitcoinWidget_1.0.0.rmskin
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.
You do not have the required permissions to view the files attached to this post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
mtchannel
Posts: 24
Joined: October 21st, 2021, 11:08 pm

Re: How to use api for unmineable pool?

Post by mtchannel »

Image

1) With some minor adjustments, it turned out exactly as I wanted. Thank you very much.

2) They developed an API for Raspberry Pi, but I could not find ready-made API codes for Windows on the internet or I could not find an API that would give such a code as in the first message
https://i.hizliresim.com/lqs8035.jpg
It works with nicehash api key. I obtained the necessary API key. I received the message showing that it works as in the picture below. Image
The BTC gain you see in the picture shows the correct gain. It means the api command is working. But when I enter this command in the browser; "https://www.nicehash.com/main/api/v2/accounting/account2/BTC" I get a 404 not found error. If I can pass this stage, I will handle the rest. I couldn't pass it. I will tinker with it again when I have free time. Thank you again and again.