Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please add the uptime to it thanks #1

Open
Jazzykhan opened this issue Nov 7, 2017 · 16 comments
Open

Can you please add the uptime to it thanks #1

Jazzykhan opened this issue Nov 7, 2017 · 16 comments

Comments

@Jazzykhan
Copy link

No description provided.

@mkaand
Copy link
Owner

mkaand commented Nov 7, 2017

I just updated my script could you check it? If you like it please make donation. Thank you.

@Jazzykhan
Copy link
Author

Hi,
Sure, I will do the donation once I get my btc.
this is my script link http://lulgags.com/nicehash_rss.php
The issue is uptime is not correct it says 00d 00h 00m that is not correct.
This is my nice hash api link
https://api.nicehash.com/api?method=stats.provider.workers&addr=35HGrqVGGxTwG6NP4FkvinM89GgmV3xbxR&algo=0
also, i want to see 2 more things, please
Wallet balance (total balance), unpaid balance (currently mined coins).
I will be very thankful for these changes.
thanks

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

Hello again,

Seems your script runing 6 minutes:
image

You can change base URL too.
Unfortunately nicehash api doesn't let me get unpaid or paid balance. I tried to get from their wensite but as you know their website protecting via Cloudflare. So it is not easy to grab unpaid or paid balance.

I guess you are non stop miner and you just started to run script. UPTIME shows wrong. You should stop everythinginstall the script and make integration with IFTTT and Telegram. MAkesure you get miner offline message. Then start mining. So it will be sync uptime.

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

Everytime when your miner status changes (offline/online) the php script writes itself. The script gets modified date of itself and it compares with current time. Thats why you should stop mining first. Install the script and get offline message then start.

@Jazzykhan
Copy link
Author

Oh I got you,
Thank you so the current btc it is showing is currently mined coins right?

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

Exactly yes, If you mine more than one algo it shows all of them seperatly. By the way when you start mining it doesn't show up immediatly. Because their API delays. Plus IFTTT checks every 15 min but you can trigger IFTTT anytime. But for API I cannot do anything. I will write new RSS feeder for http://pool.gold

If you like it, please just make donation. If you have any idea, you can reach me anytime.

@Jazzykhan
Copy link
Author

Also,
I have this other script in html published here: [http://lulgags.com/new.html]
I want it to show the current mined balance (that your script is showing right now).
please see the attached file.
current mined coins needed in it.txt

Thanks

@Jazzykhan
Copy link
Author

and also can you change uptime minutes to days and hours and minutes that will be very helpful too
Thank you sooo much.

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

It is very hard to get shows unpaid and paid balance via AJAX. I checked their API again, seems I couldn't see before but they provide PRIVATE API for getting unpaid balance etc. I didn't membership of nicehash. I should register and check maybe next few days I can add unpaid and completed balances:

https://api.nicehash.com/api?method=balance&id=8&key=3583b1df-5e93-4ba0-96d7-7d621fe15a17

{"result":{"balance_confirmed":"0.00500000","balance_pending":"0.00000000"},"method":"balance"}

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

You are quite welcome. Wait for next release.

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

Change this line
array(1, "Scrypt", ""), //
with
array(1, "Scrypt", "MH/s"), //
this one.

@mkaand mkaand reopened this Nov 8, 2017
@Jazzykhan
Copy link
Author

Can you do mined coins with ajax or not?
Thanks and yes waiting for next update very much.

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

With ajax no but with Private API yes (looks like yes). I will update my script soon.

@Jazzykhan
Copy link
Author

:) thaanks will donate soon dont worry about that bro.
thanks agan

@mkaand
Copy link
Owner

mkaand commented Nov 8, 2017

You're welcome. 👍

@Jazzykhan
Copy link
Author

update please.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants