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

Module for monitoring miners speed on NiceHash.com #628

Open
wants to merge 1 commit into
base: current
Choose a base branch
from

Conversation

fmarchenko
Copy link
Contributor

@fmarchenko fmarchenko commented Nov 28, 2017

I'm closed previous PR #621 and create new with only NiceHash module.
I will be happy with the positive decision :-)

_api_query_interval = 3

def __init__(self, *args, **kwargs):
super(NiceHashSpeed, self).__init__(*args, **kwargs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use the provided init method in the base class than __init__ as some housekeeping is done before the module is initialized.


:return: Return JSON data with statistic information about miners
"""
with open('/tmp/nhapi.json', 'w+') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need to write out the fetch_date_time to a file? You could just cache it in memory.

@enkore enkore changed the base branch from master to current September 6, 2020 16:33
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

Successfully merging this pull request may close these issues.

None yet

2 participants