add current channel info to appearance

My CAPs work with CAPsMAN, can i display the current channel information in appearance label position of each CAPs?

At the moment this info is easily obtainable only from CAPsMAN side.

In label that would be: [ros_command(“:put [/caps int get NAME current-channel]”)]

From CAP side it ain’t that easily obtainable. To do that you would need a script that periodically gets that info and refreshes on CAP side.

  • In current version you would have to use monitor function and save the output to file.
  • Then get file content into var and pick it to get right part: :put [[:pick $test [;find $test “: “] [:find $test key=”,”]]]
  • set it to somewhere as comment or system note.
  • then it could be obtainable via the same ros_command on that device label.