Did you set the displayType to both?

analogShowDate is obsolete. Check if this is what you want:
{
module: "clock",
position: "top_left",
config: {
displayType: 'both',
analogSize: '200px',
analogFace: 'face-003',
analogPlacement: 'bottom',
lat: 52.389870,
lon: 10.852678,
showDate: true,
showWeek: true,
showTime: false,
dateFormat: 'dddd D MMMM',
secondsColor: '#FF0000',
timezone: 'Europe/Berlin'
}
},
@DarrenHill said in 2.22.0 but showing update available?:
Was more curious about why that would be saying I’m up to date if there is a commit. If there is a version-up missing or something.
There was a small fix in the README, actually totally irrelevant to the operation of the mirror.
Happy New Year to you too! :-)
Please show the part of your configuration that affects the clock.
There was an additional commit yesterday. I don’t work with an update script, so I don’t know what yours does. In this case just go into your MagicMirror folder and run git pull .
@sdetweil As a soft step, the broken modules could switch to @electron/rebuild. This should also work for docker.
@wishmaster270 Okay, thanks for the explanation! I haven’t been able to read that anywhere in such clear words and I haven’t dealt with the past problems. Then I withdraw my recommendation because I lack the overview.
@wishmaster270 OK, you’re welcome.
Since the thread is also for other developers: I recommend considering my approach, as I consider the other approach (installing to a higher-level directory) to be more error-prone. But it’s a creative workaround.
Yes, but @electron/rebuild is the successor of electron-rebuild. And the “trick” in the postinstall script seems not necessary at all.
The problems on my machine are obviously of a different nature. I’ll investigate that later.
For the original issue it should be worth using @electron/rebuild instead of magicmirror-rebuild or electron-rebuild. I tested it in a virtual machine and it works great. Here is my solution which is less invasive:
https://github.com/Tom-Hirschberger/MMM-GPIO-Notifications/pull/7
What do you think?
For me it looks like this:
kristjan@debian:~/Infomonitor/MagicMirror/modules$ git clone https://github.com/sdetweil/MMM-Buttons.git
Cloning into 'MMM-Buttons'...
remote: Enumerating objects: 56, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 56 (delta 0), reused 2 (delta 0), pack-reused 52
Receiving objects: 100% (56/56), 11.86 KiB | 1.69 MiB/s, done.
Resolving deltas: 100% (25/25), done.
kristjan@debian:~/Infomonitor/MagicMirror/modules$ cd MMM-Buttons/
kristjan@debian:~/Infomonitor/MagicMirror/modules/MMM-Buttons$ npm install
npm ERR! code 1
npm ERR! path /home/kristjan/Infomonitor/MagicMirror/modules/MMM-Buttons/node_modules/epoll
npm ERR! command failed
npm ERR! command sh -c -- node-gyp rebuild
npm ERR! make: Entering directory '/home/kristjan/Infomonitor/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
npm ERR! CXX(target) Release/obj.target/epoll/src/epoll.o
npm ERR! SOLINK_MODULE(target) Release/obj.target/epoll.node
npm ERR! make: Leaving directory '/home/kristjan/Infomonitor/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.3.1
npm ERR! gyp info using node@16.18.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/kristjan/Infomonitor/MagicMirror/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/kristjan/Infomonitor/MagicMirror/modules/MMM-Buttons/node_modules/epoll/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/kristjan/Infomonitor/MagicMirror/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/kristjan/.cache/node-gyp/16.18.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/kristjan/.cache/node-gyp/16.18.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/kristjan/Infomonitor/MagicMirror/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/kristjan/.cache/node-gyp/16.18.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/kristjan/Infomonitor/MagicMirror/modules/MMM-Buttons/node_modules/epoll',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! /usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: unknown type [0x13] section `.relr.dyn'
npm ERR! /usr/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libm.so.6 when searching for /lib/x86_64-linux-gnu/libm.so.6
npm ERR! /usr/bin/ld: cannot find /lib/x86_64-linux-gnu/libm.so.6
npm ERR! /usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: unknown type [0x13] section `.relr.dyn'
npm ERR! /usr/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libm.so.6 when searching for /lib/x86_64-linux-gnu/libm.so.6
npm ERR! /usr/bin/ld: /lib/x86_64-linux-gnu/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
npm ERR! /usr/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libmvec.so.1 when searching for /lib/x86_64-linux-gnu/libmvec.so.1
npm ERR! /usr/bin/ld: cannot find /lib/x86_64-linux-gnu/libmvec.so.1
npm ERR! /usr/bin/ld: /lib/x86_64-linux-gnu/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
npm ERR! /usr/bin/ld: skipping incompatible /lib/x86_64-linux-gnu/libmvec.so.1 when searching for /lib/x86_64-linux-gnu/libmvec.so.1
npm ERR! collect2: error: ld returned 1 exit status
npm ERR! make: *** [epoll.target.mk:145: Release/obj.target/epoll.node] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/home/kristjan/Infomonitor/MagicMirror/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm ERR! gyp ERR! System Linux 5.10.0-20-amd64
npm ERR! gyp ERR! command "/home/kristjan/.nvm/versions/node/v16.18.0/bin/node" "/home/kristjan/Infomonitor/MagicMirror/node_modules/.bin/node-gyp" "rebuild"
npm ERR! gyp ERR! cwd /home/kristjan/Infomonitor/MagicMirror/modules/MMM-Buttons/node_modules/epoll
npm ERR! gyp ERR! node -v v16.18.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kristjan/.npm/_logs/2023-01-06T18_47_25_457Z-debug-0.log
kristjan@debian:~/Infomonitor/MagicMirror/modules/MMM-Buttons$ uname -r
5.10.0-20-amd64
kristjan@debian:~/Infomonitor/MagicMirror/modules/MMM-Buttons$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
To me this looks like a problem with the onoff package. Because if I remove onoff from the package.json, npm i works.
onoff also comes with the dependency epoll, which appears a lot in the error messages.
npm i onoff and npm i epoll produce similar error messages. I think that’s where the main problem is.
Since 6.14.12 there have been a lot of bug fixes, so an upgrade is recommended. And MM works fine with 8.19.2.
Which module are you using and how did you configure it?
Out of curiosity: I can’t find any Python Print Module on the list of 3rd party modules. Which one is it exactly?
I now have no idea how we can solve this properly. Would it perhaps be a solution for you to integrate the module twice, with the two different IDs?
Thanks 🙂 I’ve created a Pull Request.
The module uses the request package, which is not in the dependencies. Try npm install request in the module directory.
@fantasmic78 I am glad that I could help.
It would be good to improve the documentation for such cases. Do you have a concrete suggestion how?