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

    Posts

    Recent Best Controversial
    • 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
    • RE: Black screen on HMDI output, content on remote browser

      @sdetweil
      The platform failed to initialize.Missing X server or $DISPLAY

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

      does electron window come up?

      No. I get ./node_modules/.bin.electron: No such file or directory

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

      @sdetweil That didn’t seem to work. It did eliminate any errors on startup, but the screen remainis blank.
      the command to start in mm.sh is

      DISPLAY=:0 npm start
      
      posted in Troubleshooting
      C
      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
    • RE: CalenderEXT2 with google calendars no longer displaying

      @sdetweil
      I did a full restart, clearing the logs first, and this is the output.

      0|MagicMir | [1088:0109/162348.758626:ERROR:connection.cc(66)] X connection error received.
      0|MagicMir | [1088:0109/162348.798329:ERROR:connection.cc(66)] X connection error received.
      0|MagicMir | /home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGSEGV
      0|MagicMir | npm ERR! code ELIFECYCLE
      0|MagicMir | npm ERR! errno 1
      0|MagicMir | npm ERR! magicmirror@2.18.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js`
      0|MagicMir | npm ERR! Exit status 1
      0|MagicMir | npm ERR! 
      0|MagicMir | npm ERR! Failed at the magicmirror@2.18.0 start script.
      0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
      0|MagicMir | 
      0|MagicMir | npm ERR! A complete log of this run can be found in:
      0|MagicMir | npm ERR!     /home/pi/.npm/_logs/2022-01-09T16_23_53_376Z-debug.log
      0|MagicMir | [1045:0109/162522.174590:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMir | [1077:0109/162523.097334:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMir | [1097:0109/162523.801422:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      

      The behaviour that I’m seeing is that all other modules load ok, but the space previously occupied with the Calendar-EXT2 is just blank

      posted in Troubleshooting
      C
      chris_d
    • CalenderEXT2 with google calendars no longer displaying

      I have an issue with CalendarEXT2.
      It has been displaying fine for a good long while but at some time around early Jan it stops displaying at all, leaving just a gap on the screen where it was previously displaying.
      As part of troubleshooting I upgraded to the latest version of Magic Mirror and then re-installed something called “request” which was referred to in the logs. This allowed magic mirror to start again, but the same “missing” calendar occurs.

      Any clues on where I can look to work out more?

      posted in Troubleshooting
      C
      chris_d
    • RE: MMM-CalendarExt2 showing daily in columns

      @chris_d And just to report that todays “shuffle” has resolved the issue.
      No idea what was going on there, possibly some caching. but I now have things working great. Thanks all.

      posted in Troubleshooting
      C
      chris_d
    • RE: MMM-CalendarExt2 showing daily in columns

      @ellings3n said in MMM-CalendarExt2 showing daily in columns:

      then you:

      Thanks.
      In an interesting development today the “today” section now has content but the “Saturday” content is blank, so it’s something to do with the number of columns. Will plug away at it and see if I can sort it.
      If I add a slotCount: “6”, I get the 6th column, but the 5th is still blank.
      Most strange…

      posted in Troubleshooting
      C
      chris_d
    • RE: MMM-CalendarExt2 showing daily in columns

      @ellings3n said in MMM-CalendarExt2 showing daily in columns:

      type: “row”,

      Greetings indeed :-)
      That has worked great thank you.
      I had some formatting issues, but I was trying to constrain it into the wrong region, now fixed.!

      I’ve run into another issue, in that it’s stopped displaying events “today”
      In the example screenshot here, there should be three events. The calendars are displaying events on other days.
      alt text
      Any ideas why “today” is not displaying?

      posted in Troubleshooting
      C
      chris_d
    • MMM-CalendarExt2 showing daily in columns

      I’ve had a good look round and a play with the different views.
      I’m really wanting a daily view where each day is a column of information, very much like the example for MMM-CalendarExt.
      When I use the daily view for MMM-CalendarExt2 it stacks the days on top of each other, see image.
      alt text

      How can I get them to be next to each other?

      posted in Troubleshooting
      C
      chris_d
    • 1 / 1