@lavolp3 thank’s a lot man, you are much faster and way more skilled than me :-)
Just a little discussion: your code only adds the if clause to check if it’s longer than a day to prevent single full day events to be displayed as two day. But what about a multi day event beeing displayed one day to long (which is also happening right now)?
Read the statement by Michael Teeuw here.
Posts
-
RE: module calendar showing full day events one day to long
-
RE: module calendar showing full day events one day to long
thanks for your comments @Nilnik @StrIIker
This solves the problem, but that’s not a solution :-)
It’s more a kind of a hack to hide the problem. I use it to show my daily apointments inclunding multiday ones. Having the mirror show only e.g. my holiday started 5 days ago without a duration is kind of useless.
As I’m not the only one having that, did anyone ever looked into deeply? Where does this start? Is it a problem with timezones incorrectly submitted by google calendar? Is it a problem of fetching in MM?
If anyone has a guess, I would greatly appreciate any help. When I know where to look, I might also try to search the root of that bug.
Are there some people using it and where it works correctly? Or is simply no one using this module at all (without that hack)? -
RE: module calendar showing full day events one day to long
I just checked, my google account is set to timezone Berlin and my raspberry is too (set in raspi-config). Is there an additional setting for the magicmirror?
-
module calendar showing full day events one day to long
Hi,
I use the standard calendar module and it works to my expactations. Only one thing is strange: when I enter a full day event in my google calendar, no matter if 1 day or multiple days, it will be displayed to be on day longer on the MagicMirror.
So a full day event for today (12th october) would be display for today and tomorrow (12th to 13th october). Does anyone know why?Regards,
Anduril -
RE: MagicMirror quits without errors
It seems to be working fine again here… I don’t have any idea what has happened. But I will keep an eye out for further problems.
-
MagicMirror quits without errors
Hey,
a few days ago I upgraded to 2.5.0. I don’t know if it’s correlated, but I can’t exclude…
This morning I noticed my Mirror showing the desktop and not the mirror interface. It seems to be in a restarting loop, but I don’t see any reason why. I also tried to start it manually without pm2, but I just saidLaunching application.
and returned to the console. Has anyone an idea how to find the cause?Regards,
Andurilpi@Spieglein:~ $ pm2 logs MagicMirror [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option) /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines: 0|MagicMir | No helper found for module: MMM-doomsDay. 0|MagicMir | No helper found for module: MMM-forecast-io. 0|MagicMir | All module helpers loaded. 0|MagicMir | Starting server on port 8080 ... 0|MagicMir | You're using a full whitelist configuration to allow for all IPs 0|MagicMir | Server started ... 0|MagicMir | Connecting socket for: MMM-Remote-Control 0|MagicMir | Starting node helper for: MMM-Remote-Control 0|MagicMir | Connecting socket for: updatenotification 0|MagicMir | Connecting socket for: MMM-DVB 0|MagicMir | Starting module helper: MMM-DVB 0|MagicMir | Connecting socket for: calendar 0|MagicMir | Starting node helper for: calendar 0|MagicMir | Sockets connected & modules started ... 0|MagicMir | Launching application. /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines: 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information 0|MagicMir | libGL error: MESA-LOADER: failed to retrieve device information
pi@Spieglein:~/MagicMirror $ DISPLAY=:0 npm start dev > magicmirror@2.5.0 start /home/pi/MagicMirror > sh run-start.sh "dev" Starting MagicMirror: v2.5.0 Loading config ... Loading module helpers ... No helper found for module: alert. Initializing new module helper ... Module helper loaded: MMM-Remote-Control Initializing new module helper ... Module helper loaded: updatenotification Initializing new module helper ... Module helper loaded: MMM-DVB No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar No helper found for module: compliments. No helper found for module: MMM-doomsDay. No helper found for module: MMM-forecast-io. All module helpers loaded. Starting server on port 8080 ... You're using a full whitelist configuration to allow for all IPs Server started ... Connecting socket for: MMM-Remote-Control Starting node helper for: MMM-Remote-Control Connecting socket for: updatenotification Connecting socket for: MMM-DVB Starting module helper: MMM-DVB Connecting socket for: calendar Starting node helper for: calendar Sockets connected & modules started ... Launching application. pi@Spieglein:~/MagicMirror $
-
RE: stopping MM via pm2 does not close electron - at restart I get EADDRINUSE
some additional information: when running fine, pm2 seems to be the parent process:
612 ? Ssl 0:34 PM2 v3.1.3: God Daemon (/home/pi/.pm2) 797 ? Ss 0:00 \_ bash /home/pi/MagicMirror/installers/mm.sh 799 ? Sl 0:04 \_ npm 946 ? S 0:00 \_ sh -c sh run-start.sh 947 ? S 0:00 \_ sh run-start.sh 949 ? Sl 0:01 \_ node /home/pi/MagicMirror/node_modules/.bin/electron js/electron.js 958 ? Sl 8:43 \_ /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js 960 ? S 0:00 \_ /home/pi/MagicMirror/node_modules/electron/dist/electron --type=zygote --no-sandbox 1088 ? Sl 4:50 | \_ /home/pi/MagicMirror/node_modules/electron/dist/electron --type=renderer --no-sandbox --service-pipe-token=756DBD94487A30A46611ABEDF5588C31 -- 1087 ? Sl 0:05 \_ /home/pi/MagicMirror/node_modules/electron/dist/electron --type=gpu-process --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=9
but as soon as I stop MM in pm2 I see 2 different parent processes:
612 ? Ssl 0:34 PM2 v3.1.3: God Daemon (/home/pi/.pm2) 958 ? Sl 8:45 /home/pi/MagicMirror/node_modules/electron/dist/electron js/electron.js 960 ? S 0:00 \_ /home/pi/MagicMirror/node_modules/electron/dist/electron --type=zygote --no-sandbox 1088 ? Sl 4:51 | \_ /home/pi/MagicMirror/node_modules/electron/dist/electron --type=renderer --no-sandbox --service-pipe-token=756DBD94487A30A46611ABEDF5588C31 --lang=de --app-path=/home 1087 ? Sl 0:05 \_ /home/pi/MagicMirror/node_modules/electron/dist/electron --type=gpu-process --no-sandbox --supports-dual-gpus=false --gpu-driver-bug-workarounds=9,27,84 --disable-gl-exte
so pm2 is still running, but left the electron browser also running now without a parent.
-
stopping MM via pm2 does not close electron - at restart I get EADDRINUSE
Hey there,
always after restarting I get an error
EADDRINUSE
. To investigate I looked at `netstat -lptn’ to see which program uses what port.
At startup I see only one line coresponding to MM which is this:tcp 1 0 0.0.0.0:8088 0.0.0.0:* LISTEN 1019/electron.js
But when I use `pm2 stop mm’ I still see this line. I also tried to change the port for each restart with the result of having multiple instances of electron listening on the coresponding ports.
When starting it manually without pm2 in the console it opens and closes correctly after quitting.
Has anyone a guess how to solve this? -
RE: MMM-EventHorizon
Hi @Mykle1,
great module! Is it also possible to show only the days left? It’s kind of useless to show for example seconds until a specific date (vacation, birthday,…) :-)
Maybe you could add an option in the config to display only dd or dd:hh or dd:hh:mm. -
RE: Magic mirror startup question...
I use crontab and added
@reboot tvservice -o
to deactivate hdmi output on start. You can activate it on demand (as I do) or maybe after 60 seconds