MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. rts58
    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 8
    • Posts 58
    • Groups 0

    rts58

    @rts58

    12
    Reputation
    634
    Profile views
    58
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    rts58 Unfollow Follow
    • RE: A way to add image name to MMM-BackgroundSlideshow?

      FWIW, I did manage to do this. I added a line 155 to the MMM-BackgroundSlideshow.js:

      image.src = encodeURI(this.imageList[this.imageIndex]);
      this.sendNotification("IMAGEFILEPATH", image.src); //my stuff
      
      

      Then I created a small module that displayed the notification.

      Module.register("MMM-ShowMessage", {
      	defaults: {},
      	getDom: function() {
      		var element = document.createElement("div");
      		element.className = this.config.size;
      		element.id = "IMGPATHFILE";
      		return element;
      	},
      	notificationReceived: function(notification, payload, sender) {
      		switch(notification) {
      			case "IMAGEFILEPATH":
      			        var elem = document.getElementById("IMGPATHFILE")
      				var subpayload = payload.substring(53)
      				elem.innerHTML = subpayload
      				break
      		}
      	},
      });
      

      In my config.js I just added:

      {
      	module: "MMM-ShowMessage",
      	position: "bottom_left",
      		config: {
      			size: "small"
      			}
      },
      
      

      Now each time the image changes a notification is sent and picked up by the show message module which displays it on screen. I trim the path because the beginning was consistent among all the pictures.

      posted in General Discussion
      R
      rts58
    • RE: added touch support to MMM-ImagesPhotos

      @sdetweil okay, thanks Sam. I’ve just added some stuff for navigation and made some changes to support that. Everything should continue to work fine. So I will create pull request.

      posted in Requests
      R
      rts58
    • RE: Contribute to a module. Volunteers wanted! Easy!

      n43 Boston, MA

      posted in Troubleshooting
      R
      rts58
    • RE: Control MagicMirror from Alexa?

      @jrotondo I’m using AlexaOnOff which allows me some control over MM.

      Here is the thread.

      posted in Troubleshooting
      R
      rts58
    • RE: module for mm background

      I’ve been using MMM-BackgroundSlideshow, it allows me to randomly display an image from 1000’s stored in a many level folder structure on my NAS.

      posted in Requests
      R
      rts58
    • RE: Application not starting when OpenGL is enabled

      @anthony Hi, I found this post maybe it will help? Also, custom.css is for all modules is in the css directory.

      @strawberry-3-141 said in MMM-forecast-io -- Localized up to the minute weather:

      .MODULENAME {
        transform: scale(0.5, 0.5);
      }
      

      if you replace modulename with your actual module name, this should give you a height and with of 50% of the actual size

      posted in Troubleshooting
      R
      rts58
    • RE: Mmm-nest-status freeze

      @tanvir586 I’m no longer using the module, but this was an issue for me. I don’t remember the exact setting, but it helped to reduce the rate of refresh requests to the thermostat.

      posted in Troubleshooting
      R
      rts58
    • RE: MONITORON on does not work in schedule

      Re: MONITORON on does not work in schedule

      So for the last two days, this has been working correctly. I think it may be a combination of @dazza120 fix to my config, not messing with the pi for a full 2 days to let it fully run through it’s schedule, and removing openGL.

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil

      I thought I had tried setting it to 0, but apparently I hadn’t. Now that I have made that change, it is working fine.

      The filetype for HEIC is supposed to “image/heic”. I added that to the enabledTypes array in node_helper.js and it now it is also working!

      Awesome, as always, thank you Sam!

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil It’s working great now. No longer freezing on image files that it cannot open. And it is properly reflecting the error with the file name in the console! THANKS!

      posted in Troubleshooting
      R
      rts58
    • RE: added touch support to MMM-ImagesPhotos

      @sdetweil okay, thanks Sam. I’ve just added some stuff for navigation and made some changes to support that. Everything should continue to work fine. So I will create pull request.

      posted in Requests
      R
      rts58
    • added touch support to MMM-ImagesPhotos

      Hi,

      My very old monitor died that I was using for mm. I picked up a new one that supported touch. I’ve been using MMM-ImagesPhotos for quite a while, and wanted to take advantage of my new touch display. So chatgpt and I hacked an update together. This allows tapping the screen to pause and swipe left or right to move forward or back through the list of images.

      This required quite a bit of change and am not sure whether this should be a fork or pull request. I hoping @sdetweil could let me know which way to go.

      posted in Requests
      R
      rts58
    • RE: GoogleCalendar with two IDs

      @sankum probably not the fix you needed, but I avoided this issue by giving one calendar read access within Google to the other.

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil It’s working great now. No longer freezing on image files that it cannot open. And it is properly reflecting the error with the file name in the console! THANKS!

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil great, thanks. I’ll let you know how it goes.

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil I’m not seeing any errors in the console.

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil this is what I did which is creating an uncaught syntax error on the line with the first “{”.

      	img.onerror(){
      	this.updateDom()
      	}
              img.onload = (evt) => {
                // Get the image of the event
                const eventImage = evt.currentTarget;
                Log.log(
                  `image loaded=${eventImage.src} size=${eventImage.width}:${eventImage.height}`
      
      
      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil if it helps when I dig into the elements it shows:

      <img src="/MMM-ImagesPhotos/photo/module_9_MMM-ImagesPhotos/IMG_3259-Copy.HEIC" style="left: 0px; position: relative; opacity: 0;">
      

      So it thinks it is loading the file.

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil yes I’ve been looking at it. If it works I’ll get a message that the image loaded and link, image setting size … , and setting top. If it doesn’t it won’t show anything.

      posted in Troubleshooting
      R
      rts58
    • RE: HEIC and MMM-ImagesPhotos

      @sdetweil I am still have trouble with some of the HEIC files.

      If the module runs across an unsupported HEIC (or corrupted jpg) file it will just stop and continue showing the last image.

      I couldn’t find any log or error for files that won’t open. I’ve compared the files it can and can’t open and don’t see any difference in the file details or exif data. Is there a way to have it just skip the unsupported file?

      The module does get locked up, it will not continue with a new image even after the update interval has passed. Thanks for your help.

      posted in Troubleshooting
      R
      rts58