It’s great!
But I have a problem with the css.
css is applied only if I set the id=“_”, and if I have only one id with this value.
When I replace
id='L2_'
by
id='_'
See bellow if I done a mistake.
here is my custom.css:
#L1_randomPhoto, #L2_randomPhoto, #Ma1_randomPhoto, #Ma2_randomPhoto, #Me1_randomPhoto, #Me2_randomPhoto, #J1_randomPhoto, #J2_randomPhoto, #V1_randomPhoto, #V2_randomPhoto img {
opacity: 0;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
object-fit: cover;
}
#L1_randomPhoto, #L2_randomPhoto, #Ma1_randomPhoto, #Ma2_randomPhoto, #Me1_randomPhoto, #Me2_randomPhoto, #J1_randomPhoto, #J2_randomPhoto, #V1_randomPhoto, #V2_randomPhoto img.grayscale {
filter: grayscale(100%);
}
....etc
.
and a part of the config.json :
modules: [
{
module: 'MMM-ModuleScheduler',
config: {
// SHOW MODULES WITH THE CLASS 'lundimatin' AT 09:00 AND HIDE AT 13:00 EVERY LUNDI
//global_schedule: {from: '0 9 * * *', to: '0 13 * * *', groupClass: 'lundimatin'},
// SHOW MODULES WITH THE CLASS 'lundiaprem' AT 14:00 AND HIDE AT 17:00 EVERY LUNDI
//global_schedule: {from: '0 9 * * *', to: '0 17 * * *', groupClass: 'lundiaprem'},
}
},
{
module: 'MMM-RandomPhoto',
position: 'fullscreen_below',
classes: 'scheduler',
config: {
module_schedule: {from: '0 9 * * 1', to: '0 13 * * 1' },
imageRepository: "localdirectory",
repositoryConfig: {
path: "/home/pi/MagicMirror/modules/Images/lundimatin/",
recursive: true,
exclude: ["tmp", "#recycle"],
},
updateInterval: 5,
opacity: "1",
id: 'L1_',
}
},
{
module: 'MMM-RandomPhoto',
position: 'fullscreen_below',
classes: 'scheduler',
config: {
module_schedule: {from: '0 13 * * 1', to: '0 17 * * 1' },
imageRepository: "localdirectory",
repositoryConfig: {
path: "/home/pi/MagicMirror/modules/Images/lundiaprem/",
recursive: true,
exclude: ["tmp", "#recycle"],
},
updateInterval: 5,
opacity: "1",
id: 'L2_',
}
},