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

Posts

Recent Best Controversial
  • RE: MMM-ModuleScheduler skipping last two days in January??

    I figured it out. MMM-ModuleScheduler treats the “Month” portion of a cron schedule expression in a non-standard way. Normally January through Dec is enumerated in cron as the digits 1 through 12. But MMM-ModuleScheduler starts the first month (January) with 0 and runs though to 11 for December.

    Non-intuitive to say the least…

    posted in Troubleshooting
    M
    max64
    Feb 2, 2020, 3:02 AM
  • RE: Unable to determine reason for MM/electron decaying/dying/hanging

    In the end I was never able to get Electron to run properly under MM2 on my Pi3B+ under Buster. My only “solution” has been to run MM in serveronly mode, and then load Chromium separately from a script. This seems to be pretty stable.

    posted in Bug Hunt
    M
    max64
    Jan 30, 2020, 9:30 PM
  • MMM-ModuleScheduler skipping last two days in January??

    I am attempting to get MMM-ModuleScheduler to display and hide various modules throughout the day. I am running this on a Pi3B+, using Buster and an up to date MM2 (v2.10.1). For some reason, the scheduler is “skipping a day” when scheduling the next event. Below is an example:

    I ran this test on Thursday 20 Jan 2020, and scheduled the MM-Xmas module to “display” for 3 minutes, starting at 16:05 and ending at 16:08. (Note I have tried this with other modules, but this one is just some lightweight CSS and good for the test.). I thought there might be an issue with currently being under daylight savings time, so I made the trigger an hour ahead just in case this was the case.

    This is the config.js:

                    {
                            module: 'MMM-Xmas',
                            position: 'fullscreen_above',
                            classes: 'scheduler',
                            config: {
                                    module_schedule: {from: '05 16 30 1 *', to: '08 16 30 1 *' }
                            }
                    },
    

    Here is a snippet of the mm-out.log after a fresh pm2 startup up:

    [15:03:12.282] [LOG]    Starting MagicMirror: v2.10.1
    [15:03:12.299] [LOG]    Loading config ...
    [15:03:12.309] [LOG]    Loading module helpers ...
    .
    .
    .
    [15:03:28.468] [LOG]    MMM-ModuleScheduler is scheduling MMM-Xmas using "05 16 30 1 *" and "8 16 30 1 *" with dim level undefined
    [15:03:28.529] [LOG]    MMM-ModuleScheduler is hiding MMM-Xmas
    [15:03:28.538] [LOG]    MMM-ModuleScheduler has scheduled MMM-Xmas
    [15:03:28.539] [LOG]    MMM-ModuleScheduler will next show MMM-Xmas at Sat Feb 01 2020 16:05:00 GMT-0600 (Central Standard Time)
    [15:03:28.541] [LOG]    MMM-ModuleScheduler will next hide MMM-Xmas at Sat Feb 01 2020 16:08:00 GMT-0600 (Central Standard Time)
    

    Note the log line is @ 15:03:28 (on Jan 30). ModuleScheduler hid the MMM-Xmas module, which was the correct action as it should not have been “displayed” until 1 hour and 2 minutes later at 16:05. But then note that the next time it was scheduled to “show” the Xmas module was on “Sat Feb 01 2020 16:05:00 GMT-0600 (Central Standard Time)”.

    Why did it not schedule to first show on, Thu Jan 30 2020 16:05??
    And why did it then skip over Friday and actually schedule to show the module on Sat Feb 01 2020?? The “from” and “to” are on the same day, so worst case is it would have scheduled it on this next date in 2021?

    Interestingly enough, I did find a strange log line in mm-error.log, but no reference to what is generating it:

    .
    .
    [5786:1:0130/150327.441292:ERROR:child_process_sandbox_support_impl_linux.cc(81)] FontService unique font name matching request did not receive a response.
    [15:03:28.471] [WARN]   Month '1' is limited to '29' days.
    [15:03:28.487] [WARN]   Month '1' is limited to '29' days.
    [5786:1:0130/150333.265350:ERROR:child_process_sandbox_support_impl_linux.cc(81)] FontService unique font name matching request did not receive a response.
    .
    .
    

    Is this really some kind of bug that only occurs in “Month ‘1’”? And because today is on the 30th (past the 29th), then Scheduler can’t schedule anything until the 1st of the next month??

    (If so, what a huge coincidence that I am running this on one of the only two days in the year that error would be observed!)

    Appreciate any feedback. (And of course, come Feb 1st, we will see if everything is back to “normal”…

    Regards

    posted in Troubleshooting
    M
    max64
    Jan 30, 2020, 9:26 PM
  • RE: Unable to determine reason for MM/electron decaying/dying/hanging

    @sdetweil

    Getting ridiculous.

    Remove mmm-nest-status. Was only running: clock, calendar, currentweather, and weatherforecast. And THAT locked up.

    Now removed weatherforecast also.

    posted in Bug Hunt
    M
    max64
    Jan 14, 2020, 2:37 AM
  • RE: Unable to determine reason for MM/electron decaying/dying/hanging

    @sdetweil
    Well, woke today to another frozen screen.

    The only modules running were: clock, calendar, currentweather, weatherforecast, and mmm-nest-status. It was running most of the day yesterday with just the first 4 modules, so I added in mmm-nest-status.

    I’ll roll it back to just the 1st 4 default modules again, and see if that will run 24 hours.

    As mmm-nest-status appears pretty light weight and has no “npm install” requirements, this still may be an incompatibility between Buster and Electron…

    posted in Bug Hunt
    M
    max64
    Jan 13, 2020, 6:35 PM
  • RE: Unable to determine reason for MM/electron decaying/dying/hanging

    @sdetweil
    Yes. File is “remote_compliments.json” and is in the compliments folder. (As I mentioned in the prev post, it had all been working ok w/ my Pi Zero W under Stretch)

    Also, interesting enough, I do use \n in my remote file, and under Stretch and the previous version of MM it did not format the line return on the screen, and I noticed that right off after this most recent load on the RP3.

    Snippet from config.js:

    {
      module: "compliments",
      position: "bottom_bar",
      config: {
                    updateInterval: 300000, //30000 = 30 seconds
                    fadeSpeed: 4000,
                    remoteFile: "remote_compliments.json",
                    classes: "thin medium bright"
                     }
    }
    

    Here’s remote_compliments.json:

    {
    	"anytime": [
    		"\"The grand essentials of happiness are: something to do, something to love, and something to hope for.\"\n- Chalmers -",
    		"\"I hear and I forget. I see and I remember. I do and I understand.\"\n- Confucius -",
    		"\"However many holy words you read, However many you speak, What good will they do you If you do not act on upon them?\"\n- Buddha -",
    		"\"Talk doesn't cook rice.\"\n- Chinese Proverb -",
    		"\"Doing nothing is better than being busy doing nothing.\"\n- Lao Tzu -",
    		"\"Every sixty seconds you spend angry, upset or mad, is a full minute of happiness you’ll never get back.\"\n- Unknown -",
    		"\"Some people feel the rain. Others just get wet.\"\n- Bob Marley -",
    		"\"Whether you think you can, or you think you can’t, you’re probably right.\"\n- Henry Ford -",
    		"\"Success is getting what you want. Happiness is liking what you get.\"\n- H. Jackson Brown, Jr. -",
    		"\"Trust the universe to provide your highest good. It's a little smarter than you are.\"\n- Max Bordelon -",
    		"\"There are two rules in life: Rule 1: Don't sweat the small stuff. Rule 2: Everything is small stuff.\"\n- Finn Taylor -",
    		"\"The world is a stage, life is a passage. You came, you saw, you departed.\"\n- Democritus -",
    		"\"Everyone smiles in the same language.\"\n- George Carlin -",
    		"\"Being deeply loved by someone gives you strength, while loving someone deeply gives you courage.\"\n- Lao-Tzu -",
    		"\"Humility is the embarrassment you feel when you tell people how wonderful you are.\"\n- Laurence J Peter -",
    		"\"You are the average of the five people you spend the most time with.\"\n- Jim Rohn -",
    		"\"Yesterday is history, tomorrow is a mystery, and today is a gift... that's why they call it the present.\"\n- Eleanor Roosevelt -",
    		"\"Never allow a person to tell you \"no\" who doesn't have the power to say \"yes\".\"\n- Eleanor Roosevelt -",
    		"\"Anyone who has ever made anything of importance was disciplined.\"\n- Andrew Hendrixson -",
    		"\"Don’t spend time beating on a wall, hoping to transform it into a door\"\n- Coco Chanel -",
    		"\"Creativity is intelligence having fun.\"\n - Albert Einstein",
                    "\"Optimism is the one quality more associated with success and happiness than any other.\"\n- Brian Tracy -",
                    "\"Always keep your eyes open. Keep watching. Because whatever you see can inspire you.\"\n— Grace Coddington -",
                    "\"What you get by achieving your goals is not as important as what you become by achieving your goals.\"\n- Henry David Thoreau -",
                    "\"If the plan doesn’t work, change the plan, but never the goal.\"\n- Unknown -",
                    "\"I destroy my enemies when I make them my friends.\"\n- Abraham Lincoln -",
                    "\"Don’t live the same year 75 times and call it a life.\"\n- Robin Sharma -",
                    "\"You cannot save people, you can just love them.\"\n- Anaïs Nin -",
                    "\"It wasn’t raining when Noah built the ark.\"\n- Howard Ruff -",
                    "\"Take your dreams seriously.\"\n- Unknown -",
                    "\"There is no way to happiness. Happiness is the way.\"\n- Thich Nhat Hanh -",
                    "\"Holding onto anger is like drinking poison and expecting the other person to die.\"\n- Unknown -",
                    "\"Champions keep playing until they get it right.\"\n- Billie Jean King -",
                    "\"You will succeed because most people are lazy.\"\n- Shahir Zag -",
                    "\"Genius is 1% inspiration, 99% perspiration.\"\n- Thomas Edison -",
                    "\"A comfort zone is a beautiful place, but nothing ever grows there.\"\n- Unknown -",
                    "\"You must be the change you wish to see in the world.\"\n- Mahatma Gandhi -",
                    "\"Numbing the pain for a while will only make it worse when you finally feel it.\"\n- Albus Dumbledore -",
                    "\"Do it with passion, or not at all.\"\n- Rosa Nouchette Carey -",
                    "\"If you want to live a happy life, tie it to a goal, not to people or objects.\"\n- Albert Einstein -",
                    "\"The grass is greener where you water it.\"\n- Neil Barringham -",
                    "\"Never give up on a dream just because of the time it will take to accomplish it. The time will pass anyway.\"\n- Earl Nightingale -",
                    "\"Instead of wondering when your next vacation is, maybe you should set up a life you don’t need to escape from.\"\n- Seth Godin -",
                    "\"If it scares you, it might be a good thing to try.\"\n- Seth Godin -",
                    "\"Sometimes you win, sometimes you learn.\"\n- John Maxwell -",
                    "\"Never apologize for having high standards. People who really want to be in your life will rise up to meet them.\"\n- Ziad K. Abdelnour -",
                    "\"I never dream of success. I worked for it.\"\n- Estee Lauder -",
                    "\"Avoiding failure is to avoid progress.\"\n- Unknown -",
    		"\"The future comes a day at a time.\"\n- Unknown -",
    		"\"Worry steals your joy and keeps you very busy doing nothing.\"\n- Unknown -",
    		"\"Tomorrow sees undone, what happens not today; Indecision brings delays. Days lost lamenting lost days.\"\n- Ryoga Habiki -",
    		"\"You can’t just skip ahead to where you think your life should be.\"\n- Lily Aldryn -",
    		"\"If you're really honest with yourself about what you want out of life, life gives it to you.\"\n- Ted Mosby -",
    		"\"If you’re not scared, you’re not taking a chance. And if you’re not taking a chance, then what the hell are you doing?\"\n— Ted Mosby -",
    		"\"We struggle so hard to hold on to these things that we know are gonna disappear eventually. And that’s really noble.\"\n— Lily Aldrin -",
    		"\"So really the biggest mistake would be not to make that mistake, because then you’ll go your whole life not knowing if something was a mistake or not.\"\n— Lily Aldrin -",
    		"\"Sometimes things have to fall apart to make way for better things.\"\n— Ted Mosby -",
    		"\"I'm the lord and master of this disaster.\"\n- BNL -",
    		"\"Every new beginning comes from some other beginning's end\"\n- Closing Time, Semisonic -"
    	],
    	"morning": [
    		"Good morning Tiger",
    		"Enjoy your day!"
    	],
    	"afternoon": [
    		"I hope you've been having a nice day!"
    	]
    }
    
    
    posted in Bug Hunt
    M
    max64
    Jan 13, 2020, 4:28 AM
  • RE: Unable to determine reason for MM/electron decaying/dying/hanging

    @sdetweil
    What exactly do you mean by a “custom compliments module”? I am using the default “compliments” module but with “remoteFile” for the quotes. Is that what you are referring to as “custom”?

    Since upgrading from a Pi Zero W running Stretch, I have been having the same issues as both of you (RP3B+/Buster/Latest MM/and then did the Electron upgrade to electron@6.0.12 as mentioned in the updated installation documentation).

    When running MMM-BackgroundSlideshow on Zero before I would occasionally get race events, so I recently moved to RP3 with a fresh install, and I turned on “transitions” between photos as I thought the beefier CPU would handle it. But it would hang after a while and I’ve been trying to diagnose ever sense. I’ve set “transitions” back to false and the Pi still hangs. I’ve increased swap. I’ve increased GPU mem. Tracked with nmon, and except for the occasional CPU wait% going up every once in a while, I was never low on memory or disk.

    I just happened to run across this thread and it seems almost exactly the same issues.

    I’m slowly adding back in all the modules and will now put back in MMM-BackgroundSlideshow before adding compliments. I really never thought one of the default modules would be the issue. I actually thought it was some incompatibility between Buster and Electron.

    I’ll report my findings.

    posted in Bug Hunt
    M
    max64
    Jan 13, 2020, 2:59 AM
  • RE: MMM-EventHorizon - remove black border line

    @mykle1 - your edit did remove the iframe black border line. Many thanks.

    Apologize I didn’t pick up in your initial response that the entire content of the iframe was coming from the external timeanddate website. I will just edit the iframe.src url to pick the most appropriate font as your suggest. I can select the correct timezone at the same time.

    Thanks for your help…mate. :)

    posted in Troubleshooting
    M
    max64
    Jan 8, 2019, 8:52 PM
  • RE: MMM-EventHorizon - remove black border line

    @mykle1 - You can see the “border” line when the background is a light color (like white).

    On the font, mine look more like a Times Roman font, which doesn’t look similar to any of the other fonts on the screen. I was just trying to get something pseudo-similar.

    posted in Troubleshooting
    M
    max64
    Jan 7, 2019, 7:46 PM
  • MMM-EventHorizon - remove black border line

    Wondering if there is some custom.css that can be added to this module to remove the black border line that the module produces around the entire text block.

    I’ve tried “border: none” in both the “.MMM-EventHorizon” and the “.MMM-EventHorizon .module-content” css blocks. Also tried adding “frameBorder=0” for the iframe.style in the js code. But always get the black border…

    Also, is there an easy way to change the font that is used?

    Kind regards for any suggestions

    posted in Troubleshooting mmm-eventhorizon css
    M
    max64
    Jan 2, 2019, 12:49 AM
  • 1
  • 2
  • 1 / 2
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy