Open Scrounger opened 3 years ago
I've added this in a script:
setState('vis-materialdesign.0.colors.darkTheme', !isAstroDay()); // On script startup
schedule({astro: 'sunrise'}, () => setState('vis-materialdesign.0.colors.darkTheme', false));
schedule({astro: 'sunset'}, () => setState('vis-materialdesign.0.colors.darkTheme', true));
But you probably should make this user-configurable in your adapter config.
@cdellasanta: Still had this idea too. But this is not a 'classic' daemon adapter with an instance. Means there is no main.js file, where i can listen to astro time changes. This must be done by a script, like its in your comment.
Only possible solution is, to add a checkbox in the adapter settings.
Checkbox zum umschalten zwischen light und dark theme über Editor https://forum.iobroker.net/topic/39522/test-adapter-material-design-widgets-v0-4-0-beta/42