MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. miabaker
    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

    miabaker

    @miabaker

    0
    Reputation
    1
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 35
    Location Lithuania

    miabaker Unfollow Follow

    Latest posts made by miabaker

    • 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