skot / ESP-Miner

A bitcoin ASIC miner for the ESP32
GNU General Public License v3.0
240 stars 84 forks source link

[Feature Request| pyasic support #244

Open pixeldoc2000 opened 3 days ago

pixeldoc2000 commented 3 days ago

Let get pyasic support for Bitaxe (esp-miner) rolling.

Then we can monitor and control Bitaxe with Home Assistant and hass-miner integration via pyasic to have a simple automation going. For example: mining when enough Solar power is available or restarting Bitaxe if connection with pool is lost.

Created a Feature Request in pyasic Repo too: https://github.com/UpstreamData/pyasic/issues/165

HypeLaser commented 3 days ago

I was already using the API to pull the data into Home Assistant (back in 2.1.4) but I found the BitAxe devices stopped responding to web page requests after a while. So I stopped logging the data.

I do second being able to access and log the data in a way that doesn't stop the devices operating.

pixeldoc2000 commented 21 hours ago

@HypeLaser There are some fixed to memory leaks and stuff in current firmware, maybe the problem is already fixed with 2.1.8 .

Other than that, the esp isn't the most powerful device and has to deal with a lot of things. We should limit the requests to the device.

Maybe test again with the current FW.

pixeldoc2000 commented 21 hours ago

Update: basic Bitaxe Support was added to pyasic master, thanks to https://github.com/b-rowan and https://github.com/UpstreamData .