Skip to content

Comments

Add support Webhook#1523

Open
quyendang wants to merge 15 commits intobitaxeorg:masterfrom
quyendang:master
Open

Add support Webhook#1523
quyendang wants to merge 15 commits intobitaxeorg:masterfrom
quyendang:master

Conversation

@quyendang
Copy link

@quyendang quyendang commented Jan 22, 2026

Allow periodically sending Bitaxe information to a webhook so that the Bitaxe miner’s status can be monitored remotely; this feature is intended for developers.

Change setting via Web UI

Screenshot 2026-01-22 at 14 43 05

Enable Webhook via API

Use the following API request to enable the webhook feature and configure webhook settings on Bitaxe.

Endpoint

PATCH /api/system

Headers

Content-Type: application/json

Example Request

curl -X PATCH http://bitaxeip/api/system \
  -H "Content-Type: application/json" \
  -d '{
    "webhookEnabled": true,
    "webhookUrl": "http://webhook.com/bitaxe",
    "webhookInterval": 60
  }'




return cJSON_CreateNumber(d_value);
}

// Helper function to create system info JSON (similar to GET_system_info but without httpd_req_t)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be possible without the code duplication. Maybe extract this code into a function that just creates the response json that's used both here as well in http_server?

Copy link
Collaborator

@mutatrum mutatrum left a comment

Choose a reason for hiding this comment

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

Need code deduplication

@mutatrum mutatrum mentioned this pull request Jan 28, 2026
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