2023-10-12 20:33:56 -04:00
[](https://discord.gg/3E8ca2dkcC)
2024-08-23 22:00:20 +02:00



2023-10-12 20:33:56 -04:00
# ESP-Miner
2024-09-21 01:11:34 -04:00
esp-miner is open source ESP32 firmware for the [Bitaxe ](https://github.com/skot/bitaxe )
2023-10-12 20:33:56 -04:00
2024-09-21 01:13:27 -04:00
If you are looking for premade images to load on your Bitaxe, check out the [releases ](https://github.com/skot/ESP-Miner/releases ) page. Maybe you want [instructions ](https://github.com/skot/ESP-Miner/blob/master/flashing.md ) for loading factory images.
2022-11-17 17:37:27 -05:00
2024-09-21 01:11:34 -04:00
# Bitaxetool
We also have a command line python tool for flashing Bitaxe and updating the config called Bitaxetool
**Bitaxetool Requires Python3.4 or later and pip**
2022-11-17 17:37:27 -05:00
2023-11-23 22:26:06 +01:00
Install bitaxetool from pip. pip is included with Python 3.4 but if you need to install it check < https: / / pip . pypa . io / en / stable / installation / >
2023-08-12 16:50:18 +02:00
2023-05-19 22:57:07 -04:00
```
2023-11-23 22:26:06 +01:00
pip install --upgrade bitaxetool
2023-05-19 22:57:07 -04:00
```
2023-11-23 22:26:06 +01:00
The bitaxetool includes all necessary library for flashing the binary file to the Bitaxe Hardware.
2023-05-19 22:57:07 -04:00
2024-09-21 01:13:27 -04:00
You need to provide a config.cvs file (see repo for examples) and the appropiate firmware.bin file in it's executed directory.
2023-05-19 22:57:07 -04:00
2024-09-21 01:11:34 -04:00
- Flash with the bitaxetool
2023-05-19 22:57:07 -04:00
```
2023-11-23 22:26:06 +01:00
bitaxetool --config ./config.cvs --firmware ./esp-miner-factory-v2.0.3.bin
2023-05-19 22:57:07 -04:00
```
2024-03-17 20:38:16 +01:00
2024-09-21 01:11:34 -04:00
## AxeOS API
2024-09-21 01:13:27 -04:00
The esp-miner UI is called AxeOS and provides an API to expose actions and information.
2024-03-17 20:38:16 +01:00
For more details take a look at `main/http_server/http_server.c` .
Things that can be done are:
- Get System Info
- Get Swarm Info
- Update Swarm
- Swarm Options
- System Restart Action
- Update System Settings Action
- System Options
- Update OTA Firmware
- Update OTA WWW
- WebSocket
Some API examples in curl:
```bash
# Get system information
curl http://YOUR-BITAXE-IP/api/system/info
```
```bash
# Get swarm information
curl http://YOUR-BITAXE-IP/api/swarm/info
```
```bash
# System restart action
curl -X POST http://YOUR-BITAXE-IP/api/system/restart
2024-06-20 12:21:05 +02:00
```