MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. miabaker
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Electron screen becomes blank after a period of time

      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

      posted in Troubleshooting
      M
      miabaker
    • 1 / 1