• 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. Steff
  3. Posts
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Offline
  • Profile
  • Following 0
  • Followers 2
  • Topics 5
  • Posts 39
  • Groups 0

Posts

Recent Best Controversial
  • RE: MagicMirror cannot start (UnhandledPromiseRejectionWarning)

    Encountering the same problem, however npm install throws an error message:

    npm ERR! code EBADENGINE
    npm ERR! engine Unsupported engine
    npm ERR! engine Not compatible with your version of node/npm: magicmirror@2.26.0
    npm ERR! notsup Not compatible with your version of node/npm: magicmirror@2.26.0
    npm ERR! notsup Required: {"node":">=18"}
    npm ERR! notsup Actual:   {"npm":"8.19.4","node":"v16.20.2"}
    

    The “normal” update of my raspi via sudo apt- update & upgrade did not bring any changes, I had to update the node version manually:

    Update node version
    Please do not forget to log-off / log-on after nvm installation

    This helped now the npm install did run through and my magic mirror start again.

    Hope this is helpful for others who are encountering the same problem…

    posted in Troubleshooting
    S
    Steff
    Jan 10, 2024, 10:22 PM
  • RE: How do you turn Off/On the monitor if not in use - Be Green

    @mpires
    Here is the configuration:

                    {
                    module: 'MMM-ModuleScheduler',
                    config: {
                    notification_schedule: [
                                    // TURN THE MONITOR/SCREEN OFF AT 8:30 EVERY WEEK DAY
                                    {notification: 'REMOTE_ACTION', schedule: '30 8 * * MON-FRI', payload: {action: "SHUTDOWN"}},
                                    // TURN THE MONITOR/SCREEN OFF AT 23:30 EVERY DAY
                                    {notification: 'REMOTE_ACTION', schedule: '30 23 * * *', payload: {action: "SHUTDOWN"}},
                                ]
                             }
                    },
    

    The clock timer is programmed to kill the power supply 15 min later than the shutdown time(s).

    posted in General Discussion
    S
    Steff
    Mar 7, 2017, 6:58 PM
  • RE: How do you turn Off/On the monitor if not in use - Be Green

    I am using a “dual” solution: I do use a PIR sensor together with the MMM-PIR module to switch the monitor to standby via HDMI off. Since the Raspi and the monitor are still consuming energy, I thought about when I do really use my MagicMirror. So I came to the conclusion that I never use and need my MM during night and during my working hours in the week. So I bought a rather cheap clock timer with the capability to program it per day. Every day the MM is switched completely off during night time and every work day during my work time. In order to prevent any potential SD card failure I do use the module MMM-Scheduler to shut down the Raspi well in advance before power is cut. If there is interest I can post the configuration of MMM-Scheduler.

    posted in General Discussion
    S
    Steff
    Mar 6, 2017, 6:52 PM
  • RE: Update WunderGround

    @johnnyboy Potentially you changed something in MMM-WunderGround.jsand you have forgotten about. I am writing potentially because I had a similar situation some month ago with compliments.js- I thought that I definitely have not changed anything, but I had done it and forgotten about it. An extremely simple way to come around this problem:

    pi@papaspi:~/MagicMirror/modules/MMM-WunderGround $mv MMM-WunderGround.js MMM-WunderGround_mychangedfile.js
    pi@papaspi:~/MagicMirror/modules/MMM-WunderGround $git pull
    

    Now the update should work and if find some changes you still need from your file you can easily extract them from your backup copy MMM-WunderGround_mychangedfile.js.

    posted in Troubleshooting
    S
    Steff
    Feb 27, 2017, 7:02 PM
  • RE: [MMM-RadioDe] - Simple Web Radio.de player

    @Disturbx Wanted to post a reply already yesterday, but was too stupid to use git push…, I modified the behavior slightly, letting the module wait until the others are started, added as well some changes. I put them to the develop branch, so if you change your git to develop, you can try whether this helps.
    How to do:
    Enter local directory of module --> git checkout develop --> git pull
    Why develop branch ? I did only test on my development platform, but not on the Raspi itself.
    Feedback highly welcome

    posted in Entertainment
    S
    Steff
    Feb 23, 2017, 8:29 PM
  • RE: Git branch develop, commited changes do not show up on github

    @Jopyth Thanks so much, you saved my day, I really had forgotten git push, stupid me. Thanks again !!

    posted in General Discussion
    S
    Steff
    Feb 23, 2017, 8:22 PM
  • Git branch develop, commited changes do not show up on github

    Hi all,
    I have to admit that I am an absolute newbie for working with github. However after reading several forums, the online help and trying back and forth I still have not found a solution to my problem and I am really clueless.
    I have released a couple of weeks ago my first basic module for MM on github.
    I wanted to further develop the features of the module, but wanted to do it in a separate branch develop.
    I create this branch via git branchand git checkout. I checked in my modifications to the develop branch with git commit -a.
    A git check status shows:

    On branch develop
    Untracked files:
      (use "git add ..." to include in what will be committed)
    
    	backup/
    
    nothing added to commit but untracked files present (use "git add" to track)
    

    I did not yet exclude the backup directory in gitignore.
    If i call git logI can see:

    commit ce4fca6491a4cd8facb44482ce2f17cbd335e7a4
    Author: xxx
    Date:   Wed Feb 22 20:42:56 2017 +0100
    
            modified:   CHANGELOG.md
            modified:   MMM-RadioDe.js
            modified:   README.md
    
    commit db495c121e2dd8f38b1e2f67fd0101f918d11190
    Author: xxx
    Date:   Tue Feb 21 19:07:07 2017 +0100
    
        - requiresVersion: "2.1.0",
        - option to change playing radio station via notification
        
        - Added documentation for daily operation in [README.md](README.md# Daily operation)
        - Added check for all modules started, before starting radio player
        
        - Known problems: One user reported that player does not start, potentially fixed by starting player only once all modules started
    

    My problem: I cannot see these changes online in the web interface of github, trying to see my changes in github it claims no differences between master and develop branch (identical).

    I strongly hope that this is an absolute beginners error, nevertheless I am running out of ideas. Could you help me ?
    Thanks
    Steff

    posted in General Discussion
    S
    Steff
    Feb 22, 2017, 8:11 PM
  • Getting warning in development view in my module MMM-RadioDe + Error Message + other questions

    Hi all, since @Disturbx (Forum Link MMM-RadioDe) wrote that “my” MMM-RadioDe module does not operate on his mirror but in browser view, I started some more debugging by starting the MMM with npm start dev and I can see some warnings/ error messages I do not understand:

    pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details.
    VM108 vendor.js:9 Error: Blocked a frame with origin "http://www.radio.de" from accessing a cross-origin frame.
        at Error (native)
        at http://www.radio.de/inc/microsite/js/app.js:2:5158
        at http://www.radio.de/inc/microsite/js/vendor.js:9:25272
        at o (http://www.radio.de/inc/microsite/js/vendor.js:8:4062)
        at http://www.radio.de/inc/microsite/js/vendor.js:8:6140(anonymous function) @ VM108 vendor.js:9(anonymous function) @ VM108 vendor.js:8(anonymous function) @ VM108 vendor.js:9o @ VM108 vendor.js:8(anonymous function) @ VM108 vendor.js:8
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Trying%20to%20connect...&s…9h5&reconnect=0&waittime=0&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Stream%20started%20to%20pl…&reconnect=0&waittime=1002&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Heartbeat&station=antennek…reconnect=0&waittime=60751&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Heartbeat&station=antennek…econnect=0&waittime=120991&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    playlog:1 GET https://api.radio.de/info/v2/user/playlog?status=Heartbeat&station=antennek…econnect=0&waittime=180995&apikey=df04ff67dd3339a6fc19c9b8be164d5b5245ae93 403 (Forbidden)
    

    I do not understand the warning translateSanitization. Did anyone of encounter a similar warning in his module development and could point me in the correct direction ?

    From the other error messages I do get the impression, that my invocation of the web radio player tries to open a frame, but I am not sure… Any hints appreciated.

    Furthermore I thought about to start the webradio player only once after all modules are started:

    Set a variable this.all_started to after ALL_MODULES_STARTED and start radio only once this is successful. Do you think this would be a good way ?

        notificationReceived: function (notification, payload, sender) {
          if(notification === "ALL_MODULES_STARTED"){
            this.all_started = true;
            Log.info("Received notification ALL_MODULES_STARTED setting all_started to  : " + this.all_started);
          }else if(notification === "RADIO_STATION"){
            Log.info("Received RADIO_STATION" + payload.title + "   "+ payload.type);
            this.config.station = payload.title;
            this.updateDom(300);
          }
        },
    
        getDom: function() {
          var wrapper = document.createElement("div");
          if (this.display && this.all_started) {
    
            var script = document.createElement("div");
            script.innerHTML = "<div></div>
    posted in Troubleshooting
    S
    Steff
    Feb 13, 2017, 8:38 PM
  • RE: [MMM-RadioDe] - Simple Web Radio.de player

    @Disturbx Honestly I am completely clueless. I did some updates today to several modules and now my MMM crashes after some time. I am not sure whether it is related to the radio module. I am currently debugging this, potentially I get an idea from this. The only thing I can offer you is to post you a configuration how you could to the similar setup with the iFrame module, if you are interested in. (Without station select, start/ stop via hide mechanism)

    posted in Entertainment
    S
    Steff
    Feb 12, 2017, 7:35 PM
  • RE: [MMM-RadioDe] - Simple Web Radio.de player

    Hm, Just tried it in my own MMM, with following config:

    {
            module: 'MMM-RadioDe',
            position: 'top_right', // This can be any of the regions.
            classes: 'scheduler',
            config: {
                    // PLAY RADIO BETWEEN 18:50 and 21:00 EVERY DAY
                    //module_schedule: {from: '50 18 * * *', to: '00 21 * * *' },
                    // See 'Configuration options' for more information.
                    api_key: 'xxxxxxxx',
                    station: 'slam'
                    }
            },
    

    In my case it immediately start on my magicmirror:
    0_1486911685647_slam_radio.png

    You mention that it does not start, did you set potentially the autoplay option to false ?

    Could you please post your config ?

    posted in Entertainment
    S
    Steff
    Feb 12, 2017, 3:02 PM
  • 1
  • 2
  • 3
  • 4
  • 1 / 4
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