Skip to content

Conversation

@taclane
Copy link
Contributor

@taclane taclane commented Jan 22, 2026

Plugins have a name field in the config that was initially used to create an instance of the plugin. This no longer seems to be the case, so it can be repurposed to allow plugins to use it for identification and logging.

This PR will better allow plugins to utilize the name field in the config to set a friendly plugin name and display it later. The primary benefit of this would be to better identify when multiple instances of the same plugin are sending data to different servers within the logs:
Screenshot 2026-01-22 at 11 06 59 AM

If left blank, the name will default to the base filename. Individual plugins may choose to handle the default value by the exchanging it for a friendly display name instead.

This has been implemented for the three main upload plugins (Rdio, Broadcastify, OpenMHz). Setting a custom name for the latter two plugins can be accomplished by manually creating a plugin entry such as:

{
  "name": "BCFY",
  "library": "libbroadcastify_uploader.so",
  "broadcastifyCallsServer": "https://api.broadcastify.com/call-upload",
  "systems": [
    {
      "shortName": "mysystem",
      "broadcastifySystemId": 1123,
      "broadcastifyApiKey": "API-key"
    }
  ]
}

or

{
  "name": "OpenMHz.com",
  "library": "libopenmhz_uploader.so",
  "uploadServer": "https://api.openmhz.com",
  "systems": [
    {
      "shortName": "mysystem",
      "openmhzSystemId": "myopenmhzsystem",
      "apiKey": "api-KEY"
    }
  ]
}

instead of having the plugin info commingled with system configuration data.

This should also directly address #1087.

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