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

    kribbitykrab

    @kribbitykrab

    0
    Reputation
    2
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    kribbitykrab Unfollow Follow

    Latest posts made by kribbitykrab

    • RE: MMM-CalendarExt3

      @sdetweil As always, thank you for the response!

      I added the pingInterval and pingTimeout lines to both MagicMirror/js/server.js and MagicMirror/js/socketclient.js as described in your link.

      I have also moved my fetchInterval into the config portion of my calendar module as you requested, and increased it to 10minutes. I added a waitFetch of 10sec into my MMM-CalendarExt3 module config, along with a refreshInterval of 10minutes.

      When I run MM now however, I am unable to reach localhost. I get an error on Midori booth that says Could not connect: Connection refused. Potentially something to do with the server.js and socketclient.js fiddling? Appreciate further guidance!

      posted in Utilities
      K
      kribbitykrab
    • RE: MMM-CalendarExt3

      Hi folks,

      Trying to get MMM-CalendarExt3 working on my Pi Zero W running MM v2.30.0 and running into an issue where the calendar is blank. Relevant config.js below:

      {
         module: "calendar",
         config: {
            broadcastPastEvents: true,
            maximumEntries: 10000,
            colored: true,
            calendars: [
                {
                     fetchInterval: 1* 60 * 1000,
                     symbol: "calendar-check",
                     name: "p_and_b",
                     color: "rgba(255, 0, 0, 1)",
                     url: "..."
                },
                {
                     fetchInterval: 1* 60 * 1000,
                     name: "cal2",
                     color: "rgba(0, 0, 255, 1)",
                     url: "..."
                }
             [
         }
      },
      {
         module: "MMM-CaendarExt3",
         position: "bottom_bar",
         title: "family dashboard",
         config: {
            mode: "month"
            instanceID: "basicCalendar",
            locale: 'en-US'
            maxEventLines: 5,
            firstDayOfWeek: 1,
            calendarSet: ["p_and_b", "cal2"]
         }
      },
      

      Can anyone help me understand why my monthly calendar is coming up blank and a workaround?

      posted in Utilities
      K
      kribbitykrab
    • RE: Installer scripts on Raspberry Pi Zero 2 W

      @sdetweil Weird sequence of events. Midori did end up booting, but then it just stayed on a blank white page without loading anything else. I let it sit for a couple hours just in case it was being slow, but no dice. I alt-tabbed back to the terminal to see if I had any error logs or something. I didn’t see anything, so I alt-tabbed back, and voila! I have a display!

      I didn’t change the config.js file, so I assume this is the default setup. I see date, time, holidays in the top left. In the center I see some compliments and some news headlines. In the top right I see the weather!

      I guess now I can try to fiddle around to get the calendar modules setup how I’d like.

      Would ideally like this to boot on launch of the pi 0w, any advice there would also be handy.

      From the default timing display, it appears it’s refreshing anywhere from every second to every ~10seconds.

      posted in Troubleshooting
      K
      kribbitykrab
    • RE: Installer scripts on Raspberry Pi Zero 2 W

      @sdetweil Ah! I had thought I had to do those steps in the other order so I hadn’t ran the setup_over_server script yet–I have ran it now.

      The readout after DISPLAY=:0 npm start is not much more promising. Can’t quite share a screenshot from here, but it has gotten to the point where it says “Ready to go! Please point your browser to” and it’s trying to start Midori!

      Now the waiting game.

      posted in Troubleshooting
      K
      kribbitykrab
    • RE: Installer scripts on Raspberry Pi Zero 2 W

      @sdetweil I executed the following commands one after the other according to the readme:

      export external_browser=midori
      DISPLAY=:0 npm start

      This gives me the following readout:


      magicmirror@2.30.0 start
      npm run start:x11

      magic mirror@2.30.0 start:x11
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

      sh: 1: ./node_modules/.bin/electron: not found


      I had though that Midori supported electron, and I am (barely) able to get Midori to boot from the desktop environment. Advice?

      Thanks!

      posted in Troubleshooting
      K
      kribbitykrab
    • RE: Installer scripts on Raspberry Pi Zero 2 W

      @sdetweil Ok, so I got the v2.30.0 MM installed using your instructions above, thanks again.

      I also was able to get pm2 installed with a:
      sudo npm install -g pm2

      I was able to get pm2 to auto generate the ecosystem.config.js somehow. I also had to copy an index.js in from somewhere into the MagicMirror directory. I also made a copy of the sample_config.js and titled it config.js just for a dry run.

      But now when I try to do a:
      pm2 start

      I get a few warnings and errors:
      [PM2][WARN] Applications service-worker not running, starting…
      [PM2][ERROR] Error: Script not found: /home/./MagicMirror/service-worker

      I clearly need a service-worker script to start something, guessing something listed in the default config.js. When I do a pm2 list I see the v2.30.0 MM with PID 2444, which is neat I guess.

      How do I figure out what service-worker script I’m missing and how do I get it installed where I need to?

      I should mention at this point I was hoping to use this project to self-host and display a calendar on a display via MM. I’m starting to think I may need to upgrade to a beefier pi than the Zero W given the challenges so far, but want to see how far I can get first given that this is the hardware I already have on hand.

      posted in Troubleshooting
      K
      kribbitykrab
    • RE: Installer scripts on Raspberry Pi Zero 2 W

      @sdetweil Thank you so much for the reply! I believe you are correct, I think this is indeed a Pi Zero W, not the 2W–thanks for getting me on the right track.

      I’ll give the v2.30.0 MM a shot, appreciate it! Will try to send the install log to you over email as well.

      posted in Troubleshooting
      K
      kribbitykrab
    • Installer scripts on Raspberry Pi Zero 2 W

      Apologies if this is a duplicate topic.

      I’ve been trying to get Magic Mirror installed on my Pi Zero 2 W. I have tried to run the master install script from here: https://github.com/sdetweil/MagicMirror_scripts

      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)”

      However this gives me the following error:
      “nodejs version required for MagicMirror is no longer available for armv61 (pi0w) devices”

      I’ve also tried the below:
      git clone https://github.com/MichMich/MagicMirror
      cd MagicMirror/
      npm install --only=prod --omit=dev

      However I see a series of error codes here as well:
      npm error code EBADENGINE
      npm error engine Unsupported engine
      npm error engine Not compatible with your version of node/npm: magicmirror@2.32.0
      npm error engine Not compatible with your version of node/npm: magicmirror@2.32.0
      npm error notsup Required: {“node”:“>=22.14.0”}
      npm error notsup Actual: {"NPM:“10.8.2”,“node”:“v20.18.1”}

      Currently on node v20.18.1 and npm 10.8.2.

      It seems the newer versions of MM require versions of nodejs which aren’t supported on the Zero 2 W hardware. Is there a version of the installer script that will let me point to an older version of MM?

      Any guidance would be appreciated!

      posted in Troubleshooting
      K
      kribbitykrab