MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. mmmmh
    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 10
    • Posts 64
    • Groups 1

    Posts

    Recent Best Controversial
    • Official RPI Touchscreen, control screen blanking without disabling it

      The official Raspberry Pi touchscreen activates a screensaver without documented settings. The screen wakes up when touched. Generally, I would like to keep it that way but I also want to be able to wake up the screen programmatically. If possible, I would also like to tweak the activation time.

      I know how to turn the backlight on and off and how to dim the screen but does anyone know how to manage this screensaver?

      posted in Hardware
      M
      mmmmh
    • RE: Notification from iFrame? (MMM-Glance and ...?)

      OK, for posterity, here’s what I did.

      I used MMM-Remote-Control and created a button element that calls a function that issues a get request. Interestingly, when I put the URL in the button code the request was rejected (no cross-origin request allowed) but when after I put the URL in the function it worked.

      function toggleCal() {
                  var myUrl = "http://mypi.local:8080/remote?action=TOGGLE&module=MMM-CalendarExt";
                  console.log("getting " + myUrl)
                  var xmlHttp = new XMLHttpRequest();
                  xmlHttp.open("GET", myUrl, false); // false for synchronous request
                  xmlHttp.send(null);
                  return xmlHttp.responseText;
              };
      

      The button code gets mangled here. I had to add spaces

      < button onclick="toggleCal()">Calender on/off< /button>
      
      posted in Requests
      M
      mmmmh
    • RE: Notification from iFrame? (MMM-Glance and ...?)

      @sdetweil Thanks for the feedback. I thought so. I guess I’ll cook something up with MMM-Remote-Control.

      posted in Requests
      M
      mmmmh
    • Notification from iFrame? (MMM-Glance and ...?)

      I have a web page with some button elements. The web page is shown via MMM-iFrameReload. How can I generate a notification from that web page? I would like to use MMM-Glance to temporarily hide another module.

      posted in Requests
      M
      mmmmh
    • RE: MMM-CalendarExt

      Dang! Thanks. On my other screen I have that region and I didn’t replace it at all places! I owe you one.

      posted in Productivity
      M
      mmmmh
    • RE: MMM-CalendarExt

      @Sean thanks for making the effort to test it. I went the same way now. I removed everything and picked a public trash collection calendar (nice idea of yours) - still the same error. (I also commented out the showEmptyView options.)

      The error appears locally (RPI3+) as well as in web browsers of all flavors.

      Here’s the full config file:

      var config = {
          address: "",
          port: 8080,
          ipWhitelist:
              [],
          language: "de",
          timeFormat: 24,
          units: "metric",
          modules: [
              {
                  module: 'MMM-CalendarExt',
                  position: "top_left", //anywhere. It is not related to real position of view
                  classes: "default standard everyone",
                  config: { // Read below
                      system: {
                          show: ['current', 'upcoming'],
                          locale: 'de',
                          // showEmptyView: 0,
                          fullDayEventLocalize: 1,
                          redrawInterval: 300000, 
      
                      },
                      defaultView: {
                          position: 'calendar',
                          positionOrder: -1,
                          overflowRolling: 0,
                          overflowHeight: 0,
                          overflowDuration: 2,
                          timeFormat: 'H:mm',
                          dateFormat: "ddd, D. MMM",
                          fullDayEventDateFormat: "ddd, D. MMM",
                          ellipsis: 0,
                          limit: 20,
                          oneLineEvent: 1,
                      },
                      views: {
                          current: {
                              title: "Now...",
                              direction: "column",
                              // showEmptyView: 0,
                              useRelative: 0,
                          },
                          upcoming: {
                              title: "Upcoming...",
                              direction: "column",
                              useRelative: 0,
                              overflowHeight: 0,
                              overflowRolling: 0,
                          },
                      },
                      calendars: [
      
                          {
                              name: "Trash",
                              symbol: "male",
                              styleName: "style24",
                              url: "https://www.ekm-mittelsachsen.de/de/service-dienstleistungen/entsorgungstermine-abfallkalender/abfallkalender/ical/stadt/4870/year/2019/",
                          },
                      ],
                  },
              },
          ]
      
      };
      
      /*************** DO NOT EDIT THE LINE BELOW ***************/
      if (typeof module !== "undefined") { module.exports = config; }
      
      posted in Productivity
      M
      mmmmh
    • RE: MMM-CalendarExt

      @Sean yes, I set it to top_left:

      {
                  module: 'MMM-CalendarExt',
                  position: "top_left", //anywhere. It is not related to real position of view
                  classes: "default standard everyone",
                  config: { // Read below
                      system: {
                          show: ['current', 'upcoming'],
                          locale: 'de',
                          showEmptyView: 0,
                          fullDayEventLocalize: 1,
                          redrawInterval: 300000, 
                      },
                      defaultView: {
                          position: 'calendar',
                          positionOrder: -1,
                          overflowRolling: 0,
                          overflowHeight: 0,
                          overflowDuration: 2,
                          timeFormat: 'H:mm',
                          dateFormat: "ddd, D. MMM",
                          fullDayEventDateFormat: "ddd, D. MMM",
                          ellipsis: 0,
                          limit: 20,
                          oneLineEvent: 1,
                      },
                      views: {
                          current: {
                              title: "Now...",
                              direction: "column",
                              showEmptyView: 0,
                              useRelative: 0,
                          },
                          upcoming: {
                              title: "Was steht an...",
                              direction: "column",
                              useRelative: 0,
                              overflowHeight: 0,
                              overflowRolling: 0,
                          },
                      },
                      calendars: [
                          {
                              name: "XXXX",
                              symbol: "male",
                              styleName: "style24",
                              url: "redacted",
      
                              auth: {
                                  user: 'redacted',
                                  pass: 'redacted',
                                  method: 'basic'
                              }
                          },
                          
                      ],
      
                  },
              },
      

      Don’t worry, it’s not urgent.

      posted in Productivity
      M
      mmmmh
    • RE: MMM-CalendarExt

      I successfully use the module on two other screens. I just set up a new one without tweaks and I run into the following error in the console (nothing gets loaded, server-side there are no errors being logged):

      Uncaught (in promise) TypeError: hookDom.appendChild is not a function
          at Render.js:590
          at Array.forEach (<anonymous>)
          at Render.drawViews (Render.js:581)
          at Class.getDom (MMM-CalendarExt.js:209)
          at main.js:110
          at new Promise (<anonymous>)
          at updateDom (main.js:109)
          at Object.updateDom (main.js:518)
          at Class.updateDom (module.js:358)
          at Class.draw (MMM-CalendarExt.js:680)
      
      posted in Productivity
      M
      mmmmh
    • RE: MMM-Spotify

      @Sean Is it intentional that the z-index of the artwork (or the Spotify logo) is equal to or higher than whatever the Alert module shows? Alerts do not cover the Spotify module’s content.

      posted in Entertainment
      M
      mmmmh
    • RE: Alert font size

      Okay, I figured it out. For posterity: one needs to address the specific sub-style:

      .ns-alert span.light.dimmed.medium,
      .ns-alert span.thin.thin.bright.small {
          font-size: 80px !important;
      }
      
      posted in Development
      M
      mmmmh
    • RE: Alert font size

      @strawberry-3-141 I am also trying to accomplish bigger alert text. I made the suggested addition to my custom.css but it doesn’t work. What am I missing?

      posted in Development
      M
      mmmmh
    • RE: Finding module with high external traffic

      @Sean I checked again, you are right, polling is the only option. Thanks for your cool module!

      posted in Troubleshooting
      M
      mmmmh
    • RE: Finding module with high external traffic

      @Sean I think I read somewhere that callback addresses could be provided (perhaps I misread this). If I have a DynDNS-backed FQD host and forwarded port I can provide, would this stop the polling requirement?

      posted in Troubleshooting
      M
      mmmmh
    • RE: Finding module with high external traffic

      @sdetweil the IP resolves to a generic Google host, currently 53.224.186.35.bc.googleusercontent.com - I think it is used by Spotify.

      posted in Troubleshooting
      M
      mmmmh
    • RE: Finding module with high external traffic

      @Sean I think I found the “culprit”, it may be the Spotify module’s polling. I just increased the interval and will see if the traffic decreases.

      posted in Troubleshooting
      M
      mmmmh
    • Finding module with high external traffic

      The modules I use all rely on local data sources. I run my instance in server-only mode. Still, I see unexpected traffic to a google-hosted IP address. How can I find the culprit (and stop it)?

      posted in Troubleshooting
      M
      mmmmh
    • RE: MMM-Spotify

      @Sean said in MMM-Spotify:

      #SPOTIFY.pausing {
      display:none;
      }

      Simple and works perfectly. Thanks!

      posted in Entertainment
      M
      mmmmh
    • RE: MMM-Spotify

      Another awesome module, thank you!

      The displayed album cover goes dim when there is no playback which is nice. Would it be possible to add an option to completely hide the module when there is no playback?

      posted in Entertainment
      M
      mmmmh
    • Issue with image caching (Electron?)

      My mirror fetches minimal web pages with images that change in content but keep the same file name. The URLs include basics authentication credentials (I don’t know if that matters). Both, MMM-iFrame and MMM-iFrameReload show missing image icons unless I delete Electron’s cache.

      How can I fix this?

      posted in Troubleshooting
      M
      mmmmh
    • RE: Displaying Remotely on Two Tablets (How to run separate instances?)

      @Sean thanks for that description. I will probably take the same approach. Currently I am planning to provide a friend with an own display and I am not yet decided if the RPI should remotely access the server instance (via VPN client) or if I would have the application running locally on the RPI and just fetch the content from my network.

      posted in Troubleshooting
      M
      mmmmh
    • 1 / 1