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.

    Funny, yet not funny ...

    Scheduled Pinned Locked Moved General Discussion
    1 Posts 1 Posters 1.4k Views 1 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.
    • KirAsh4K Offline
      KirAsh4 Moderator
      last edited by KirAsh4

      Last night I got home and decided I wanted to tinker with some more on my MM² code. After some lines were written, I popped a browser open … and saw no change. Huh? Went back, double checked my code, refreshed the browser … nothing. Oookay, I started adding debug lines and commenting out others. Still nothing, no debug, no console, no change, anywhere. Well this is annoying … the mirror is still running, but it seems none of my changes are taking. Ok, so maybe I need to restart the process. So I popped open another SSH session, logged in, and hit 'pm2 restart MM'. Boom, the mirror restarts no problems. But what’s this? Even on the mirror I don’t see my code changes. Did the rpi suddenly get corrupted and it can’t read data? Crap. Time to restart the rpi and do a file systems check. That came back fine, memory test, fine … so what gives? Flipped back to the first SSH window to check on code … yep still there. What’s going on?!

      By now I was getting irritated so I did the next best thing I could think of: recloned everything from github, reset it all, and try again (from the first SSH window session - can you guess what’s going on here yet?.) Hit reload …ok, it comes up. Let’s make code changes again … nothing. No changes, it’s like all my code was being completely ignored.

      So I flipped back to the second SSH session I had opened to start looking at the filesystem again and then it hit me … I’m working on the wrong device! UGH! The window title correctly tells me that I was on a different address, I just never looked UP to see it.

      See, I have an identical installation on my office server, it’s an exact clone of the rpi at home. When I code at home, I push up to github, when I get to the office, I clone it back down. When I leave the office at the end of the day, I push changes up to github and when I get home, I reclone again. So the two devices always stay the same. In the first SSH session window, I was already logged into the one at the office, I just didn’t realize it. So all my code changes were being done there while I was trying to see the changes from the rpi at home.

      It’s at that point I decided it’s time to just go to bed. :)

      A Life? Cool! Where can I download one of those from?

      1 Reply Last reply Reply Quote 4

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 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