MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. rudiau
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 0
    • Controversial 0
    • Groups 0

    rudiau

    @rudiau

    0
    Reputation
    1
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    rudiau Unfollow Follow

    Latest posts made by rudiau

    • RE: Hide a module by default

      hiddenOnStartup
      Perfect.
      Thank you Sam.

      posted in Development
      R
      rudiau
    • RE: Hide a module by default

      Thanks for the quick response Sam.
      Still no good.
      Posted below are the config.js and helloworld .js(part of), is that what you meant by the ‘this.hide()’ placement.
      BTW on your code you posted on May 30, 2020, 6:07 AM
      there is a fullstop after the closing curly bracket, should that be a comma or nothing ie just a closing bracket.
      Thanks for the code posting tip, much easier.

      (closing bracket query)
      notificationReceived: function(notification, payload, source){
         // this comes before the first call to getDom()
         if(notification === "ALL_MODULES_STARTED")
            this.hidden=true;
      }.
      
      -------------------------------------
      
      modules: [
        {
          module: "helloworld",
          hidden: true,
          position: "middle_center", // This can be any of the regions.
          config: {
            // See 'Configuration options' for more information.
            text: "Hello world!",
          },
        },
              ]
      };
      -------------------------------------------
      (this.hide query)
       notificationReceived: function (notification, payload, source) {
         // this comes before the first call to getDom()
         //if(notification === "ALL_MODULES_STARTED")
            //this.hidden=true;
              this.hide()
      },
      
      posted in Development
      R
      rudiau
    • Hide a module by default

      Re: Hide a module by default
      Been following Sams instructions on this subject but cannot get it working.
      Below is the helloworld module I am experimenting with.
      Any help greatly appreciated, thanks.```

      /* MagicMirror²
       * Module: HelloWorld
       *
       * By Michael Teeuw https://michaelteeuw.nl
       * MIT Licensed.
       */
      Module.register("helloworld", {
      	// Default module config.
      	defaults: {
              hidden: false,
      		text: "Hello World!"
      	},
      
      	getTemplate: function () {
      		return "helloworld.njk";
      	},
      
      	getTemplateData: function () {
      		return this.config;
      }, 
          
        suspend: function (){
          this.hidden=true
      },
      
        resume: function (){
           this.hidden=false
      },
          
          notificationReceived: function (notification, payload, source) {
         // this comes before the first call to getDom()
         if(notification === "ALL_MODULES_STARTED")
            this.hidden=true;
      },
        
      getDom: function (){
       var wrapper=document.createElement('div')
      if(this.hidden==false){ 
           //create normal content
      }
      return wrapper;
      }
              
      });
      
      posted in Development
      R
      rudiau
    • RE: MMM screencast switch automatically to desktop and starts on desktop (ON MAC contd))

      Well, that didn’t format as expected.

      posted in Troubleshooting
      R
      rudiau
    • RE: MMM screencast switch automatically to desktop and starts on desktop (ON MAC contd))

      Reinstalled Node.js, MM and Screencast.
      Pulled from the master.
      Two things I noticed:-

      1. In MMM-Screencast.js it states:
        “requiresVersion: “2.1.0”, // Required version of MagicMirror”
        I’m running v2.19.0) , does this matter?

      2. Terminal Reports

      npm audit report

      <ejs 3.1.7
      Severity: high
      Template injection in ejs - https://github.com/advisories/GHSA-phwq-j96m-2c2q
      No fix available
      node_modules/ejs
      peer-dial *
      Depends on vulnerable versions of ejs
      node_modules/peer-dial

      2 high severity vulnerabilities

      Some issues need review, and may require choosing
      a different dependency.
      />
      Also this report from Terminal on MM boot.
      <[29.04.2022 12:16.12.257] [LOG] screencast stderr: objc[43214]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffa58e93318) and /Users/rudi/MagicMirror/modules/MMM-Screencast/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10b6de9c8). One of the two will be used. Which one is undefined.

      [29.04.2022 12:16.14.074] [LOG] screencast stderr: [43212:0429/121614.073923:ERROR:service_worker_storage.cc(1904)] Failed to delete the database: Database IO error/>
      My bolding.
      One of the two will be used. Which one is undefined.??
      Don’t understand.
      Any help?
      Thanks Rudi.

      posted in Troubleshooting
      R
      rudiau
    • MMM screencast switch automatically to desktop and starts on desktop (ON MAC contd))

      Re: MMM screencast switch automatically to desktop and starts on desktop (ON MAC)

      Having the same problem.
      Screencast appears on the desktop with a second instance of Electron simultaneously appearing on the dock.
      So not appearing in MM.
      Using one display i.e. the laptop.
      Has anyone got this working on a MAC?
      Does it work on a Windows platform or only on the Pi?
      Thanks.

      posted in Troubleshooting
      R
      rudiau
    • RE: MMM-Remote-Control Error After Accessing From Browser After Installation

      Thanks for the reply Sam.
      I had done that which you instruct.
      My problem, I just found, I had forgotten to add “.html” at the end as in “http//:192.168.xx.x:8080/remote.html” which threw this error message:- {“status”:“error”,“reason”:“unknown_command”,“info”:“original input: {}”}
      Thank you.

      posted in Troubleshooting
      R
      rudiau
    • RE: MMM-Remote-Control Error After Accessing From Browser After Installation

      Hi schwarem,
      Old post I know.
      Did you ever find a solution as I have the same problem?

      posted in Troubleshooting
      R
      rudiau