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: Permission Denied - Config File

      @KumarTRD It’s not executable. You need to use an editor to open it, like nano:

      nano ~/MagicMirror/config/config.js

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

      @Damian Do you want 6x or 60%? (The former seems very small). Sorry I misunderstood about your PC; most of us use PCs as dev machines for the RPi.

      If 6x (or, inverted, 1/6 or 16.7%):

      body {
      transform: scale(0.167); /* this might get messy, at least with any raster assets (like images) */
      }
      

      Or 60%:

      body {
      transform: scale(0.6);
      }
      

      According to this very interesting StackExchange question, you can also set the document’s zoom property in JavaScript (and via CSS, too):

      document.body.style.zoom = 2;
      
      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Trouble with Smart Quotes, etc

      @Mykle1 Thanks! I keep seeing it mentioned in the forums, and wanted to give us all a quick way to refer people to help. I’d already written most of it with all of my responses here so I decided to rearrange them into a freestanding post.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Starting MagicMirror with `DISPLAY=:0 npm start` throws ERR!

      @loonix You might check to see that run-start.sh is executable:

      chmod +x ~/MagicMirror/run-start.sh
      

      You can also try :

      npm cache clean
      npm install
      npm start
      

      Finally, the MM project doesn’t run well on Raspbian Lite. Jessie Full is the recommended build. Check out this thread for a few other tips.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: GIF update from URL with MMM-EyeCandy

      @Mykle1 How did you seed the url with a timestamp? When I visit https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?1521767776, I get the image returned (not a 404).

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Todoist accesstoken

      @sizer Go here:

      1. Create an app (e.g. “My Private MagicMirror”) in the developer’s console. If you don’t have a website, use example.com.
      2. Then with your client ID and secret, construct an OAuth query (with whatever scope your app will need) and visit in a browser.
      3. It will then redirect you to your app’s website with a code parameter. (If using example.com, it will fail to reach the site; just look at the address bar and find the code parameter.)
      4. Use thecode parameter to exchange for an access token (e.g. using curl):
      $ curl "https://todoist.com/oauth/access_token" \
          -d "client_id=0123456789abcdef" \
          -d "client_secret=secret" \
          -d "code=abcdef" \
          -d "redirect_uri=https://example.com"
      
      posted in Troubleshooting
      N
      ninjabreadman
    • RE: Blackscreen after changing custom.css

      @juju Yep, just body {}: custom.css at GitHub

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: How do I "commit" changes to allow an update

      @pierrepi I posted recently on how to “stash” your changes in git. You don’t want to commit them, except to share with others.

      posted in Troubleshooting
      N
      ninjabreadman
    • RE: How to autorestart MM once a day

      @MaxPower It stacks every 1-2 days? I don’t quite understand what that means.

      In any case, what command are you using to restart? Are you trying to restart MM (recommended) or the RPi? If you have pm2 installed and managing your MM process, I suggest using pm2 restart mm. Whatever commend you choose, run it in Terminal first to ensure it will do what you intend.

      There are lots of videos and walkthroughs available online on how to use crontab.

      I recommend you then add the following crontab task:

      * 4 * * * pm2 restart mm
      

      This will restart MM every day at 4am (when I assume you’re not using it) so that it’s ready in the morning.

      posted in Troubleshooting
      N
      ninjabreadman
    • 1 / 1