Closed greedyvegan closed 3 months ago
Currently no, as it would mean downloading 2 images per song, and that data is not passed from the node_helper (And I don't know if its exposed directly by the current player or I need to send anotherAPI call to get the album data)
You can use experimentalCSSOverridesForMM2
link
Here you would use the option with CSS variables to change other styles, example to set the background:
experimentalCSSOverridesForMM2: [
["--color-background", "background"] // Background is the module reference to a muted background color from the palette, you could use ex.: "palette_muteddark"
]
forgive me for being slow, can I target specific modules and or their backgrounds or specific text to adhere to the theme?
You need to add CSS variables to your css/custom.css
in your magic mirror file: (More info on CSS vars)
/* css/custom.css */
:root {
--my-new-color-variable: #fff; /* A new css variable, with white as default */
}
.module-name { /* Check using the devtools the module name */
background-color: var(--my-new-color-variable) !important;
}
/* In module config */
experimentalCSSOverridesForMM2: [
["--color-background", "background", "#fff"]
]
ok thank you. my module stopped working, how do I know how many API pulls I get because I believe I've depleted it because it stopped appearing on my mirror
With basic configuration you never pass the max api limit per second, even if you did you would get rate limited but the module should just say a warning.
Have you modified anything?
This is in my config:
{module: "MMM-OnSpotify", hiddenOnStartup: true, header: "Now Playing on Spotify", position: "bottom_right", /* bottom_left, bottom_center */ config: { clientID: "my client ID", clientSecret: "my client secret", accessToken: "my access token", refreshToken: "my refresh token", /* Add here your theming and behaviour configurations */ /* Example */ experimentalCSSOverridesForMM2: [ ["--color-text-dimmed", "background", "palette_vibrantlight"], ["--ONSP-OVERRIDES-ICONS-COLOR", "palette_vibrantlight"], /* View custom.css */ ], } },
my custom css:
.MMM-OnSpotify {position:relative}
Hey, can you share your electron logs? Pressing F12 will bring the devtools, then you can press the "console" tab.
do you want the whole log or something specific?
Just the messages sent by the module, or all the log, whatever is easier
the previous was while nothing was playing via spotify, this one is while a song is playing
No errors? even from other modules?, the module does not show the song right?
just one, from the calendar module, that one always comes up, even though its displaying properly.
the module does show the song, now. when I mentioned it the day before yesterday, it wasn't showing; hence why I asked if maybe I've depleted my api requests. Yesterday it started showing.
1 - is it possible to use the current song's album colors as the theme? 2 - how can I apply other items (background colors) to change with the current song?