Hi, I have the same issue of electron screen becoming blank. I have tried some solutions but none worked. I have added a line of code in my main.js file that reloads the window every 10 minutes. This prevents the screen from going blank. Here is the code snippet:
// Create a new BrowserWindow instance
let win = new BrowserWindow(options);
// Load the index.html file
win.loadFile('index.html');
// Reload the window every 10 minutes
setInterval(() => {
win.reload();
}, 600000);
I hope this helps you keep your magic mirror running.
Regards, Mia from CodeIT