MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. rrslssr
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 23
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Shared icloud calendar

      Here’s what I used to troubleshoot my initial iCloud calendar problems. Running vdirsyncer discover shows your current setup (respond with N to escape the command):

      Discovering collections for pair iCloud_to_MagicMirror Mirror:
      
      iCloud:
        - "25CB285C-E163-4E0E-B420-C3FB469B7C00" ("Calendar 1")
        - "9221FEE8-E8B4-4D07-9402-8638529919EC" ("Calendar 2")
        - "953A5477-E405-4ED6-A5C3-473444EACC95" ("Calendar 3")
      warning: No collection "9221FEE8-E8B4-4D07-9402-8638529919EC" found for storage Mirror.
      Should vdirsyncer attempt to create it? [y/N]:
      
      

      You can then check the directory: ~/.vdirsyncer/status/iCloud_to_MagicMirror and see the files associated with your calendars.

      Each file’s date should be current and the file size should be non-zero.

      If a date is not current then something is broken in the process of retrieving that calendar’s data.

      If the date is current and the file contains data, then there is something amiss beyond that point…possibly with the config.js entries.

      posted in Troubleshooting
      R
      rrslssr
    • RE: MM digital display hung like a picture

      @rmonkey I have started searching for a picture frame to use for the display.
      Would you please tell me the size of the picture frame you used?

      posted in Show your Mirror
      R
      rrslssr
    • RE: Altering a Module

      @sdetweil I’m happy to report that changing the code changes (as shown below) worked to eliminate the errors:

       compliment.show(self.config.animationSpeed, ()=>{}, {lockString: this.name})
      

      The only thing left is a warning : module tries to update the DOM without being displayed. But I don’t think I’ll worry about this error since my Frankenstein Module does not display anything.

      Thanks again for your help.
      Rich

      posted in Troubleshooting
      R
      rrslssr
    • RE: Altering a Module

      @sdetweil Thank you. Your explanation along with the link to the module-instance-methods, really help clarify things for this novice.

      Take care.
      Rich

      posted in Troubleshooting
      R
      rrslssr
    • RE: Altering a Module

      @sdetweil I am sorry, but I do not understand your response.
      The original code lines @semox used in the module are:

      compliment.hide(0);
      ...
      compliment.show(self.config.animationSpeed, {lockString: this.name})
      ...
      compliment.hide(self.config.animationSpeed, {lockString: this.name})
      

      Are you saying that I should change the ()'s to {}'s in both instances?
      Or are you saying that the second Parm in the 2 longer .show/.hide commands shown above, should be in {}'s? If so, they already are are they not?

      Rich

      posted in Troubleshooting
      R
      rrslssr
    • RE: Altering a Module

      Well, it looks like I could have waited a few days before posting my original question.
      (heavy sigh)
      I was able to change and add pieces to the original code to get my MM to do exactly what I wanted.

      But…in checking further, I noticed that my altered module produces errors:
      Parameter mismatch in module.show: callback is not an optional parameter!

      MMM-NearWeatherClock - Errors.JPG

      I have not checked to see if the original MMM-NearCompliments module also produces those errors.

      Nevertheless, can someone tell me if I should be worried about these errors?
      After all, my modified module does exactly what I wanted.

      Thanks.
      Rich (rrslssr)

      posted in Troubleshooting
      R
      rrslssr
    • RE: Altering a Module

      Okay. I’m not quite sure what I did but my latest hack worked. I can now show the weather module by waving at the sensor. Now I just have to see if I can add some coding to control the clock at the same time.

      Then I’ll just have to worry about how formalize this module, if anyone else whats to use it…

      Rich (rrslssr)

      posted in Troubleshooting
      R
      rrslssr
    • Altering a Module

      I’m working on a Digital Picture Frame to display my travel pictures (similar to https://forum.magicmirror.builders/topic/18150/mm-digital-display-hung-like-a-picture?_=1705093101640 by @rmonkey).

      MagicPicture Display.JPG

      The MM is running with the following modules:

      alert
      updateNotification
      clock
      weather
      MMM-BackgroundSlideshow
      MMM-AutoDimmer

      I would like to setup the display to initially have the clock and weather modules hidden until a sensor (HC-SR04) is tripped.

      I have searched, looked at and tested various modules (MMM-PIR, MMM-Button, MMM-Glance, MMM-ModuleToggleButton, MMM-HideAll). But either they would not do what I wanted, they were to involved (hardware-wise), or I couldn’t configure them for my purposes.

      The closest I’ve come to the functionality I want was to use MMM-NearCompliments to display the compliments module when my sensor (HC-SR04) is tripped. This works like a charm…

      I tried altering the code files of the MMM-NearCompliments module (to create a new module) in the hope that it would hide the weather module, by changing every instance of “Compliments” to “Weather” and “compliments” to “weather”…but this fails so bad that the MM doesn’t even start.

      As I am not familiar with coding in JavaScript, I would like to know if I am on the right track. Can I just change the references in the MMM-NearCompliments module to have it control another, or any other module?

      Thanks for reading this.
      Rich (rrslssr)

      posted in Troubleshooting
      R
      rrslssr
    • RE: Alternate Day/Date Format

      @MMRIZE Thank you! That is exactly what I wanted.

      posted in Custom CSS
      R
      rrslssr
    • Alternate Day/Date Format

      Is it possible to reformat the day/date of the Clock module?
      This is purely for the aesthetics of my current project.
      Instead of:
      Sunday, December 17, 2023
      I would like:
      Sunday
      Dec. 17
      2023

      posted in Custom CSS
      R
      rrslssr
    • 1 / 1