the getScripts() function would be used to load JS libs you would manually put a script tag in the head section of the index.html to be able to call.
the getTemplates() is to provide the names of the template (njk) files that will render the html for the module content… the getTemplateData() function returns the data object the template file will access
getDom() returns the complete Dom object of the content to be published for this module at this time. you can do some tricks to reduce content flash by not replacing everything.
save the wrapper value and update not replace content inside it.
Tried various combinations of…
timeFormat: "relative", //"absolute",
dateFormat: "ddd Do MMMM", //"LLLL",
…but still only timed items show a day name, not whole day items.
LLLL or llll is the only mention in the moments doc of named week day.
@sdetweil
Got it!
In the user crontab:
30 2 * * * /usr/local/bin/node /usr/local/bin/pm2 restart mm
Restarts the mirror every day at 2:30 am local time.
As always, thanks for your quick response!
Bill
anyone facing issue with the api not updating?
in my mirror it is showing next api update is on 21 march 2026. current image showing epl data stats from late jan, meaning the recent matches data is not shown. like the games for yesterday is invisible as well.
Hello everyone, I need your help once again… I reinstalled my mirror using @sdetweil’s scripts, which are perfect. I reinstalled it because I had updated it 6 months ago and the mirror wouldn’t start anymore because the OS version was no longer supported. My problem is this: in the modules containing links to YouTube videos, they no longer work. I get a gray window with the following message: “This live stream recording is not available.” Do you know how to fix this? Thank you in advance for your help.
@atwist do this
pm2 status
pm2 info xxxx
where xxxx is the name/number on the row that contains the MagicMirror app
see the line in the output (example from my Mac, )
script path │ /Users/sam/MagicMirror/installers/mm.sh
is it pointing to the correct sh file??
That error is actually a ‘safety feature’ of the newer Raspberry Pi OS. Since they started protecting the system Python environment, you can’t just use pip install globally anymore. The easiest way around this is to use pipx. Try running these two commands-
sudo apt install pipx
pipx install mmpm
This installs MMPM in its own little ‘bubble’ so it doesn’t mess with the rest of your Pi’s system.
@smegbadger said in MMM-Universal-PIR - ‘GPIOcommand exited with error!':
It never occurred to me the container would update things unannounced!
the container does not update things on your host, but the container itself is running debian and (if you are using karsten13/magicmirror:latest) the debian version of the container image switched from bookworm to trixie …
@karsten13 Thank you for your advice.
To my shame, I must admit that I did not read the readme.md file.
Yes, after reinstalling I am using Trixie and I have to use the gpiomon V2
So with
gpiomon -e rising -c 0 17"
it works
Thank you again