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

    Posts

    Recent Best Controversial
    • RE: MMM-DumpsterDay

      I have been working on scaling the use of this great module. I thought about what other reoccurring things that I might need notification of. It came to mind that my front loading Washing Machine indicates that I need to clean the pump screen every 30 days! I also like to do a “tub clean” at about the same interval.
      The washer has a setting that is named “tub clean” where one adds a bit of bleach or other detergent made for cleaning the inside of the stainless tub to make sure that there is not any bacteria and gunk that builds up.

      In that vein I created a custom icon that can be used for notification. I wanted to share it with the community in case anyone else wanted to be notified as well.

      Since I dont use the Recycle Can I just substituted this icon for the Recycle Can and set the reoccurring notification to be every 30 days!! Click the link and then Right Click - Save Image As
      TubClean.png

      posted in Utilities
      B
      BD0G
    • RE: Halloween mirror ghouls anyone?

      @sdetweil said in Halloween mirror ghouls anyone?:

      @BD0G don’t modify the css file

      the system design is that css/custom.css will allow you to override any setting set by a module or the main.css file

      so you put those entries in custom.css

      all this no editing means the author can release updates and nothing u did is impacted

      Gotcha!

      posted in General Discussion
      B
      BD0G
    • RE: Halloween mirror ghouls anyone?

      i am going to just modify the included MMM-EasyBack.css file to see if I can shrink it. Yeah that works.

      
      
      
      .MMM-EasyBack .photo {
        width: 100%;               /* size the picture */
      }
      
      .MMM-EasyBack #video {
        width: 50%;
        height: 50%;
      }
      
      .MMM-EasyBack .iframe {
        margin-top: 50px;
              margin-bottom: 0px;
              margin-left: 50px;
              margin-right: 0px;
      }
      
      
      
      posted in General Discussion
      B
      BD0G
    • RE: Halloween mirror ghouls anyone?

      @sdetweil Thanks Sam.

      I went into the MMM-EasyBack.js file and altered it to reflect the video HalloweenMM.mp4 rather than within the config.js file. I also removedt the hard coded Youtube ID that was in the MMM-EasyBack.js file.

      Now it plays the Halloween file , but I cannot control the sizing of the video and it takes up just about the entire screen.

      
      Module.register("MMM-EasyBack", {
      
          defaults: {
              bgName: "",         // .jpg, .gif, .png, Full screen animated gifs too!
              videoName: "HalloweenMM.mp4",     // your local picture files go in "images" folder of MMM-EasyBack
              youTubeID: "",      // YouTube ID from the YouTube url
              height: "800px",   // your display's resolution in pixels. Enter in config.js
              width: "600px",    // your display's resolution in pixels. Enter in config.js
              animationSpeed: "0",
              updateInterval: 60 * 60 * 1000,
          },
      
      
      posted in General Discussion
      B
      BD0G
    • RE: Halloween mirror ghouls anyone?

      @Mykle1
      This is so weird!
      I installed MMM-EasyBack as per the instructions.
      Copied a small Halloween Video in the MagicMirror/Modules/MMM-EasyBack/Videos folder. The file is named HalloweenMM.mp4. Its 15 MB. So pretty small.

      Here are my config.js entries for the module.

      {
          module: 'MMM-EasyBack',
          position: 'middle_center',
          config: {
             // bgName: "Example.jpg",   // "Example.jpg", the file name of your background image (case sensitive)
              videoName: "HalloweenMM.mp4",       // "baboon.mp4",         // file name of your local video
              height: "1920px",    // your display's resolution in pixels. Enter in config.js
              width: "1080px",     // your display's resolution in pixels. Enter in config.js
          }
      },
      
      

      I completely removed the section about Youtube ID , etc . When I launch the MM interface it contunually comes up with the YouTube Video by David Snow found here https://www.youtube.com/watch?v=So3vH9FY2H4

      There is no reference that I can find to that video at all.

      The YouTube ID that is referenced by this video is the same one that was in the original configuration file.

      posted in General Discussion
      B
      BD0G
    • RE: MMM-Lunartic

      @sdetweil :oncoming_fist_light_skin_tone:

      posted in Education
      B
      BD0G
    • RE: MMM-Lunartic

      @sdetweil Got it.
      I did git stash and it indicated I needed to set my global identity. Did that. Then git stash succeeded. Then did a git pull and it indicated I needed to remove or move package.json. I moved it . Then did git pull which worked.

      Then git checkout MMM-Lunartic.js
      and git checkout package.json

      Stopped and restarted PM2 and it displays properly and the notification bar above no longer includes that as a module that needs to be upgraded

      posted in Education
      B
      BD0G
    • RE: MMM-Lunartic

      @sdetweil pi@MagicMirror:~/MagicMirror/modules/MMM-Lunartic $ git diff
      diff --git a/MMM-Lunartic.js b/MMM-Lunartic.js
      index 1520d0a…df2718c 100644
      — a/MMM-Lunartic.js
      +++ b/MMM-Lunartic.js
      @@ -38,9 +38,7 @@ Module.register(“MMM-Lunartic”, {
      es: “translations/es.json”,
      de: “translations/de.json”,
      sv: “translations/sv.json”,

      •        nl: "translations/nl.json",
        
      •        gl: "translations/gl.json",
        
      •        ca: "translations/ca.json",
        
      •        nl: "translations/nl.json"
           };
        
        },

      @@ -50,16 +48,16 @@ Module.register(“MMM-Lunartic”, {
      requiresVersion: “2.1.0”,

               //  Set locale.
      
      •    this.url = "https://mykle.herokuapp.com/moon";
        
      • // this.url = this.getUrl();
        :
      posted in Education
      B
      BD0G
    • RE: MMM-Lunartic

      @sdetweil OK. Perfect. Been out of the game for a while so I might have known that but forgotten.

      I ran into a commit changes or stash message.

      pi@MagicMirror:~/MagicMirror/modules/MMM-Lunartic $ git pull
      Updating c977e14…00655ab
      error: Your local changes to the following files would be overwritten by merge:
      MMM-Lunartic.js
      Please commit your changes or stash them before you merge.
      error: The following untracked working tree files would be overwritten by merge:
      package.json
      Please move or remove them before you merge.
      Aborting

      Just sudo git pull ? Then since it mentions the package.json do an npm install?

      posted in Education
      B
      BD0G
    • RE: MMM-Lunartic

      I need to update this module. Is there a preferred way to do so?

      posted in Education
      B
      BD0G
    • RE: Updated MM2 - Local Host Refused Connection Error

      @sdetweil Thanks I’ll get right on it!

      Sent …

      posted in Troubleshooting
      B
      BD0G
    • RE: Updated MM2 - Local Host Refused Connection Error

      @sdetweil Thank you Very Much for the reply.

      You have always been helpful with issues!
      I ended up running git pull && npm install --only=prod --omit=dev

      From https://docs.magicmirror.builders/getting-started/upgrade-guide.html

      It allows MM to launch. Appears to be reloading / relaunching periodically though.

      posted in Troubleshooting
      B
      BD0G
    • RE: Updated MM2 - Local Host Refused Connection Error

      @BD0G said in Updated and MM2 no longer launches:

      ‘module-alias/register’

      I used this update process https://github.com/sdetweil/MagicMirror_scripts

      bash -c “$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/upgrade-script.sh)” apply

      Also updated npm to latest version

      posted in Troubleshooting
      B
      BD0G
    • Updated MM2 - Local Host Refused Connection Error

      Re: Should I update?

      I just updated and I get a “Connection Refused message” when I launch MM2 .

      Here is the output from when I use npm start.

      pi@MagicMirror:~/MagicMirror/config $ npm start

      magicmirror@2.21.0 start
      ./run-start.sh $1

      node:internal/modules/cjs/loader:959
      throw err;
      ^

      Error: Cannot find module ‘module-alias/register’
      Require stack:

      • /home/pi/MagicMirror/js/app.js
      • /home/pi/MagicMirror/serveronly/index.js
        at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
        at Function.Module._load (node:internal/modules/cjs/loader:804:27)
        at Module.require (node:internal/modules/cjs/loader:1028:19)
        at require (node:internal/modules/cjs/helpers:102:18)
        at Object. (/home/pi/MagicMirror/js/app.js:9:1)
        at Module._compile (node:internal/modules/cjs/loader:1126:14)
        at Object.Module._extensions…js (node:internal/modules/cjs/loader:1180:10)
        at Module.load (node:internal/modules/cjs/loader:1004:32)
        at Function.Module._load (node:internal/modules/cjs/loader:839:12)
        at Module.require (node:internal/modules/cjs/loader:1028:19) {
        code: ‘MODULE_NOT_FOUND’,
        requireStack: [
        ‘/home/pi/MagicMirror/js/app.js’,
        ‘/home/pi/MagicMirror/serveronly/index.js’
        ]
        }
        Starting chromium browser now, have patience, it takes a minute
        –disable-quic --enable-tcp-fast-open --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashplayer.so --ppapi-flash-args=enable_stagevideo_auto=0 --ppapi-flash-version=
      posted in Troubleshooting
      B
      BD0G
    • RE: Raspbian is fullscreen, but the MM not

      @sdetweil Here is how I rotated mine and probably the same method was used.

      https://www.youtube.com/watch?v=pCB-CHvc6j0

      The video also discusses removing the black border as well.

      posted in Troubleshooting
      B
      BD0G
    • RE: MMM-Sonos - To show what your SONOS is playing.

      I added the code to my custom.css file that was entered within one of the first posts and expected it to provide a new layout and look , but nothing changed?

      Its as if the entries in the custom.css are not being recognized.

      Do I need to add .MMM-Sonos right above the entires?

      Update: Tried that and still no effect.

      posted in Entertainment
      B
      BD0G
    • RE: MMM-Sonos - To show what your SONOS is playing.

      Any way to remove the Source: specifier?

      I tried
      showSource:False,
      within the config.js to no avail.

      posted in Entertainment
      B
      BD0G
    • RE: MMM-Sonos - To show what your SONOS is playing.

      I finally solved this. Turned out I left out the tilde (~) in front of the /node-sonos-http-api within the sonos.sh file. So in essence the directory was never switched to execute the npm start command. So even though my PM2 status of running processes showed Sonos as a running process it was not providing the output data so that the module could display it

      posted in Entertainment
      B
      BD0G
    • RE: PDF Implementation

      If others load one .pdf file to the google drive and then delete all other files in that directory well then the file extension would still be .pdf (right) ? So then one could script it using *.pdf (file that ends in .pdf)

      So whatever actions that were taken were performed upon a file that ended with .pdf

      The file name becomes inconsequential. Just grab all .pdf files (as there will only be one) , download them to a specific directory you create on a local system (ftp sounds like it may be a good option for this) and then use the convert action that @ember1205 speaks of within ImageMagick, upload back to Google Drive via ftp and then (damn! Google Drive will then rename it with another file ID and then the URL that is within the config.js that points to the url will be broken and not display -ugggggg) . I think I understand now.

      Here is a Google Chrome Add on that allows one to Overwrite the same file without changing the file name. It “may” be helpful?
      https://chrome.google.com/webstore/detail/drive-overwrite-file-repl/llanhaaigblafdecdihpppjaeekpddfl?hl=en-US

      It really sounds like you may have to delve into Google App Script to accomplish this. https://developers.google.com/apps-script

      If you have questions about using this scripting tool then I think there is support over on www.stackoverflow.com

      I am not a Google Script Coder so I cannot be of any help there.

      posted in Utilities
      B
      BD0G
    • RE: PDF Implementation

      MMM-Iframe has been overhauled and become MMM-SmartWebDisplay.

      This module allows one to point to a website URL (one or multiple-that are displayed upon a time interval)

      What one could do is install that module and then point it to the address of the URL with a static file name.

      Then create a simple batch script that changes the name of the latest .pdf file to the .pdf file named in the url that is within the config.js file under the MMM-SmartWebDisplay settings.

      This batch file would rename the .pdf file locally on the hard drive of a PC and then automatically FTP the file up to a server. Google Drive allows ftp right?

      Want to send me a link to the .pdf file so I can try to display it within MMM-SmartDisplay?

      You can PM if that is needed as well.

      posted in Utilities
      B
      BD0G
    • 1 / 1