feat(relay): per-channel TX throttle and live duty-cycle budget#74
Open
iceice400 wants to merge 1 commit into
Open
feat(relay): per-channel TX throttle and live duty-cycle budget#74iceice400 wants to merge 1 commit into
iceice400 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChannelBudget) with operator throttle sliders; relay TX only, not native messaging.RelayManager.evaluate()rejects withchannel_throttledwhen budget exhausted; records airtime after successful relay TX.GET /api/stats/duty_cycle+ Stats tab live meter; Configuration → Advanced throttle UI;PUT /api/config/relayhot-reload.Why
Operators need a duty-cycle overlay and per-channel relay throttle to avoid starving busy channels while staying within regional hints (EU868 1% ceiling).
Soft dependencies
src/analytics/toa_estimate.py(PR 2 ToA math).Risks (request maintainer review)
RelayManager.evaluate()— misconfigured throttle can starve relay traffic on busy channels.transmit.enabledpath unchanged.Testing
python -m unittest tests.test_relay_duty_cycle -v(8 tests)Impact
channel_throttle_percent: {}= 100% all channels (no behaviour change on upgrade).