@KristjanESPERANTO I always update with the MMM-Remote module
Read the statement by Michael Teeuw here.
Posts made by luisestrada
-
RE: New update, new fail
-
RE: New update, new fail
@luisestrada said in New update, new fail:
App threw an error during load
Error: Cannot find module ‘ansis’I was able to fix it with this
sudo npm install ansis
then the error was systeminformation and I did the same
sudo npm install systeminformation
FInally pm2 was the issue and I had to do
sudo npm install pm2
I also applied the following as the process requested it
npm audit fix --force
-
New update, new fail
Hi All,
With this new update I got a new error and I can’t get a solution. Any help is much appreciated.
App threw an error during load
Error: Cannot find module ‘ansis’> magicmirror@2.27.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js App threw an error during load Error: Cannot find module 'ansis' Require stack: - /home/pi/MagicMirror/js/logger.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:116646) at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at /home/pi/MagicMirror/js/logger.js:5:19 at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:2) at Module._compile (node:internal/modules/cjs/loader:1271:14) at Object..js (node:internal/modules/cjs/loader:1326:10) at Module.load (node:internal/modules/cjs/loader:1126:32) at node:internal/modules/cjs/loader:967:12 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module 'ansis' Require stack: - /home/pi/MagicMirror/js/logger.js - /home/pi/MagicMirror/js/app.js - /home/pi/MagicMirror/js/electron.js - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:116646) at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) at node:internal/modules/cjs/loader:929:27 at Function._load (node:electron/js2c/asar_bundle:2:13327) at Module.require (node:internal/modules/cjs/loader:1150:19) at require (node:internal/modules/cjs/helpers:121:18) at /home/pi/MagicMirror/js/logger.js:5:19 at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:2)
Regards,
Luis -
RE: MMM-CalendarExt3Agenda
@MMRIZE said in MMM-CalendarExt3Agenda:
@luisestrada
Done. (Released. v1.4.2)
A new config value,relativeNamedDayOptions
, is introduced. Now People can modify the option generally.However, for your specific purpose (
en X días
instead ofdentro de X días
), further step is needed.Only the Mexican locale supports
en X días
format withrelativeNamedDayOptions: {style : 'short' }
, other Spanish-locales don’t.
So to geten X días
, you have to uselocale: 'es-MX'
regardless of which country you live.locale: "es-MX", relativeNamedDayOptions: { style: "short", },
If you are living in Mexico, there would be no issue. But in other countries where the week starts on Monday, 2 more configuration is needed.
locale: "es-MX", relativeNamedDayOptions: { style: "short", }, firstDayOfWeek: 1, minimalDaysOfNewYear: 4,
Of course, if you don’t care
dentro de 3 días
, You can use any locale under which you live.locale: "es-ES",
Thank you so much, it’s working perfectly. I had Spanish Colombia but I ended up switching to Mexico to make it work.
-
RE: MMM-CalendarExt3Agenda
@BKeyport said in MMM-CalendarExt3Agenda:
@luisestrada I believe that’s a translation error - and may not even be “our” fault…
I see there’s nothing we can do, with my limited programming skills I was able to get to row 271 in MMM-CalendarExt3Agenda.js
let p = new Intl.RelativeTimeFormat(options.locale, { numeric: "auto", style: "long" })
and I found out that Intl.RelativeTimeFormat is written like that, for Spanish locale settings.
As I said before it’s not wrong but they could have said “en 3 días” instead of “dentro de 3 días”. It’s like in English when you say “in 3 days” and “within 3 days”.
-
RE: MMM-CalendarExt3Agenda
@BKeyport I tried to find the source but no idea where this comes from.
-
RE: MMM-CalendarExt3Agenda
Happy new year everyone!
Indeed the fix works now. Thank you @MMRIZE
Another comment, even though “dentro de X días” is correct in Spanish it’s also long. It could also be said “En X días” and it will be also correct. Not an issue but a suggestion.
-
RE: Sonos Module
I tried to reinstall this module, several times, to make it work, with no luck. After new year’s there was a MagicMirror Update, Jan 2024, and it fixed itself. No idea why or how this happened but it works again
-
RE: MMM-CalendarExt3Agenda
@CDT said in MMM-CalendarExt3Agenda:
Possible bug here. The Agenda doesn’t show scheduled events on the final day as set by the endDateIndex.
I’m trying to get the Ext3Agenda to show me just a single day. Using startDayIndex:0, endDateIndex:0. When doing this, it only shows full-day events, not events scheduled a specific time.
If I change endDateIndex:1, then I get the proper items appearing, but also a header for day 2.
I notice that not matter what the endDateIndex is listed, it doesn’t seem to show sheduled events the last day. Only the header and any full-day events.
I think you are referring to the same issue I posted a while ago but unfortunately I was not able to make myself clear.
-
Sonos Module
Hi @Snille
Merry Christmas, and a prosperous 2024 for you and all in this forum.
My module was working for years and 3 months ago I started getting this loading message (I was busy and could no troubleshoot it earlier). When I access localhost:5005/zone I see all the information but the module does not capture it. I tried to add it again but still with no luck.
I also tried the IP and localhost and non of them work. This started happening after an update, I don’t know which one. ehehehe