Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. cweinhofer
    C
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 5
    • Best 1
    • Groups 0

    cweinhofer

    @cweinhofer

    1
    Reputation
    303
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    cweinhofer Follow

    Best posts made by cweinhofer

    • When do you need quotes?

      I just started setting up my MagicMirror and am a total newbie. I am not a coder / programmer – I’ve basically just mimicked the examples from the various modules in GitHub to do my configuration. So this is a pretty basic question, but one that other newbies may be wondering as well.

      When entering a value for a config line, when do you need quotes?

      At first, I just assumed you quoted everything. But I was changing something in my config file and noticed some unquoted values. After a little more investigation, I realized that there are a few values that only work if they are not quoted (e.g. plain numbers and boolean T/F).

      Can someone confirm the specifics of this for us newbies?

      In case I’m not being clear, it seems like you would do

      port: 8080
      

      without quotes but

      units: "metric"
      

      with quotes.

      And a bonus question, should it be double quotes, single quotes, or can you use either one?

      posted in Tutorials
      C
      cweinhofer

    Latest posts made by cweinhofer

    • RE: CSS for small fullscreen display

      @sdetweil Thanks for the suggestions. The browser options didn’t seem to work for me, but the viewport CSS did. I couldn’t use your file as-is, but was able to borrow from it to add to my custom CSS.

      I ended up adding custom sizes for each element – one of the things I was trying to avoid – but it was the only workable solution I could come up with for now.

      I was wondering if the CSS transform: scale(x); might be a solution for scaling the whole layout, but I’m not sure what element to apply it to. Maybe someone who is more knowledgeable can comment.

      I know that the body margin, height, and width all need to be adjusted, not just the font size, so it would need to accommodate for that.

      Here’s my custom CSS if anyone’s interested:

      body {
      	margin: 6vw;
      	height: calc(100% - 12vw);
      	width: calc(100% - 12vw);
      	font-size: 9vw;
      	line-height: 9vw;
      }
      
      .small {
      	font-size: 9vw;
      	line-height: 9.5vw;
      }
      
      .medium {
      	font-size: 6vw;
      	line-height: 6.5vw;
      }
      
      .large {
      	font-size: 36vw;
      	line-height: 36vw;
      }
      
      header {
        font-size: 6vw;
        line-height: 6vw;
        padding-bottom: 2vw;
        margin-bottom: 3vw;
      }
      
      .module {
        margin-bottom: 12vw;
      }
      
      posted in Development
      C
      cweinhofer
    • CSS for small fullscreen display

      I have come to appreciate having the info from my MagicMirror so much that I want to have little "mini"MagicMirrors in various rooms of my house.

      This is quite easy using the drawerful of old smartphones I have and MM’s serveronly function on a secondary port. It’s great because the phones need very minimal configuration, just put the MM’s serveronly address in a browser.

      The only snag I’m running into is that I would like the info to take up the whole screen rather then just part of the screen as would be typical with MM. (see images below)

      I’m hoping someone can suggest a simple CSS trick that would scale the whole MM content. If possible, something that would scale based on the width of the screen would be even better – allowing for phones of different sizes or even tablets.

      Thanks!

      What I have with the default CSS is:
      Screenshot_20200704-100214.png

      What I want is:
      Screenshot_20200704-101548.png

      posted in Development
      C
      cweinhofer
    • RE: Reusing Node Web Server

      Thanks @sdetweil

      I added my directory to the list, restarted MagicMirror, and I can now see the file.

      For other’s reference, the code above is located in MagicMirror/js/server.js

      posted in Troubleshooting
      C
      cweinhofer
    • Reusing Node Web Server

      Anyone know how I can put a file in the MagicMirror directory to allow it to be accessed (internally) via HTTP? It works if I put my file in the Modules folder, but I’d prefer not to do that to keep things cleaner. I tried putting the file in the MagicMirror folder directly and also a sub-folder I created, but both give me an error of “Cannot GET test.html”?

      posted in Troubleshooting
      C
      cweinhofer
    • When do you need quotes?

      I just started setting up my MagicMirror and am a total newbie. I am not a coder / programmer – I’ve basically just mimicked the examples from the various modules in GitHub to do my configuration. So this is a pretty basic question, but one that other newbies may be wondering as well.

      When entering a value for a config line, when do you need quotes?

      At first, I just assumed you quoted everything. But I was changing something in my config file and noticed some unquoted values. After a little more investigation, I realized that there are a few values that only work if they are not quoted (e.g. plain numbers and boolean T/F).

      Can someone confirm the specifics of this for us newbies?

      In case I’m not being clear, it seems like you would do

      port: 8080
      

      without quotes but

      units: "metric"
      

      with quotes.

      And a bonus question, should it be double quotes, single quotes, or can you use either one?

      posted in Tutorials
      C
      cweinhofer