@jbat66 , @karsten13 , thank you for the help, I was able to get it going using the custom commands in MMM-Remote-Control
Read the statement by Michael Teeuw here.
Posts
-
RE: MM current version on Raspberry Pi 5 cannot turn off monitor
-
RE: MM current version on Raspberry Pi 5 cannot turn off monitor
@karsten13 I was not able to get any commands using the wlr-randr to show anything other than “failed to connect to display”, however, after much searching, I did find a command that was able to turn the screen off and on
MMUser@MagicMirror:~ $ DISPLAY=:0.0 xrandr --output HDMI-1 --off MMUser@MagicMirror:~ $ DISPLAY=:0.0 xrandr --output HDMI-1 --mode 2560x1440 --rate 60 --rotate leftAlthough I’m not sure how to get this into something that can be called from MagicMirror itself so that it can be run as a menu command in MMM-Remote-Control or some other way that it can be called from outside of MagicMirror
-
RE: MM current version on Raspberry Pi 5 cannot turn off monitor
@karsten13 said in MM current version on Raspberry Pi 5 cannot turn off monitor:
wlr-randr --output HDMI-A-1 --off
@karsten13, I did try those commands and I receive this response to both
MMUser@MagicMirror:~ $ wlr-randr --output HDMI-A-1 --off failed to connect to display -
MM current version on Raspberry Pi 5 cannot turn off monitor
Anyone using MM on a Raspberry Pi 5 or running a Raspberry Pi 5 in general know how to turn off the monitor now?
I have been using MMM-Remote-Control and turning off/on the monitor using the following requests
http://<MagicMirrorIPAddress>:8080/remote?action=MONITOROFF http://<MagicMirrorIPAddress>:8080/remote?action=MONITORONWhich ultimately issue the commands
vcgencmd display_power 0 vcgencmd display_power 1but these commands, no longer work and are generating errors and not Turing the monitor off/on
[30.12.2023 12:15.44.921] [ERROR] [30.12.2023 12:15.44.927] [ERROR] Error: Command failed: vcgencmd display_power 0 at ChildProcess.exithandler (node:child_process:430:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Process.onexit (node:internal/child_process:302:5) { code: 255, killed: false, signal: null, cmd: 'vcgencmd display_power 0' } [30.12.2023 12:15.47.731] [ERROR] [30.12.2023 12:15.47.732] [ERROR] Error: Command failed: vcgencmd display_power 1 at ChildProcess.exithandler (node:child_process:430:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1091:16) at Process.onexit (node:internal/child_process:302:5) { code: 255, killed: false, signal: null, cmd: 'vcgencmd display_power 1' }This is the command line result from outside of MM
MMUser@MagicMirror:~ $ vcgencmd display_power 0 vc_gencmd_read_response returned -1 error=1 error_msg="Command not registered"Web searches for a solution have been unsuccessful.
Thanks for any help you might be able to provide.
-
Is there a way or a module that will display an svg graphic?
Hello,
I have a webcam url that returns an SVG graphic that I would like to display on my MagicMirror2, anyone know of a way or module to do this?
Thanks!
Rick
-
RE: Could not resolve host
@sdetweil Yes, I am not very confident in my Internet sometimes! I work from home and I see my connection to the office drop for a few seconds on average every day. I am also trying to rule that out as a possible cause for some mysterious lockups where the MM and RPi appear to still be running but I lose VNC connectivity and eventually have to pull the plug to reboot :-(
-
RE: Calendar fetch issues
@sdetweil Thank you for the explanation, I will not worry too much about those errors then.
I have had some mysterious lockups on the MM and so I am just trying to resolve what I can from the logs to better pin it down, I really appreciate all the help!
-
RE: Could not resolve host
@sdetweil No, I do not run any DNS blocking tools locally.
-
Could not resolve host
Hello, I have seen few times in the logs the errors below.
[2020-10-15 01:06:54.515] [ERROR] fatal: unable to access 'https://github.com/Jopyth/MMM-Remote-Control.git/': Could not resolve host: github.com [2020-10-15 01:06:54.516] [ERROR] fatal: unable to access 'https://github.com/BenRoe/MMM-SystemStats/': Could not resolve host: github.com [2020-10-15 01:06:54.516] [ERROR] fatal: unable to access 'https://github.com/mykle1/MMM-Events/': Could not resolve host: github.com [2020-10-15 01:06:54.540] [ERROR] fatal: unable to access 'https://github.com/jclarke0000/MMM-DarkSkyForecast.git/': Could not resolve host: github.com [2020-10-15 01:06:54.551] [ERROR] fatal: unable to access 'https://github.com/MichMich/MagicMirror.git/': Could not resolve host: github.comDoes anyone know if this is more likely related to local internet connectivity or something external and if there are any ways to resolve it.
Thank you kindly,
Rick
-
Calendar fetch issues
Hello, I have seen the following errors in the log for calendars and am looking for help to resolve them.
The first issue appears it may be a legit 503 service unavailable issue, but does throw an error into the log.
[2020-10-14 13:34:33.657] [ERROR] Calendar Error. Could not fetch calendar: http://p42-calendars.icloud.com/published/2/MjE1NDI5NjM0Mj*MASKED*--sxGM 503: Service Temporarily Unavailable [2020-10-14 18:53:07.815] [ERROR] Calendar Error. Could not fetch calendar: http://p64-calendars.icloud.com/published/2/AAAAAAAAAAAAAA*MASKED*Cj9UqU 503: Service Temporarily UnavailableI have also seen the following error but they don’t always coincide with the 503 errors so not sure if they are related or not.
[2020-10-15 00:44:37.926] [ERROR] Calendar Error. Could not fetch calendar: http://p42-calendars.icloud.com/published/2/MjE1NDI5NjM0Mj*MASKED*--sxGM Error: getaddrinfo EAI_AGAIN p42-calendars.icloud.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) { errno: 'EAI_AGAIN', code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'p42-calendars.icloud.com' } [2020-10-15 01:02:13.529] [ERROR] Calendar Error. Could not fetch calendar: http://recollect.a.ssl.fastly.net/api/places/03A47F*MASKED*0E18/services/253/events.en-US.ics Error: getaddrinfo EAI_AGAIN recollect.a.ssl.fastly.net at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) { errno: 'EAI_AGAIN', code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'recollect.a.ssl.fastly.net' } [2020-10-15 01:02:41.306] [ERROR] Calendar Error. Could not fetch calendar: http://p64-calendars.icloud.com/published/2/AAAAAAAAAAAAAA*MASKED*Cj9UqU Error: getaddrinfo EAI_AGAIN p64-calendars.icloud.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) { errno: 'EAI_AGAIN', code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'p64-calendars.icloud.com' } [2020-10-15 01:03:44.890] [ERROR] Calendar Error. Could not fetch calendar: http://ical.mac.com/ical/US32Holidays.ics Error: getaddrinfo EAI_AGAIN ical.mac.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:60:26) { errno: 'EAI_AGAIN', code: 'EAI_AGAIN', syscall: 'getaddrinfo', hostname: 'ical.mac.com' }Thanks again for any help!
Rick
-
RE: Calendar appears to be fetching the last calendar in the list multiple times.
@sdetweil said in Calendar appears to be fetching the last calendar in the list multiple times.:
@vvrangler yeh, it seems to luck out currently
the top code starts the fetcher and a starts a timer for each calendar entry
the fetcher ALSO starts a timer, so if its never called again, it still returns a refreshed listI changed it so the top code starts the fetcher for each calendar entry
and let the fetcher handle its configured timer cycleThe change definitely fixed the issue and everything looks good now during the subsequent polls, thank you again.
I also have a couple of other calendar related issues that I’ve seen in the log, would it be best if I closed this topic and post a new one?
-
RE: Calendar appears to be fetching the last calendar in the list multiple times.
@sdetweil Yes, the number of events look to be good, and I’m not really seeing any issues because of this, it’s just something that I noticed in the logs.
-
Calendar appears to be fetching the last calendar in the list multiple times.
Hello,
I have 4 calendars configured, under the default MM2 calendar module
{ module: 'calendar', header: 'Calendar', position: 'top_left', config: { maxTitleLength: 50, maximumEntries: 20, wrapEvents: true, fadePoint: 0.8, colored: true, dateFormat: 'ddd MMM Do hh:mma', dateEndFormat: 'ddd MMM Do hh:mma', timeFormat: 'absolute', useRelativeDates: true, columns: false, urgency: 0, titleReplace: { 'USA: ': '' }, calendars: [ { symbol: 'trash-o', color: '#CCCC00', showLocation: false, url: 'webcal://recollect.a.ssl.fastly.net/api/places/**masked**/events.en-US.ics' }, { symbol: 'calendar', color: '#9CECC4', showLocation: true, url: 'webcal://p64-calendars.icloud.com/published/2/**masked**' }, { symbol: 'calendar-o', color: '#A2D7FF', showLocation: false, url: 'webcal://ical.mac.com/ical/US32Holidays.ics' }, { symbol: '', color: '#FF6600', showLocation: false, url: 'webcal://p42-calendars.icloud.com/published/2/**masked**--sxGM' }, ], excludedEvents: [] } },And when the calendars are refreshed it appears that whatever the last one in the config list is gets loaded an extra time for each one of the other calendars configured is this normal/expected behavior?
From: /home/pi/.pm2/logs/MagicMirror-out.log
Initial Launch Fetched once for each calendar
[2020-10-10 14:33:00.632] [LOG] Launching application. [2020-10-10 14:33:04.150] [LOG] Create new calendar fetcher for url: http://recollect.a.ssl.fastly.net/api/places/**masked**/events.en-US.ics - Interval: 300000 [2020-10-10 14:33:04.179] [LOG] Create new calendar fetcher for url: http://p64-calendars.icloud.com/published/2/**masked** - Interval: 300000 [2020-10-10 14:33:04.190] [LOG] Create new calendar fetcher for url: http://ical.mac.com/ical/US32Holidays.ics - Interval: 300000 [2020-10-10 14:33:04.199] [LOG] Create new calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM - Interval: 300000 [2020-10-10 14:33:05.429] [INFO] Calendar-Fetcher: Broadcasting 7 events. [2020-10-10 14:33:06.410] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:33:06.974] [INFO] Calendar-Fetcher: Broadcasting 118 events.Subsequent Refresh #1
[2020-10-10 14:38:03.943] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:38:03.944] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:04.598] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:04.940] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:38:04.941] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:04.949] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:38:04.949] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:04.956] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:38:04.956] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:05.160] [INFO] Calendar-Fetcher: Broadcasting 52 events. [2020-10-10 14:38:05.479] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:05.665] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:05.825] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:38:06.147] [INFO] Calendar-Fetcher: Broadcasting 7 events. [2020-10-10 14:38:07.654] [INFO] Calendar-Fetcher: Broadcasting 118 events.Subsequent Refresh #2
[2020-10-10 14:43:03.947] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:43:03.948] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:04.670] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:05.140] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:43:05.144] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:05.156] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:43:05.159] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:05.180] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:43:05.183] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:05.358] [INFO] Calendar-Fetcher: Broadcasting 52 events. [2020-10-10 14:43:05.949] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:06.133] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:06.385] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:43:06.751] [INFO] Calendar-Fetcher: Broadcasting 7 events. [2020-10-10 14:43:08.475] [INFO] Calendar-Fetcher: Broadcasting 118 events.Subsequent Refresh #3
[2020-10-10 14:48:03.944] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:48:03.947] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:04.522] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:04.943] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:48:04.943] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:05.139] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:48:05.139] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:05.145] [LOG] Use existing calendar fetcher for url: http://p42-calendars.icloud.com/published/2/**masked**--sxGM [2020-10-10 14:48:05.145] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:05.609] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:05.632] [INFO] Calendar-Fetcher: Broadcasting 52 events. [2020-10-10 14:48:05.838] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:06.036] [INFO] Calendar-Fetcher: Broadcasting 1 events. [2020-10-10 14:48:07.175] [INFO] Calendar-Fetcher: Broadcasting 7 events. [2020-10-10 14:48:09.157] [INFO] Calendar-Fetcher: Broadcasting 118 events.Thank you for any insights you might offer.
Rick -
RE: First Mirror
@thisistheplace what I had to do was append on the 2fa code to the end of my password.
{
module: ‘MMM-iCloud-Client’,
config: {
username: “username@icloud.com”,
password: “mypassword123456”,
countrycode: “1”,
}
}, -
RE: First Mirror
@Stoffbeuteluwe I believe these are the changes I made
Change image for centralAmericanDiscNat in MMM-Globe.js
‘centralAmericaDiscNat’: ‘https://goes.gsfc.nasa.gov/goescolor/goeswest/pacific2/color_med/latest.jpg’Change default style to centralAmericaDiscNat
style: ‘centralAmericaDiscNat’, -
RE: First Mirror
@Stoffbeuteluwe it does, but I had problems with it when I first installed it and ended up making some changes to the code to make it work for me.
-
First Mirror
Hello all,
I thought I would share with you my first MagicMirror project.
Also want to say thank you to the entire community for the healthy support and commitment to the MagicMirror and all it’s newbies, I for one truly appreciate it.
I am currently using the following modules
MMM-RPI-LED
MMM-iCloud-Client
calendar
MMM-Events
MMM-Globe
MMM-DarkSkyForecast
MMM-HomeAutomation (local hack of ‘mmm-openhabfloorplan’ used for displaying home automation, power and local weather station data)
MMM-NowPlayingOnSpotify
MMM-SystemStats
newsfeed
MMM-Cursor
MMM-Remote-ControlFrame was made from reclaimed barn wood and glass is Dielectric TV Mirror from twowaymirrors.com
Screen is a Dell (S2718D) S series 27-Inch Screen LED-Lit Monitor
This monitor has a USB-C power adapter with a USB-C pass through which I used to power the Raspberry Pi 3 Model B+
I also have attached a USB speaker and USB microphone (both currently unused)
I have had a lot of fun building the home automation portion that displays the status of more than 100 smart home devices including indoor and outdoor lighting, security sensors, thermostats, fan controls and smart roller shades.
Here are a couple of pictures of the mirror
Mirror Off

Mirror On

Screen image

Feedback welcome.
Rick