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

    Posts

    Recent Best Controversial
    • RE: show integer logs from python script as diagram in MM ?

      @cruunnerr @doubleT It would certainly be more easily handled in JSON or even a CSV (easiest to append readings). You can then set up cron to rsync the file to your mirror, load the file with an npm package like csv or fast-csv, and display in MMM-Chart (I would modify MMM-Chart to load the CSV directly).

      posted in Requests
      N
      ninjabreadman
    • RE: Messed up CSS between Portrait and Landscape monitors

      @Damian Does this work?

      .module.compliments {
      font-size: 73%;
      }
      
      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Can i remove the Logo of Magic Mirror In start?

      @postremalone Fastest way to show MM is to have the RPi already running, then simply turn on the the display. Check out this thread here for use with a PIR or other sensor/button. Apparently, because it already draws such little power, there is no desire to implement suspend on RPi.

      As for speeding up boot, as @lavolp3 said, the issue is not the logo, but booting the OS. You can strip down the Raspbian boot for speed, but it will never be instantaneous (sub 1 sec). You can apparently get down to 10 seconds with a stripped down distro and Class 10 SD card.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: This Day in History ticker?

      @cowboysdude Agreed, I meant if @xela is looking to find code examples to construct a single module. Sorry if that wasn’t clear; best to keep in a single module.

      posted in Requests
      N
      ninjabreadman
    • RE: Messed up CSS between Portrait and Landscape monitors

      @Damian Inspect the element, and share a screenshot of the div.module.compliments element styles. At this point, either (1) your CSS is not being applied, or (2) those aren’t the right classes to use to target that element. I suspect the latter.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Need help to install a script that makes pixel shift, to avoid static screen burn

      @kj3rra Not sure that @strawberry-3.141 will agree with the approach, but you can actually achieve the same thing with just CSS animations (and avoid creating a module).

      Try either the following in your css/custom.css file:

       /* this will cause the image to fade out for about 2 seconds every 2 minutes */
      body{ animation: fading 60s infinite alternate; }
      @keyframes fading {
        0%, 98% { opacity: 1; }
        100% { opacity: 0; }
      }
      

      - or -

       /* this will cause the image to slide down, across 10px after 30 seconds, for 30 seconds, then back up */
      body{ animation: slide 60s linear infinite alternate;}
      @keyframes slide {
        0%, 49% { transform: translate(0, 0); }
        50%, 100% { transform: translate(10px, 10px); }
      }
      

      You can adjust the time value (i.e. 60s) to more/less as you like (but be careful, 2% of one hour is over 2 minutes). You can also adjust the percentages, and use decimal percents, like 0.5% if needed. CSS 2D transforms should not take too much memory or cause issues on an RPi. I assume that Chromium/Electron supports CSS 3 animations. YMMV.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Schedule Module with XML/Feed source

      @kruemel You can make a mashup of MMM-WeeklySchedule for display and MMM-HTTPRequestDisplay to fetch data which handles an XML response.

      posted in Requests
      N
      ninjabreadman
    • RE: Messed up CSS between Portrait and Landscape monitors

      @Damian You don’t need to download anything. Use your mouse on the MagicMirror. Right-click the compliments module, and select “Inspect element”. Or, stop MM, then run npm start dev which will start in development mode with Chromium’s developer tools already open. You then just need to navigate the DOM to find the .compliments element. Follow these instructions to take a screenshot on an RPi.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Request a Twitterfeed

      @mediathreat newsfeed will refresh the feeds based on the updateinterval, so it depends on whether (and how often) TwitRSS refreshes the feeds.

      posted in Requests
      N
      ninjabreadman
    • RE: Messed up CSS between Portrait and Landscape monitors

      @Damian I was hoping you wouldn’t have to resort to it, but you can use CSS transform: scale():

      body {
      transform: scale(0.8); /* for 80% */
      }
      

      Some CSS transforms are processor intensive, although without animation should be fine on an RPi.

      posted in Troubleshooting
      N
      ninjabreadman
    • 1 / 1