Skip to content
/ wiki Public

docs: migrate majestic config examples from yaml-cli to the HTTP API - #477

Merged
widgetii merged 1 commit into
masterfrom
docs/majestic-config-http-api-examples
Jul 23, 2026
Merged

docs: migrate majestic config examples from yaml-cli to the HTTP API#477
widgetii merged 1 commit into
masterfrom
docs/majestic-config-http-api-examples

Conversation

@widgetii

Copy link
Copy Markdown
Member

Summary

Migrates every Majestic configuration example in the wiki from the deprecated cli / yaml-cli file-editing tool to Majestic's HTTP API. The API applies a change to the running streamer and saves it to /etc/majestic.yaml in a single step, so the old killall -HUP majestic reload step is no longer needed.

Conventions used

  • Single settingcurl 'http://localhost/api/v1/set?key=value' (dotted key, no leading dot)
  • Multiple settings → a pretty-printed JSON document POSTed to /api/v1/config via a <<'EOF' heredoc, grouped the same way the keys nest in the config file

The old cli / yaml-cli idiom is called out as deprecated in majestic-streamer.md and the tools index.

Verified on hardware

Ran the exact heredoc idiom on a hi3516ev300 (BusyBox v1.36.1 ash, curl 7.76.0):

  • POST /api/v1/config with a JSON body → applied live and persisted to /etc/majestic.yaml
  • the quoted <<'EOF' delimiter preserves %, $, and backticks literally, so %Y-style record paths round-trip byte-for-byte

Files

majestic-streamer, fpv-audio, fpv-mavfwd, howto-frigate-integration, device-foscam-x5, device-tapo-c110, firmware-sensor-install-sc223a, menu-index, and the Russian action-camera, hiwatch-ds-i122, rostelecom-ipc-hdw1230sp_v3 guides.

🤖 Generated with Claude Code

Replace the deprecated `cli` / `yaml-cli` config-editing examples with
Majestic's HTTP API, which applies a change to the running streamer and
saves it to /etc/majestic.yaml in a single step (no `killall -HUP` needed):

- single setting   -> GET  /api/v1/set?key=value
- multiple settings -> pretty JSON heredoc POSTed to /api/v1/config,
  grouped the way the keys nest in the config file

Verified the heredoc idiom on a hi3516ev300 (BusyBox v1.36.1 ash + curl
7.76.0): the POST applies live and persists, and the quoted <<'EOF'
delimiter keeps %-format record paths intact byte-for-byte.

Touches majestic-streamer, fpv-audio, fpv-mavfwd, howto-frigate-integration,
device-foscam-x5, device-tapo-c110, firmware-sensor-install-sc223a, the tools
index (marks yaml-cli deprecated for Majestic), and the ru/ action-camera,
hiwatch-ds-i122, and rostelecom-ipc-hdw1230sp_v3 guides.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@widgetii
widgetii merged commit b126e5e into master Jul 23, 2026
@widgetii
widgetii deleted the docs/majestic-config-http-api-examples branch July 23, 2026 13:08
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.

1 participant