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

    smegbadger

    @smegbadger

    4
    Reputation
    11
    Profile views
    28
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    smegbadger Unfollow Follow

    Best posts made by smegbadger

    • Family Kitchen Calendar

      Got this up and running thanks to @karsten13 's help with screen blanking. Also had start-up issues as detailed here.

      Runs on a RPi 4B I had lying around with MagicMirrorOS driving the fabulous RPi monitor with a PIR sensor to sense people in the room for screen blanking. Viewing angle on this screen is very impressive, very sharp and crisp display.

      The Pi is in the boiler cupboard and wiring is hidden in 25x16mm trunking painted to match the wall. PIR sensor is in the tiniest project box I could find. Screen is on a VESA mount.

      MagicMirror modules:

      • MMM-Universal-Pir - controlling HDMI for screen sleep
      • clock
      • calendar - hidden, pulling UK Holidays and Family Google calendar feeding:
      • MMM-CalendarExt3Agenda with CSS mods so it fills most of the screen
      • MMM-MyGarbage
      • weather showing current and forecasts from UK met office
      • newsfeed showing BBC news

      MagicMirror1_1.jpg
      MagicMirror1_2.jpg
      MagicMirror1_3.jpg

      posted in Show your Mirror
      S
      smegbadger

    Latest posts made by smegbadger

    • RE: MM clock reverted to UTC

      @sdetweil What’s the procedure to update that module?

      posted in Troubleshooting
      S
      smegbadger
    • RE: MM clock reverted to UTC

      There is a git error in the Docker logs for MMM-CalendarExt3Agenda, though

      [2026-05-05 12:14:05.460] [ERROR] [updatenotification] Failed to get git revisions for MMM-CalendarExt3Agenda: Error: Command failed: git rev-list --ancestry-path --count 72816f2..ed664f3  main
      fatal: ambiguous argument '72816f2..ed664f3  main': unknown revision or path not in the working tree.
      Use '--' to separate paths from revisions, like this:
      'git <command> [<revision>...] -- [<file>...]'
      
      posted in Troubleshooting
      S
      smegbadger
    • RE: MM clock reverted to UTC

      @karsten13

      I did a docker compose pull in the opt/mm/run directory and that was successful

      magicm@magicmirror:/opt/mm/run $ docker compose pull
      [+] Pulling 17/17
       ✔ labwc Pulled                                                                                                    0.9s
       ✔ magicmirror Pulled                                                                                             81.9s
         ✔ 76b7b92b680d Already exists                                                                                   0.0s
         ✔ 5ee1ed488d07 Already exists                                                                                   0.0s
         ✔ 3154f7f9972b Already exists                                                                                   0.0s
         ✔ 73114b557eb0 Already exists                                                                                   0.0s
         ✔ 563f46f75d49 Already exists                                                                                   0.0s
         ✔ ad0a7f3409e8 Already exists                                                                                   0.0s
         ✔ 5a172ff577b3 Already exists                                                                                   0.0s
         ✔ 39715dbbbd4f Already exists                                                                                   0.0s
         ✔ 189de6907d33 Already exists                                                                                   0.0s
         ✔ e8dbedaf8b5d Pull complete                                                                                    0.4s
         ✔ 3c77d19aac28 Pull complete                                                                                    0.5s
         ✔ 8d20b36a9778 Pull complete                                                                                    0.5s
         ✔ 1d705635a0a9 Pull complete                                                                                   51.6s
         ✔ 5c309722c0df Pull complete                                                                                   80.1s
         ✔ 4f4fb700ef54 Pull complete                                                                                   80.2s
      

      but the clock and agenda are still on UTC. The Docker logs state this early on
      [INFO] ***WARNING*** could not set timezone, please set TZ variable in compose.yaml, see https://khassel.gitlab.io/magicmirror/configuration/#timezone

      UPDATE

      Before I could send this another day passed and now they are correct! Docker is still on UTC but the Clock and Agenda are correctly showing times on BST!

      magicm@magicmirror:~ $ date
      Tue  5 May 12:15:21 BST 2026
      magicm@magicmirror:~ $ docker exec -it mm bash
      node@magicmirror:/opt/magic_mirror$ date
      Tue May  5 11:15:28 AM UTC 2026
      
      posted in Troubleshooting
      S
      smegbadger
    • MM clock reverted to UTC

      Hi

      After a recent reboot (to update MMM-CalendarExt3Agenda and add some more dates to MMM-MyGarbage) I’ve noticed that the clock and agenda modules have reverted to UTC (should be BST right now).

      A quick look shows the docker container is now running with UTC (although the RPi is correctly on BST):

      magicm@magicmirror:~ $ date
      Sun  3 May 09:02:24 BST 2026
      magicm@magicmirror:~ $ docker exec -it mm bash
      node@magicmirror:/opt/magic_mirror$ date
      Sun May  3 08:02:36 AM UTC 2026
      

      I’ve not set the timezone (or date format) explicitly for the Docker before. Has a new release of Docker changed that and, if so, how do I pass that setting through?

      Many thanks

      Steve

      posted in Troubleshooting
      S
      smegbadger
    • RE: MMM-Universal-PIR - ‘GPIOcommand exited with error!'

      @karsten13 perfect, thank you. The Docker container has gpiomon at v2.2.1. It never occurred to me the container would update things unannounced!

      Many thanks for your help

      Steve

      posted in Troubleshooting
      S
      smegbadger
    • RE: MMM-Universal-PIR - ‘GPIOcommand exited with error!'
      magicm@magicmirror:/opt/mm/mounts/config $ gpiomon --help
      Usage: gpiomon [OPTIONS] <chip name/number> <offset 1> <offset 2> ...
      
      Wait for events on GPIO lines and print them to standard output
      
      Options:
        -h, --help:           display this message and exit
        -v, --version:        display the version and exit
        -l, --active-low:     set the line active state to low
        -B, --bias=[as-is|disable|pull-down|pull-up] (defaults to 'as-is'):
                      set the line bias
        -n, --num-events=NUM: exit after processing NUM events
        -s, --silent:         don't print event info
        -r, --rising-edge:    only process rising edge events
        -f, --falling-edge:   only process falling edge events
        -b, --line-buffered:  set standard output as line buffered
        -F, --format=FMT      specify custom output format
      
      Biases:
        as-is:        leave bias unchanged
        disable:      disable bias
        pull-up:      enable pull-up
        pull-down:    enable pull-down
      
      Format specifiers:
        %o:  GPIO line offset
        %e:  event type (0 - falling edge, 1 rising edge)
        %s:  seconds part of the event timestamp
        %n:  nanoseconds part of the event timestamp
      magicm@magicmirror:/opt/mm/mounts/config $ gpiomon -v
      gpiomon (libgpiod) v1.6.3
      Copyright (C) 2017-2018 Bartosz Golaszewski
      License: LGPLv2.1
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
      

      -r is listed in the library help for v1.6.3

      posted in Troubleshooting
      S
      smegbadger
    • RE: MMM-Universal-PIR - ‘GPIOcommand exited with error!'

      The Docker log shows
      [2026-02-10 11:30:10.955] [ERROR] [MMM-Universal-Pir] stderr: gpiomon: invalid option -- 'r' gpiomon: try gpiomon --help

      but gpiomon -r -b gpiochip0 23 works in a terminal when pasted from the config.js file, very strange

      It’s just stopped working!

      Steve

      posted in Troubleshooting
      S
      smegbadger
    • RE: MMM-Universal-PIR - ‘GPIOcommand exited with error!'

      Snag_1ee4e5ea.png

      posted in Troubleshooting
      S
      smegbadger
    • MMM-Universal-PIR - ‘GPIOcommand exited with error!'

      Hi

      With no warning (I haven’t carried out any updates) MMM-Universal-Pir is now failing. It shows under the ‘PIR SENSOR’ heading on the MM screen ‘gpioCommand exited with error!’

      Config is:

                          module: "MMM-Universal-Pir",
                              position: "bottom_right",
                              config: {
                                  gpioCommand: "gpiomon -r -b gpiochip0 23",
                                  onCommand: "wlr-randr --output HDMI-A-1 --on --transform 90",
                                  offCommand: "wlr-randr --output HDMI-A-1 --off",
                                  deactivateDelay: 120 * 1000,
                                  }
      

      and in a terminal gpiomon -r -b gpiochip0 23 shows events when the PIR is triggered and

      wlr-randr --output HDMI-A-1 --on --transform 90 and wlr-randr --output HDMI-A-1 --off still control the screen.

      gpiomon is v1.6.3

      What can have changed?

      Steve

      posted in Troubleshooting
      S
      smegbadger
    • Family Kitchen Calendar

      Got this up and running thanks to @karsten13 's help with screen blanking. Also had start-up issues as detailed here.

      Runs on a RPi 4B I had lying around with MagicMirrorOS driving the fabulous RPi monitor with a PIR sensor to sense people in the room for screen blanking. Viewing angle on this screen is very impressive, very sharp and crisp display.

      The Pi is in the boiler cupboard and wiring is hidden in 25x16mm trunking painted to match the wall. PIR sensor is in the tiniest project box I could find. Screen is on a VESA mount.

      MagicMirror modules:

      • MMM-Universal-Pir - controlling HDMI for screen sleep
      • clock
      • calendar - hidden, pulling UK Holidays and Family Google calendar feeding:
      • MMM-CalendarExt3Agenda with CSS mods so it fills most of the screen
      • MMM-MyGarbage
      • weather showing current and forecasts from UK met office
      • newsfeed showing BBC news

      MagicMirror1_1.jpg
      MagicMirror1_2.jpg
      MagicMirror1_3.jpg

      posted in Show your Mirror
      S
      smegbadger