Skip to main content

Configuration Refresh

The UcsdCameraConfigRefresher is a timer-triggered function that synchronizes camera configuration from the UCSD Metadata API into the local system.

Schedule​

Runs every 10 minutes on a CRON schedule.

Sync Process​

  1. Fetch remote configs β€” Calls IUCSDClient.GetAllDeviceConfigsAsync() to get the full camera list from UCSD
  2. Compare β€” Diffs against existing local device configurations
  3. Update β€” Applies any changes (new cameras, removed cameras, updated settings)
  4. Credential sync β€” Optionally refreshes camera credentials via IUCSDClient.GetAllDeviceCredentialsAsync()

Why Periodic Sync?​

Camera infrastructure is managed externally at UCSD. Cameras may be:

  • Added to the network (new installations)
  • Removed (decommissioned)
  • Reconfigured (IP changes, credential rotations)

The 10-minute polling interval ensures the system stays current without requiring manual updates.