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

    Posts

    Recent Best Controversial
    • MMM-BackgroundSlideshow does not respond to notifications

      I’m probably doing something wrong but it seems to me that MMM-BackgroundSlideshow is not responding to notifications.

      I have MMM-Keypress installed which works fine with MMM-Pages but when I try to set it up to send notifications to MMM-BackgroundSlideshow, it’s like BS is ignoring them. (Using the same exact keys/configuration to send a notification to MMM-Pages works fine.)

      Here are my config.js entries:

      		{
      			module: "MMM-Keypress",
      			position: "bottom_right",
      			config: {
      				notifications: [
      					{key: "Enter", notification: "PAGE_INCREMENT"},
      //					{key: "Tab", notification: "PAGE_INCREMENT"},
      //					{key: "Space", notification: "PAGE_INCREMENT"},
      					{key: "MOUSE_SCROLL_UP", notification: "BACKGROUNDSLIDESHOW_PREVIOUS"},
      					{key: "MOUSE_SCROLL_DOWN", notification: "BACKGROUNDSLIDESHOW_NEXT"},
      				],
      			}
      		},
      
      		{
      			module: 'MMM-BackgroundSlideshow',
      			position: 'fullscreen_below',
      			config: {
      				imagePaths: ['modules/MMM-BackgroundSlideshow/Paintings/'],
      				transitionImages: true,
      				randomizeImageOrder: true,
      				slideshowSpeed: 3600000,
      				resizeImages: true,
      				maxWidth: 1080,
      				maxHeight: 1920,
      				backgroundSize: "contain",
      				transitions: ["opacity"],
      				showProgressBar: true,
      			}
      		},
      

      Note that I’ve tried a whole host of keys/keycodes and they work fine with MMM-Pages but do nothing for MMM-BackgroundSlideshow.

      I’m not sure what I’m doing wrong.

      posted in Troubleshooting
      UncleRogerU
      UncleRoger
    • RE: MM digital display hung like a picture

      @rmonkey

      That’s awesome. Thanks for the additional info. I may try to do the same thing at some point, if I can get my wife to let me cut into the wall. 8^)

      I’m planning on using a french cleat for my board that I’m working on in the kitchen; it seems the best way to go all around.

      Great work and thanks!

      posted in Show your Mirror
      UncleRogerU
      UncleRoger
    • RE: MM digital display hung like a picture

      Looks great!

      I would love to see a picture of the recessed outlet and hear more about how you did that.

      Also, is the monitor one of the portable monitors you can find on Amazon?

      posted in Show your Mirror
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @Volkae
      Yes, that should mean it should be removed after 5 minutes. It’s possible that it’s not checking that as often as it should. I’ll look into it.

      To be honest, I’m not sure what controls how often it looks at that sort of thing – I think a new e-mail arriving triggers an update but I’m not sure. I may have to implement a timer of some sort (though I have no idea how to do that as yet).

      The downside is that I don’t want it to check for e-mail too often as it may be viewed as a hacker/spammer. I’ll see what I can figure out.

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @Volkae said in [MMM-MailMessage] Send messages to your MagicMirror via e-mail:

      The possibility to see a running text (like a newsticker) would be nice……

      I have actually thought about that and started looking at
      MMM-NewsFeedTicker to try and figure it out. It shouldn’t be hard but my knowledge of CSS is virtually non-existant.

      I got rather busy with other stuff and was unable to follow through on that but at some point I will pick it up again.

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @Volkae

      I did a quick test with my wife’s school google e-mail and didn’t work for me either. I googled around and found that gmail doesn’t support plain imap anymore. (https://support.google.com/accounts/answer/6010255)

      It appears you can set up a specific “app password”:

      Instead you can enable 2-step verification in your Google account security settings (https://support.google.com/accounts/answer/185839), then generate an application password to use instead of your regular account password (https://support.google.com/accounts/answer/185833). – from https://support.google.com/mail/thread/221127207/

      I’m not able to test that right now (I can’t muck up my wife’s work e-mail) but I will give it a bash as soon as I can.

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @sdetweil
      I’ve updated the module list:

      547dfdce-6460-4e83-a741-f1aa9dab400b-image.png

      Apparently, GitHub’s automated abuse detection decided I was a bad guy and did indeed shadowban me. (They probably talked to my kids or something.) Anyway, it looks like it’s fixed now.

      @KristjanESPERANTO

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @KristjanESPERANTO I don’t know. I can see it just fine but it doesn’t seem to be accessible otherwise. I posted in the github community but have not received an answer yet. Searching for info turned up nothing so far.

      Searching when not logged in won’t find it and I can’t even find my user. Maybe I’ve been shadowbanned or something? Can’t imagine why.

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @KristjanESPERANTO said in [MMM-MailMessage] Send messages to your MagicMirror via e-mail:

      @UncleRoger Nice. Do you want to add it to the list of modules?

      I should do that. I will do that. Thanks for the reminder.

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: Config option with array of multiple values?

      @MZ-BER
      FYI, I’ve published and posted in the modules/showcase forum.

      https://forum.magicmirror.builders/topic/18139/mmm-mailmessage-send-messages-to-your-magicmirror-via-e-mail?_=1698853756973

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      @UncleRoger

      I did the card thing per the template but it doesn’t seem to do anything. So the link to the github is: https://github.com/Unclearogre/MMM-MailMessage

      posted in Utilities
      UncleRogerU
      UncleRoger
    • [MMM-MailMessage] Send messages to your MagicMirror via e-mail

      Description:

      This module checks an e-mail address for new e-mails and displays the subject line on the Magic Mirror. This allows you to post an announcement for all to see or provide information (current wifi password or soup-of-the-day?).

      I wanted something like this decades ago (in the time of pagers) but the technology wasn’t available or accessible. Now we all have cellphones and text messages so this is likely not terribly useful but I still wanted to implement the idea.

      I’ve tried to document it adequately and done my best to test it but do let me know if you have questions or find a bug.

      Screenshots:

      ScreenCap - Sample - Welcome Home.png

      ScreenCap - Sample - Warning.png

      Download:

      [card:Unclearogre/MMM-MailMessage]

      posted in Utilities
      UncleRogerU
      UncleRoger
    • RE: How to let user change font size in config file?

      @sdetweil said in How to let user change font size in config file?:

      then showed them how to use custom.css

      I’m afraid that would be like having a toddler show someone how to fly a helicopter. 8^)

      I kinda understand the general idea of CSS but I certainly don’t know how to do anything with it. I’m really just sorta stumbling around picking up bits and bobs from other people and trying to MacGyver them into something functional.

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: How to let user change font size in config file?

      @sdetweil

      Thanks! I went ahead and made a “textSize” property and used that to replace the size in the classes string I have.

      Maybe not the most graceful of solutions but it works.

      Thanks again!

      posted in Development
      UncleRogerU
      UncleRoger
    • How to let user change font size in config file?

      I would like to add an option to the config file so that users can change the font size from the default I have defined.

      I believe that this is what is setting my font size and style:

      wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright pre-line";
      

      but I cannot find any documentation on “config.classes” and what’s allowed. I’m probably not searching for the right thing.

      Is it as simple as users putting

      classes: "thin small bright pre-line",
      

      in the config file? Is there anything that documents what classes are available?

      Personally, “xlarge” (or maybe “large”) works for me but I could see others wanting something different, especially for use in other regions.

      Thanks!

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: Config option with array of multiple values?

      @sdetweil Thanks!

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: Config option with array of multiple values?

      @sdetweil
      I went with your first suggestion and it seems to be all better now.

      I’m going to play with it some more but once I’m satisfied it won’t break anyone’s set up too badly, do I just change the visibility from private to public?

      There was a notice about the repository not being protected but it seems to have gone away; is that something I should worry about?

      Lastly, I see this on the repository page:
      97f4a3a4-a101-4846-be4c-4a9a323fc14f-image.png
      Do I need to do anything about those?

      Thanks again for all your help and your patience!

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: Config option with array of multiple values?

      @sdetweil

      I think I’ve managed to thoroughly muck things up. Apparently my changes are in a branch called “master” and the repository has a “main” and never the twain shall meet.

      If I go to the “pull requests” tab in github, it shows me the differences between the file there and my changed file but there’s no way to merge them. This is what I’m seeing:

      60809309-baf5-41c9-a45d-1f279659f590-image.png

      I have the module working for me on my system but I don’t seem to be able to get it to a state where I can publish it.

      I’ve never used git/github before (other than to download modules) and, frankly, there’s a lot of base knowledge I don’t have that seems to be required to understand it and get it working.

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: Config option with array of multiple values?

      @sdetweil said in Config option with array of multiple values?:

      it will give you a set of commands to execute in your module folder to.upload it to that repo…
      easy peasy

      I’ve got a repository set up with a README.md file but I don’t see anything about how to upload the module.

      Also, is there anywhere with a list of what files I need to upload? These are the files in my directory:

       ll
      total 32
      -rw-r--r--  1 roger roger   59 Oct 25 07:43 email.css.orig
      -rw-r--r--  1 roger roger 6420 Oct 27 11:26 MMM-MailMessage.js
      -rw-r--r--  1 roger roger 3566 Oct 25 12:44 MMM-MailMessage.js.save
      -rw-r--r--  1 roger roger 3117 Oct 25 07:58 node_helper.js
      drwxr-xr-x 12 roger roger 4096 Oct 25 12:44 node_modules
      -rw-r--r--  1 roger roger  355 Oct 27 12:37 package.json
      -rw-r--r--  1 roger roger 3755 Oct 25 12:44 package-lock.json
      

      I’m pretty sure the node_modules directory comes from the emailjs-imap-client that it needs (which came from an npm install) so I don’t think that should be in the repository for this module. I’m not sure about package-lock.json. I think package.json is needed – it basically just has the name & description and says it needs the emailjs thing.

      Other than that, it’s MMM-MailMessage.js and node_helper.js so I think the files needed are:

      • MMM-MailMessage.js
      • node_helper.js
      • package.json

      Is that right?

      posted in Development
      UncleRogerU
      UncleRoger
    • RE: Config option with array of multiple values?

      @sdetweil said in Config option with array of multiple values?:

      yes the compares
      !=
      !==
      !===

      are different

      Heh. Back in my day, we got one equality operator and one inequality operator and we were dang thankful for that. Now git off my lawn! 8^)

      Seriously, though, thanks for all your help!

      posted in Development
      UncleRogerU
      UncleRoger
    • 1 / 1