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

    Posts

    Recent Best Controversial
    • RE: MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs

      @KristjanESPERANTO
      Thanks for your patience,

      Edit: did a complete reinstall and now it works. I must have misconfigured something and could not remember what or how.

      #############################
      This is what I have done:

      • I switched to the master branch yesterday and ran @sdetweil 's update script no change
      • I’ve done a fresh module install - no change
      • I’ve ran @sdetweil 's upgrade script - no change
      pi@magicmirror:~/MagicMirror $ git branch
        _fix_clipping
      * master
      pi@magicmirror:~/MagicMirror $ cd modules/MMM-PublicTransportHafas/
      pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ npm ci --omit=dev
      
      > mmm-publictransporthafas@3.1.11 prepare
      > [ -f node_modules/.bin/husky ] && husky || echo husky is not installed.
      
      husky is not installed.
      
      added 63 packages, and audited 64 packages in 20s
      
      19 packages are looking for funding
        run `npm fund` for details
      
      found 0 vulnerabilities
      pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $
      pi@magicmirror:~/MagicMirror $ grep version package.json
              "version": "2.31.0",
      

      Here’s my config.js

                      {
                              module: "MMM-PublicTransportHafas",
                              position: "top_right",
                              config: {
                                      stationID: "000405041",                   // Replace with your stationID!
                                      stationName: "Höfchen/Listmann",   // Replace with your station name!
                                      direction: "",                    // Show only departures heading to this station. (A station ID.)
                                      ignoredLines: [],                 // Which lines should be ignored? (comma-separated list of line names)
                                      excludedTransportationTypes: [],  // Which transportation types should not be shown on the mirror? (comma-separated list of types) possible values: StN for >
                                      timeToStation: 10,                // How long do you need to walk to the next Station?
                                      showColoredLineSymbols: true,     // Want colored line symbols?
                                      useColorForRealtimeInfo: true,    // Want colored real time information (timeToStation, early)?
                                      showTableHeadersAsSymbols: true,  // Table Headers as symbols or text?
                                      maxUnreachableDepartures: 0,      // How many unreachable departures should be shown?
                                      maxReachableDepartures: 10,        // How many reachable departures should be shown?
                                      customLineStyles: "",             // Prefix for the name of the custom css file. ex: Leipzig-lines.css (case sensitive)
                                      showOnlyLineNumbers: false        // Display only the line number instead of the complete name, i. e. "11" instead of "STR 11"
                                       }
                      },
      
      

      The error still occurs.
      At this point I’m completely clueless

      posted in Troubleshooting
      P
      p1lspeda
    • RE: MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs

      @KristjanESPERANTO
      I’ve upgraded to the latest MM Version

      pi@magicmirror:~/MagicMirror $ grep version package.json
              "version": "2.31.0-develop",
      
      [2025-05-07 09:57:22.742] [INFO]  System information:
      ### SYSTEM:   manufacturer: ; model: ; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.20+rpt-rpi-v8
      ### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
      ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
      
      

      And I still get this error

      [2025-05-07 09:57:19.297] [ERROR] Error when loading MMM-PublicTransportHafas: require() of ES Module /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs not supported.
      Instead change the require of /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs to a dynamic import() which is available in all CommonJS modules.
      

      My module version:

      pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ grep version package.json
        "version": "3.1.11",
      pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ git pull
      Already up to date.
      

      I do not know what else I can do or what I have missed

      posted in Troubleshooting
      P
      p1lspeda
    • RE: MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs

      @p1lspeda said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:

      @KristjanESPERANTO said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:

      Here you go

      [2025-05-06 06:46:30.229] [INFO]  System information:
      ### SYSTEM:   manufacturer: ; model: ; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.20+rpt-rpi-v8
      ### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
      ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
      
      

      Although it is not listed, I am running a Raspberry Pi 4

      pi@magicmirror:~ $ lscpu
      Architecture:             aarch64
        CPU op-mode(s):         32-bit, 64-bit
        Byte Order:             Little Endian
      CPU(s):                   4
        On-line CPU(s) list:    0-3
      Vendor ID:                ARM
        Model name:             Cortex-A72
          Model:                3
          Thread(s) per core:   1
          Core(s) per cluster:  4
          Socket(s):            -
          Cluster(s):           1
          Stepping:             r0p3
          CPU(s) scaling MHz:   50%
          CPU max MHz:          1800.0000
          CPU min MHz:          600.0000
          BogoMIPS:             108.00
          Flags:                fp asimd evtstrm crc32 cpuid
      Caches (sum of all):
        L1d:                    128 KiB (4 instances)
        L1i:                    192 KiB (4 instances)
        L2:                     1 MiB (1 instance)
      NUMA:
        NUMA node(s):           1
        NUMA node0 CPU(s):      0-3
      Vulnerabilities:
        Gather data sampling:   Not affected
        Itlb multihit:          Not affected
        L1tf:                   Not affected
        Mds:                    Not affected
        Meltdown:               Not affected
        Mmio stale data:        Not affected
        Reg file data sampling: Not affected
        Retbleed:               Not affected
        Spec rstack overflow:   Not affected
        Spec store bypass:      Vulnerable
        Spectre v1:             Mitigation; __user pointer sanitization
        Spectre v2:             Vulnerable
        Srbds:                  Not affected
        Tsx async abort:        Not affected
      
      posted in Troubleshooting
      P
      p1lspeda
    • RE: MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs

      @KristjanESPERANTO said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:

      Here you go

      [2025-05-06 06:46:30.229] [INFO]  System information:
      ### SYSTEM:   manufacturer: ; model: ; virtual: false
      ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.20+rpt-rpi-v8
      ### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
      ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
      
      
      posted in Troubleshooting
      P
      p1lspeda
    • RE: MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs

      Hi,
      I can confirm: I have the same issue.
      Updated to latest node and MM version.
      Did a npm -install after updating MM and node. Unfortunately it did not have an effect.

      Any tips ?

      Error message:
      [2025-05-04 20:17:43.557] [ERROR] Error when loading MMM-PublicTransportHafas: require() of ES Module /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs not supported. Instead change the require of /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs to a dynamic import() which is available in all CommonJS modules.

      posted in Troubleshooting
      P
      p1lspeda
    • RE: MMM-CalendarExt3

      Thanks folks,
      much appreciated that you invest your free-time to help simpletons like me.
      My custom.css now includes

      .CX3 .cellHeader .cellDate {
              flex-grow: 0;
      }
      
      .CX3 .cw::before {
              content: "CW";
              margin-right: 0px;
      }
      

      which seems to achieve what I was/am looking for.

      posted in Utilities
      P
      p1lspeda
    • RE: MMM-CalendarExt3

      Hi,
      CSS is driving my crazy.
      9a7f7331-0a18-4211-a87d-c0ac29321eca-image.png

      As you can see in the above screenshot, today (Tuesday) the top (weather, today’s Date & Month) take up the entire width.
      This is fine.
      The “problem” was yesterday with the additional “CW13” which led to overlapping.
      I was wondering; if I could minimize the padding around the current date (the red area in the screenshot), theoretically the space should be big enough for all info to be next to each other

      I tried adjusting the css

      .CX3 .today .cellDate {
        padding: 1px 8px;
        }
      

      but unfortunately, that did not have any effect.

      Can somebody point me in the right direction ?
      Thanks

      posted in Utilities
      P
      p1lspeda
    • RE: MMM-CalendarExt3

      @sdetweil Thanks for pointing me in the right direction.
      Seems I need to play around with css.

      posted in Utilities
      P
      p1lspeda
    • RE: MMM-CalendarExt3

      Re: MMM-CalendarExt3

      Next (easy) question:
      My CX3 module doesn’t have symmetrical borders (left & right), i.e. the left border is smaller than the right border.
      I want to maximize the width or at least have symmetrical borders.
      Border = distance between module edge and display edge
      See the screenshot:
      649675de-98ba-4471-87b8-e8ae36718248-image.png

      How can I adjust these in my custom.css ?
      My custom.css includes

      body {
              margin: 10px;
              position: absolute;
              height: calc(100% - 30px);
              width: calc(100% - 30px);
      }
      

      A hint/clue/idea would be very much appreciated.
      Thanks !

      posted in Utilities
      P
      p1lspeda
    • RE: MMM-CalendarExt3

      @sdetweil
      thanks for the help.
      Did that - no change.
      Same problem and I have no idea where to start an look

      Edit: HA ! I decreased the refreshIntervall and it seems as that did the trick - I could have probably just waited 30min (but I’m impatient)

      posted in Utilities
      P
      p1lspeda
    • 1
    • 2
    • 3
    • 4
    • 5
    • 2 / 5