Settings allow user to add a light toggle option to the navbar
Complete user configurable status list.
Added "Off" as a status option
User Configurable Statuses
Re-worked Status configuration to allow complete user customisability.
Previously I stored a seperate settings key to hold each statuses colour and brightness, triggered against a predetermined set of statuses.
Now the settings contains statusDict, whose keys match the statuses the users is interested in, the value of which is a nested dict containing colour, brightness, and if the light should be extinguished.
To avoid some quirks of Octoprints settings persistence, if no statuses are defined in statusDict, the default statuses in statusDict are bootstrapped into settings on plugin start so that they are then persisted to yaml.
Added features:
User Configurable Statuses Re-worked Status configuration to allow complete user customisability. Previously I stored a seperate settings key to hold each statuses colour and brightness, triggered against a predetermined set of statuses. Now the settings contains statusDict, whose keys match the statuses the users is interested in, the value of which is a nested dict containing colour, brightness, and if the light should be extinguished.
To avoid some quirks of Octoprints settings persistence, if no statuses are defined in statusDict, the default statuses in statusDict are bootstrapped into settings on plugin start so that they are then persisted to yaml.