MagicMirror Forum

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

    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
    • 1 / 1