MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    I changed text in a module, now I don't get the module

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 460 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      HALPi-Thousand
      last edited by HALPi-Thousand

      So, I’ve got MM on a Pi 4b. I installed Magic Mirror, and changed a few things - measurements from Metric to Imperial, being American and behind the times, and weather locations. So far so good.

      Then I went and changed the compliments (because I don’t need a computer to tell me I’m sexy), and the opening messages (because I do want it to know I’m the boss and tell me it does).

      Now it doesn’t do either one. just a big blank space. I was going to just toss it and re-install it, but that would just mean it would happen again next time.

      So, I think I’d like to know how to prevent it instead. Obviously, other people manage to do this, so I’d like to know where I’m getting it wrong.

      I opened the xxx.js files in the desktop environment; it opened them automatically with Mousepad, which I gather is the Pi’s text editing app. Should I have used something else? Maybe open it in the Terminal, and if so, how? Or is there something else I’m missing?

      Thanks, guys

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @HALPi-Thousand
        last edited by

        @halpi-thousand 1st

        NEVER edit the module source code

        ALL config goes in config.js

        to recover a shipped mm file do( from the mm folder)

        git status
        

        if a file is modified, then do

        git checkout  ???  
        

        where ???
        is the full path to the modified source file

        for compliments, for example

        git checkout modules/default/compliments/compliments.js
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          HALPi-Thousand @sdetweil
          last edited by

          @sdetweil said in I changed text in a module, now I don't get the module:

          NEVER edit the module source code
          ALL config goes in config.js
          to recover a shipped mm file do( from the mm folder)
          git status

          Thanks, that did the trick.

          But how can I change things like the compliments text and opening greetings and such, things that aren’t in the main config file? Or am I just stuck with a very obsequious Pi?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @HALPi-Thousand
            last edited by

            @halpi-thousand just put the stuff into config.js

            see the two links in my signature below

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy