Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d5d19cc6b | ||
|
|
cc38129571 |
@@ -33,6 +33,8 @@ class BaseMiner(ABC):
|
|||||||
self.api = None
|
self.api = None
|
||||||
self.web = None
|
self.web = None
|
||||||
|
|
||||||
|
self.ssh_pwd = "root"
|
||||||
|
|
||||||
# static data
|
# static data
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
self.api_type = None
|
self.api_type = None
|
||||||
@@ -89,6 +91,7 @@ class BaseMiner(ABC):
|
|||||||
|
|
||||||
@pwd.setter
|
@pwd.setter
|
||||||
def pwd(self, val):
|
def pwd(self, val):
|
||||||
|
self.ssh_pwd = val
|
||||||
try:
|
try:
|
||||||
if self.web is not None:
|
if self.web is not None:
|
||||||
self.web.pwd = val
|
self.web.pwd = val
|
||||||
@@ -125,7 +128,7 @@ class BaseMiner(ABC):
|
|||||||
str(self.ip),
|
str(self.ip),
|
||||||
known_hosts=None,
|
known_hosts=None,
|
||||||
username="root",
|
username="root",
|
||||||
password="root",
|
password=self.ssh_pwd,
|
||||||
server_host_key_algs=["ssh-rsa"],
|
server_host_key_algs=["ssh-rsa"],
|
||||||
)
|
)
|
||||||
return conn
|
return conn
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "pyasic"
|
name = "pyasic"
|
||||||
version = "0.37.3"
|
version = "0.37.4"
|
||||||
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
|
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
|
||||||
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
||||||
repository = "https://github.com/UpstreamData/pyasic"
|
repository = "https://github.com/UpstreamData/pyasic"
|
||||||
|
|||||||
Reference in New Issue
Block a user