Page failed to render Cannot read properties of undefined (reading 'quiet_max') #9

Open
opened 2026-10-27 15:24:33 +01:00 by adam · 0 comments
Owner

I am testing the feat/companion branch of pyMC_Repeater.
During this testing I stumbled upon an error.

Of course I understand this happens because I am not running a release version of both pyMC Console and Repeater.
Feel free to close this issue if it isn't helpful.

pymc_console version v0.9.308, branch main, commit fb82bcb6b577e9aec63681c7f97108386a8efe60
pyMC_Repeater version v1.0.8.dev27, branch feat/companion, commit bc19c0fd9b704f15920538e3c3b132fbd4fd082f

Error when going to Configuriation in pyMC Console interface:

Page failed to render

Cannot read properties of undefined (reading 'quiet_max')

This problem does not happen when using the pyMC Repeater frontend.

File /etc/pymc_repeater/config.yaml:

...
repeater:
  allow_discovery: true
  cache_ttl: 3600
  identity_file: null
  latitude: REDACTED
  longitude: REDACTED
  mode: forward
  node_name: BE-RTI-Hodonk-Raspi
  score_threshold: 0.3
  security:
    admin_password: REDACTED
    allow_read_only: false
    guest_password: REDACTED
    jwt_expiry_minutes: 60
    jwt_secret: REDACTED
    max_clients: 1
  send_advert_interval_hours: 10
  use_score_for_tx: false
...

Problem is fixed by adding to config:

repeater:
  ...
  advert_adaptive:
    enabled: false
    ewma_alpha: 0.1              # Smoothing factor (0.0-1.0, higher = faster)
    hysteresis_seconds: 300      # Delay before tier change takes effect
    thresholds:
      quiet_max: 0.05            # Adverts per minute (no limiting)
      normal_max: 0.20           # Normal tier (1x limits)
      busy_max: 0.50             # Busy tier (0.5x capacity)
      # Above busy_max = CONGESTED tier (0.25x capacity)
I am testing the `feat/companion` branch of pyMC_Repeater. During this testing I stumbled upon an error. Of course I understand this happens because I am not running a release version of both pyMC Console and Repeater. Feel free to close this issue if it isn't helpful. pymc_console version `v0.9.308`, branch `main`, commit `fb82bcb6b577e9aec63681c7f97108386a8efe60` pyMC_Repeater version `v1.0.8.dev27`, branch `feat/companion`, commit `bc19c0fd9b704f15920538e3c3b132fbd4fd082f` Error when going to Configuriation in pyMC Console interface: > Page failed to render > > Cannot read properties of undefined (reading 'quiet_max') This problem does not happen when using the pyMC Repeater frontend. File `/etc/pymc_repeater/config.yaml`: ``` ... repeater: allow_discovery: true cache_ttl: 3600 identity_file: null latitude: REDACTED longitude: REDACTED mode: forward node_name: BE-RTI-Hodonk-Raspi score_threshold: 0.3 security: admin_password: REDACTED allow_read_only: false guest_password: REDACTED jwt_expiry_minutes: 60 jwt_secret: REDACTED max_clients: 1 send_advert_interval_hours: 10 use_score_for_tx: false ... ``` Problem is fixed by adding to config: ``` repeater: ... advert_adaptive: enabled: false ewma_alpha: 0.1 # Smoothing factor (0.0-1.0, higher = faster) hysteresis_seconds: 300 # Delay before tier change takes effect thresholds: quiet_max: 0.05 # Adverts per minute (no limiting) normal_max: 0.20 # Normal tier (1x limits) busy_max: 0.50 # Busy tier (0.5x capacity) # Above busy_max = CONGESTED tier (0.25x capacity) ``` <!-- github-sync-id:4060897486 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/pymc_console-dist#9