Skip to content

Module for monitoring miners speed on NiceHash.com#628

Open
fmarchenko wants to merge 1 commit into
enkore:currentfrom
fmarchenko:nicehash
Open

Module for monitoring miners speed on NiceHash.com#628
fmarchenko wants to merge 1 commit into
enkore:currentfrom
fmarchenko:nicehash

Conversation

@fmarchenko

@fmarchenko fmarchenko commented Nov 28, 2017

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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.

2 participants