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 1
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • 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
      SteffS
      Steff
    • RE: [MMM-RadioDe] - Simple Web Radio.de player

      Which radiostation is ssms ? Might it be possible that radio.de does not cover this radio station ? Normally I can start directly in the webbrowser my desired radio station by .radio.de , e.g. http://antenneduesseldorf.radio.de/. If I however try to start http://ssms.radio.de/ I am redirected to the home page of radio.de. So my interpretation is that the station name might be differently for radio.de. In order to help you it would be helpful to get full station name. If it is the super saturday morning show, it looks like radio.de does not reference it. This would mean that my plugin will not work you.

      posted in Entertainment
      SteffS
      Steff
    • [MMM-RadioDe] - Simple Web Radio.de player

      Description:

      This is an extension for the MagicMirror. It can show/hide a webradio stream provided by Radio.de You can start and stop this web radio stream by hiding the module. It uses the suspend/ resume method of MagicMirror for this. Currently the setup is rather simple. Potential extensions for the future might be selection of the radio station via remote control plugin, tuning of volume. Currently I do use the module to start in the evening the favorite radio channel of my children and to stop it again once they do sleep.

      Screenshots:

      alt text

      Download:

      [card:SteffMUC/MMM-RadioDe]


      Version 0.1.0

      • First initial commit
      • Feedback highly welcome!
      posted in Entertainment
      SteffS
      Steff
    • RE: Suddenly ipWhitelist no longer working...

      Digging one step further:
      My magicmirror has the ip address 192.168.178.164.
      I am using a cable fritz box, i configured it that this ip address has the hostname “magicmirror”.
      I remember that I had to a reboot of the fritzbox 2 days ago, will investigate whether I potentially lost some settings in the fritzbox.
      Funny thing:
      If I try to access directly http://192.168.178.64:8080/remote.html, I do not get any problem, only if I try to access it with http://magicmirror:8080/remote.html#power-menu
      I do not -yet- understand why…
      BTW: if i ping the magicmirror from the same pc, the address resolving is working:

      PING magicmirror.fritz.box (192.168.178.64): 56 data bytes 64 bytes from 192.168.178.64: icmp_seq=0 ttl=64 time=7.766 ms 64 bytes from 192.168.178.64: icmp_seq=1 ttl=64 time=9.753 ms 64 bytes from 192.168.178.64: icmp_seq=2 ttl=64 time=12.715 ms 64 bytes from 192.168.178.64: icmp_seq=3 ttl=64 time=10.908 ms 64 bytes from 192.168.178.64: icmp_seq=4 ttl=64 time=20.834 ms

      Using the full pseudo domain name `http://magicmirror.fritz.box:8080/remote.html#power-menu’ does not help…

      posted in Troubleshooting
      SteffS
      Steff
    • RE: Suddenly ipWhitelist no longer working...

      Just reverted to a very basic config.js file, which was working definitely beforehand and still get the same error code. Funny thing for me: Regardless from which device I am trying to access the magicmirror, I do get the same error address, so somehow the raspi is not able to resolve to the real ip address, at least this is my impression.
      netstat -lnpt delivers:

      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
      tcp6 0 0 :::8080 :::* LISTEN 2566/electron.js
      tcp6 0 0 :::22 :::* LISTEN - `

      I saw that initially I did not extend correctly my address range, so changed this to:

      ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::ffff:192.168.1.1/112", "::1"],

      I am still lost and I love the remotecontrol module …

      posted in Troubleshooting
      SteffS
      Steff
    • Suddenly ipWhitelist no longer working...

      Suddenly it is no longer working…
      With the availability of V2.1.0 I did extend my config.js file. After that everything was working until today :( .
      I played a little bit around with further extending the ip range in the config file, but I tend to get permanently following error code:

      Access denied to IP address: 2a02

      From my perspective I did not change anything, however I am slightly surprised that I cannot read a direct ip address like 192.168.178.xx for access denied.
      My ipWhitelist in config.js:

         "ipWhitelist": [
                  "127.0.0.1",
                  "::ffff:127.0.0.1",
                  "::1",
                  "::ffff:192.168.178.1/112"
          ],
      

      The ip address from which I try to access the remote config tool is 192.168.178.25, I am little bit lost, what might the real root cause, so any hint would be highly appreciated…

      posted in Troubleshooting
      SteffS
      Steff
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @strawberry-3-141 Now I do have the similar problem for 1. FSV Mainz 05.
      Adding this line in the .js file solved it:
      “1. FSV Mainz 05”: “https://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/FSV_Mainz_05_Logo.png/100px-FSV_Mainz_05_Logo.png”
      Do you think it might make sense to include it as well on github ? Thanks

      posted in Sport
      SteffS
      Steff
    • RE: MagicMirror v2.1.0 Update error

      I did try to configure an external compliments.json file, however it seems that it is not interpreted, since I do get again the default compliments.
      The file is located within the config directory.
      My configuration:

      { module: 'compliments', position: 'lower_third', config: { remoteFile: 'compliments.json' } },

      Do you have a hint what might be wrong ?

      posted in Troubleshooting
      SteffS
      Steff
    • RE: MagicMirror v2.1.0 Update error

      @bhepler
      Thanks for your hint.
      I know the doc does not show them. However I understood the documentation that I will need them for an external file. So I wanted to be prepared for the move to an external file. I tested it with them inside the config.js file and it worked. Do you see any specific reason to remove them ?

      posted in Troubleshooting
      SteffS
      Steff
    • RE: MagicMirror v2.1.0 Update error

      @schlachtkreuzer6
      After your question I understood what I personally had done wrong, so I lost my German compliments, still have to confess this to my 8 year old boy who wrote them. Please find here an example with German text how you could modify your local config.js to show German comments:

                  {
                          module: 'compliments',
                          position: 'lower_third',
      
                          config:
                          {
                          compliments:
                             {
                             "morning" : [
                                  "Du siehst aber gut aus heute !",
                                  "Gut geschlafen ?",
                                  "Moin, Moin...."
                                  ],
                              "afternoon" : [
                                  "Ab Fussball spielen !",
                                  "Lass uns auf den Abend vorbereiten....",
                                  "Musik hören ?"
                                  ],
                              "evening" : [
                                  "Einen Cocktail ?",
                                  "Wow, Du bist aber heiss heute...",
                                  "Wollen wir heute abend weggehen ?"
                                  ]
                             }
                          }
                  },
      
      posted in Troubleshooting
      SteffS
      Steff
    • 1 / 1