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

    Posts

    Recent Best Controversial
    • RE: Default Clock wrong after update

      @sdetweil

      @sdetweil said in Default Clock wrong after update:

      which means it only uses its own config values, not the global config.

      This is what I was correcting. ;)

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Default Clock wrong after update

      @sdetweil Correction to your statement. timezone is set to null by default. timezone: null, - therefore, that if line would evaluate to false unless you override with timezone config item.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Default Clock wrong after update

      @drstang At least you can override it for now…

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Default Clock wrong after update

      @drstang does setting the timezone config option adjust it ?

      https://docs.magicmirror.builders/modules/clock.html#configuration-options

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: multiple modules in a region

      @roth_nj Been playing around, and here’s what I came up with.

      alt text

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: MMM-CalendarExt3

      @MMRIZE So, I’ve expanded my calendar larger for a DakBoard like setup, and noticed some cosmetic problems, mostly in background highlighting. Can you take a look and see what’s up?

      Also, I’d like the icons (using the symbols from calendar) to be row flexed not column flexed.

      Thanks.

      https://ibb.co/VL3qnsk

      		{
      			module: "MMM-CalendarExt3",
      			//disabled: true,
      			position: "top_right",
      			config: {
      				fontSize: '31.5px',
      				eventHeight: '36px',
      				animationSpeed: 0, 
      				mode: "month",
      				headerTitleOptions: {
      					month: 'long',
      					year: 'numeric', 
      				},
      				minimalDaysOfNewYear: 1,
      				refreshInterval: 60000,
      				useWeather: false,
      				useSymbol: true,
      				maxEventLines: 4,
      				firstDayOfWeek: 0,
      				calendarSet: ["Main", "Holidays", "Seahawks", "Sounders", "Bluejays", "Mariners", "Kraken", "XFL"],
      			},
      		},
      ``` css
      /* CalendarExt3 */
      .CX3 {
        --celllinecolor: #666;
        --cellbgcolor: rgba(0, 0, 0, 0.5);
        --cellheaderheight: 25px;
        --cellfooterheight: 2px;
        --defaultcolor: #FFF;
        --eventheight: calc(var(--fontsize) + 4px);
        --totalheight: calc(var(--eventheight) * var(--maxeventlines));
        --displayEndTime: none;
        --displayWeatherTemp: none;
        font-size: var(--fontsize);
        color: var(--defaultcolor);
        line-height: calc(var(--eventheight));
        min-width: 1280px; 
      }
      
      .module.MMM-CalendarExt3 .module-header {
      	color: white;
      	background-color: green;
      	border-radius: 8px;
      	text-transform: unset;
      	font-size: var(--font-size-medium);
      	line-height: var(--font-size-small)+5;
      	border: none;
        }
      
      .CX3 .thisMonth {
        background-color: rgba(0, 0, 0, 0.2);
      }
      
      /* get rid of unwanted elements */
      .CX3 .event.singleday .headline:not(.useSymbol)::before,
      .CX3 .event.singleday .headline.useSymbol .symbol.noSymbol::before {
        content: '⬤';
        color: var(--calendarColor);
        display: none;
        padding-right: 2px;
        font-size: 75%;
      }
      
      .CX3 .event:not(.fullday) .headline .time {
        display: none;
        padding-right: 2px;
        font-size: 75%;
        color: #EEE;
      }
      
      .CX3 .weekday_0 {
        color: #FFF;
      }
      
      .CX3 .weekday_6 {
        color: #FFF;
      }
      
      .CX3 .cw {
        font-size: 80%;
        color: goldenrod;
        display: none;
      }
      
      .CX3 .cw::before {
        content: 'CW '
      }
      
      .CX3 .title {
      	display: none;
      }
      
      posted in Utilities
      BKeyportB
      BKeyport
    • RE: warning warning , new os images today Oct 11

      @sdetweil so, does bookworm work at all for MM?

      posted in General Discussion
      BKeyportB
      BKeyport
    • RE: multiple modules in a region

      @sdetweil that’s half the fun of MM - whacking the CSS until you get what you want. :)

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: multiple modules in a region

      @sdetweil that being said, with a bit of CSS changes, you can get the calendar to grow quite a bit.

      I set mine to top_center, and use the following CSS to make it take up most of my center region and adjust it’s colors, cell sizes, etc…

      /* CalendarExt3 */
      .CX3 {
        --celllinecolor: #666;
        --cellbgcolor: rgba(0, 0, 0, 0.5);
        --cellheaderheight: 25px;
        --cellfooterheight: 2px;
        --defaultcolor: #FFF;
        --eventheight: calc(var(--fontsize) + 4px);
        --totalheight: calc(var(--eventheight) * var(--maxeventlines));
        --displayEndTime: none;
        --displayWeatherTemp: none;
        font-size: var(--fontsize);
        color: var(--defaultcolor);
        line-height: calc(var(--eventheight));
        min-width: 950px; 
      }
      

      With a little bit of work, and not putting anything in the right regions, you get the 2/3rds 1/3rd effect of Dakboard.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Regions

      @roth_nj yes. That’s begging for CalendarExt3 type functionality and a bit of heavy CSS.

      posted in Core System
      BKeyportB
      BKeyport
    • RE: Magic Mirror Update fail

      it also looks like the module isn’t supported anymore, at least the original is “Public archive” status - It’s a @bugsounet module, so I’d suggest going over to https://forum.bugsounet.fr/ for support if any is given.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Upgrade errors?

      @sdetweil turns out there was an update to MMM-Wallpaper that missed due to all the bugs in upgrading. 😉

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Upgrade errors?

      @sdetweil It does seem to work again on latest.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Upgrade errors?

      @sdetweil

      for my buster install:

      Ran “apply” re-run did bring back PM2 and other tools - No MagicMirror though. Says it’s running, but doesn’t appear.

      Running “force” re-run same result.

      0|MagicMirror  | > magicmirror@2.25.0 start
      0|MagicMirror  | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMirror  | [02.10.2023 15:49.10.094] [LOG]   Starting MagicMirror: v2.25.0
      0|MagicMirror  | [02.10.2023 15:49.10.101] [LOG]   Loading config ...
      0|MagicMirror  | [02.10.2023 15:49.10.105] [DEBUG] config template file not exists, no envsubst
      0|MagicMirror  | [02.10.2023 15:49.10.112] [LOG]   Loading module helpers ...
      0|MagicMirror  | [02.10.2023 15:49.10.114] [LOG]   No helper found for module: MMM-MagicMover.
      0|MagicMirror  | [02.10.2023 15:49.10.116] [LOG]   No helper found for module: alert.
      0|MagicMirror  | [02.10.2023 15:49.10.297] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.298] [LOG]   Module helper loaded: calendar
      0|MagicMirror  | [02.10.2023 15:49.10.319] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.320] [LOG]   Module helper loaded: MMM-CommandToNotification
      0|MagicMirror  | [02.10.2023 15:49.10.322] [LOG]   No helper found for module: clock.
      0|MagicMirror  | [02.10.2023 15:49.10.323] [LOG]   No helper found for module: MMM-Worldclock.
      0|MagicMirror  | [02.10.2023 15:49.10.326] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.327] [LOG]   Module helper loaded: MMM-ValuesByNotification
      0|MagicMirror  | [02.10.2023 15:49.10.328] [LOG]   No helper found for module: MMM-Multimonth.
      0|MagicMirror  | [02.10.2023 15:49.10.331] [LOG]   No helper found for module: MMM-CalendarExt3Agenda.
      0|MagicMirror  | [02.10.2023 15:49.10.332] [LOG]   No helper found for module: MMM-CalendarExt3.
      0|MagicMirror  | [02.10.2023 15:49.10.463] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.464] [LOG]   Module helper loaded: newsfeed
      0|MagicMirror  | [02.10.2023 15:49.10.519] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.519] [LOG]   Module helper loaded: MMM-OpenWeatherForecast
      0|MagicMirror  | [02.10.2023 15:49.10.525] [LOG]   Initializing new module helper ...
      0|MagicMirror  | [02.10.2023 15:49.10.525] [LOG]   Module helper loaded: updatenotification
      0|MagicMirror  | [02.10.2023 15:49.10.856] [ERROR] (node:7847) UnhandledPromiseRejectionWarning: Error: Cannot find module 'fetch'
      0|MagicMirror  | Require stack:
      0|MagicMirror  | - /home/bkey1970/MagicMirror/modules/MMM-Wallpaper/node_helper.js
      0|MagicMirror  | - /home/bkey1970/MagicMirror/js/app.js
      0|MagicMirror  | - /home/bkey1970/MagicMirror/js/electron.js
      0|MagicMirror  | - /home/bkey1970/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      0|MagicMirror  | - 
      0|MagicMirror  |     at node:internal/modules/cjs/loader:1084:15
      0|MagicMirror  |     at Function.<anonymous> (node:electron/js2c/browser_init:2:117419)
      0|MagicMirror  |     at Module._resolveFilename (/home/bkey1970/MagicMirror/node_modules/module-alias/index.js:49:29)
      0|MagicMirror  |     at node:internal/modules/cjs/loader:929:27
      0|MagicMirror  |     at Function._load (node:electron/js2c/asar_bundle:2:13327)
      0|MagicMirror  |     at Module.require (node:internal/modules/cjs/loader:1150:19)
      0|MagicMirror  |     at require (node:internal/modules/cjs/helpers:110:18)
      0|MagicMirror  |     at Object.<anonymous> (/home/bkey1970/MagicMirror/modules/MMM-Wallpaper/node_helper.js:11:15)
      0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1271:14)
      0|MagicMirror  |     at Object..js (node:internal/modules/cjs/loader:1326:10)
      0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:1126:32)
      0|MagicMirror  |     at node:internal/modules/cjs/loader:967:12
      0|MagicMirror  |     at Function._load (node:electron/js2c/asar_bundle:2:13327)
      0|MagicMirror  |     at Module.require (node:internal/modules/cjs/loader:1150:19)
      0|MagicMirror  |     at require (node:internal/modules/cjs/helpers:110:18)
      0|MagicMirror  |     at loadModule (/home/bkey1970/MagicMirror/js/app.js:180:19)
      0|MagicMirror  | (Use `electron --trace-warnings ...` to show where the warning was created)
      0|MagicMirror  | [02.10.2023 15:49.10.857] [ERROR] (node:7847) 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)
      0|MagicMirror  | [7847:1002/154911.190579:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
      0|MagicMirror  | MESA-LOADER: failed to retrieve device information
      0|MagicMirror  | MESA-LOADER: failed to retrieve device information
      0|MagicMirror  | MESA-LOADER: failed to retrieve device information
      0|MagicMirror  | MESA-LOADER: failed to open kms_swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      0|MagicMirror  | failed to load driver: kms_swrast
      0|MagicMirror  | MESA-LOADER: failed to open swrast (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri)
      0|MagicMirror  | failed to load swrast driver
      
      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: ReferenceError: primordials is not defined

      @sdetweil Running into the same thing with Node.js 20.8.0 on other platforms, to try and get around other issues.

      Confirmed on brand new Pi install - the install scripts fail as described. With the upgrade script failing too - there’s SOMETHING majorly wrong.

      Issue 69 on your github for scripts contains my install.log for that attempt.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Upgrade errors?

      @sdetweil It appears node and/or NPM is the problem - some of their newer dependencies aren’t compatible with older Raspbian installs, which will make it impossible for me to run what I want on the mirror.

      Losing OMXPlayer murders my setup - so I’m working on something else.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Upgrade errors?

      Nevermind. It appears required dependencies aren’t being updated to previous OSes. Time to switch away from Raspbian.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • Upgrade errors?

      @sdetweil – Apparently, script upgrade broke node on my system - can you help me figure how how to fix?

      Thanks!

      On run:

      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      

      upgrade output:

      doing test run = false
      update log will be in /home/bkey1970/MagicMirror/installers/upgrade.log
      Check current Node installation ...
      Node currently installed. Checking version number.
      Minimum Node version: v20.8.0
      Installed Node version: v16.20.2
      Node should be upgraded.
      Installing Node.js ...
      gpg: WARNING: unsafe ownership on homedir '/home/bkey1970/.gnupg'
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following packages will be upgraded:
        nodejs
      1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Need to get 27.0 MB of archives.
      After this operation, 63.7 MB of additional disk space will be used.
      Get:1 https://deb.nodesource.com/node_20.x buster/main armhf nodejs armhf 20.5.1-deb-1nodesource1 [27.0 MB]
      Fetched 27.0 MB in 7s (4,153 kB/s)                                                                                                                                                                       
      apt-listchanges: Reading changelogs...
      (Reading database ... 103684 files and directories currently installed.)
      Preparing to unpack .../nodejs_20.5.1-deb-1nodesource1_armhf.deb ...
      Unpacking nodejs (20.5.1-deb-1nodesource1) over (16.20.2-deb-1nodesource1) ...
      Setting up nodejs (20.5.1-deb-1nodesource1) ...
      Processing triggers for man-db (2.8.5-2) ...
      node version is node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      Node.js installation Done! version=
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      Check current NPM installation ...
      NPM currently installed. Checking version number.
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      Minimum npm version: V10.1.0
      Installed npm version: V
      npm should be upgraded.
      Installing npm ...
      E: Unable to correct problems, you have held broken packages.
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      npm installation Done! version=V
      
      apply: line 318: [: -ge: unary operator expected
      saving custom.css
      upgrading from version 2.24.0 to 2.25.0
      fetching latest revisions
      updating MagicMirror runtime, please wait
      apply: line 558: [: -ge: unary operator expected
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      Checking for modules with removed libraries
      node: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by node)
      no modules found needing npm refresh
      restoring custom.css
      
      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: MMM-CalendarExt3 how do you create multiple events with color css?

      Here’s my multi-transform code for reference. (The brackets may be off, I didn’t check on copy…)

      eventTransformer: (ev) => {
      					if (ev.title.search("🏠") > -1) {
      						ev.title = ev.title.replace("🏠 Personal Commitment","🏠 Personal Event");
      						ev.color = 'yellow';
      					}
      					if (ev.title.search("✈ Flight") > -1) {
      						ev.title = ev.title.replace("✈ Flight","🏠 Personal Event");
      						ev.color = 'yellow';
      					}
      					if (ev.title.search("busy") > -1) {
      						ev.title = ev.title.replace("busy","🏠 Mom Event");
      						ev.color = 'yellow';
      					}
      					if (ev.title.search("Weekley") > -1) {
      						ev.title = ev.title.replace("Weekley","Weekly");
      					}
      					return ev
      				}
      

      I’m using both CX3 and CX3A

      posted in Utilities
      BKeyportB
      BKeyport
    • RE: MMM-CalendarExt3

      @MMRIZE actually, I don’t need to extract - the symbols are set by default Calendar app, so I’d be using “useSymbol:True” to get them only.

      posted in Utilities
      BKeyportB
      BKeyport
    • 1
    • 2
    • 15
    • 16
    • 17
    • 18
    • 19
    • 66
    • 67
    • 17 / 67