Accessing config.appearance.name from within a plugin

I'm trying to access the customized OctoPrint name (config.yml -> appearance -> name) from within my plugin. I found octoprint.schema — OctoPrint master documentation but I'm not sure where to go from here.

I also found Settings — OctoPrint master documentation but API between plugins - best practice? states it's probably bad to call the OctoPrint API from within a plugin

Depends on which side you want to reference it. I use this in a couple of plugins, but from the python side the approach is to use self._settings.global_get(["appearance", "name"])

1 Like

Thanks! That works great!