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

    chris_d

    @chris_d

    1
    Reputation
    1
    Profile views
    20
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    chris_d Unfollow Follow

    Best posts made by chris_d

    • Black screen on HMDI output, content on remote browser

      I have recently updated and rebuilt my MM installation.
      I can browse to my MM via a remote web browser and things display fine, however on the HDMI output of the PI itself I just have a black screen.

      In the logs I see,

      [1502:0115/164948.881957:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [1538:0115/164949.052412:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
      [1507:0115/164949.107262:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
      

      I wonder if anyone might be able to point me in the right direction.

      posted in Troubleshooting
      C
      chris_d

    Latest posts made by chris_d

    • RE: MMM-Scrapey - I made something that could be useful?

      I think I figured it out by adjusting the .js code to return .text rather than .innerHTML on line 88.
      This could possibly be something that could be a module option. If I get some time I might consider taking this and doing some work on it, but like you I’m a bit of a ChatGPT coder :-), so I’m not even sure how to copy it!

      It’s working great for me now though, so thank you again!

      posted in Development
      C
      chris_d
    • RE: MMM-Scrapey - I made something that could be useful?

      @AndyHazz Thanks for this awesome module. I’m also using it to pull bus information and it’s working well. I wondered if there was a way of stripping formatting off the content it scrapes? The table I’m pulling from (https://bustimes.org/stops/250012526) includes hyperlinks in several of the columns, and I’d like to format them as plain text.

      Any ideas how that could be achieved?
      Thanks again for this, it’s totally made things amazing :-)

      posted in Development
      C
      chris_d
    • RE: Error starting after upgrade

      @sdetweil
      v10.24.0

      I used manual upgrade running: git pull && npm run install-mm

      posted in Troubleshooting
      C
      chris_d
    • Error starting after upgrade

      Having applied the latest update I am having an issue starting.
      Output as below.

      Any pointers as to what might be going wrong?

      > magicmirror@2.25.0 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [04.10.2023 17:23.09.921] [LOG]   Starting MagicMirror: v2.25.0
      [04.10.2023 17:23.09.938] [LOG]   Loading config ...
      [04.10.2023 17:23.09.944] [DEBUG] config template file not exists, no envsubst
      [04.10.2023 17:23.09.954] [LOG]   Loading module helpers ...
      [04.10.2023 17:23.09.956] [LOG]   No helper found for module: alert.
      [04.10.2023 17:23.09.989] [LOG]   Initializing new module helper ...
      [04.10.2023 17:23.09.991] [LOG]   Module helper loaded: updatenotification
      [04.10.2023 17:23.09.992] [LOG]   No helper found for module: clock.
      [04.10.2023 17:23.10.576] [LOG]   Initializing new module helper ...
      [04.10.2023 17:23.10.577] [LOG]   Module helper loaded: MMM-Todoist
      [04.10.2023 17:23.10.844] [LOG]   Initializing new module helper ...
      [04.10.2023 17:23.10.844] [LOG]   Module helper loaded: calendar
      [04.10.2023 17:23.10.846] [LOG]   No helper found for module: MMM-Test.
      [04.10.2023 17:23.10.847] [LOG]   No helper found for module: MMM-DogAge.
      [04.10.2023 17:23.10.848] [LOG]   No helper found for module: MMM-CalendarExt3.
      [04.10.2023 17:23.10.906] [ERROR] (node:1324) UnhandledPromiseRejectionWarning: Error: Cannot find module 'html-to-text'
      Require stack:
      - /home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js
      - /home/pi/MagicMirror/modules/default/newsfeed/node_helper.js
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
          at n._resolveFilename (node:electron/js2c/browser_init:2:117457)
          at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:927:27)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Module.require (node:internal/modules/cjs/loader:1148:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/default/newsfeed/newsfeedfetcher.js:11:24)
          at Module._compile (node:internal/modules/cjs/loader:1269:14)
          at Module._extensions..js (node:internal/modules/cjs/loader:1324:10)
          at Module.load (node:internal/modules/cjs/loader:1124:32)
          at Module._load (node:internal/modules/cjs/loader:965:12)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Module.require (node:internal/modules/cjs/loader:1148:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/default/newsfeed/node_helper.js:10:25)
      (Use `electron --trace-warnings ...` to show where the warning was created)
      [04.10.2023 17:23.10.907] [ERROR] (node:1324) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      [1357:1004/172312.042226:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      
      posted in Troubleshooting
      C
      chris_d
    • Extreme basic question!

      I’ve written my own module to display a set of family tasks which rotate each week.
      Once I’ve done some javascript to build a string of HTML, I display with.

              var element = document.createElement("div")
              element.className = "myContent
              element.innerHTML = output;
              return element
      
      

      I just want to format this element with an existing magic mirror class so that the text doesn’t look massive and out of place, say “title” for example. But I can’t work out how to actually achieve that.

      posted in Custom CSS
      C
      chris_d
    • RE: Black screen on HMDI output, content on remote browser

      @MikeBishop I’m running MMM-Calendar3 and the default modules only.

      posted in Troubleshooting
      C
      chris_d
    • RE: Black screen on HMDI output, content on remote browser

      @sdetweil said in Black screen on HMDI output, content on remote browser:

      export ELECTRON_DISABLE_GPU=1

      No error now, but still a black screen

      posted in Troubleshooting
      C
      chris_d
    • RE: Black screen on HMDI output, content on remote browser

      @sdetweil said in Black screen on HMDI output, content on remote browser:

      pm2 stop all
      cd ~/MagicMirror
      npm start >somefile.txt 2>&1

      Errors are:
      [2883:0119/213451.321388:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
      [2916:0119/213451.509005:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

      posted in Troubleshooting
      C
      chris_d
    • RE: Black screen on HMDI output, content on remote browser

      @sdetweil said in Black screen on HMDI output, content on remote browser:

      lsb_release -a

      Distributor ID: Raspbian
      Description: Raspbian GNU/Linux 10 (buster)
      Release: 10
      Codename: buster

      I am using ssh to remote into the pi
      The following thread seems similar, but does not offer a solution
      https://forum.magicmirror.builders/topic/17211/having-trouble-with-launch-perhaps-display-value?page=1

      posted in Troubleshooting
      C
      chris_d
    • RE: Black screen on HMDI output, content on remote browser

      @sdetweil I am running the full desktop. yes.
      This used to work but following a Magic Mirror and pi system update it no longer does.
      I can see the desktop on boot up, but when pm2 runs the mirror then I get the blank screen.

      posted in Troubleshooting
      C
      chris_d