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.

    MagicMirror Weather

    Scheduled Pinned Locked Moved Troubleshooting
    10 Posts 4 Posters 7.0k Views 4 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.
    • U Offline
      Usrnme2Lng @Mykle1
      last edited by

      @Mykle1 I think I made a mistake by putting similar code in the wrong file I put it into the other config file by doing ‘sudo nano /boot/config.txt’

      How to I get to the config file you’re talking about?

      cowboysdudeC 1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer @Usrnme2Lng
        last edited by

        @Usrnme2Lng said in MagicMirror Weather:

        @Mykle1 I think I made a mistake by putting similar code in the wrong file I put it into the other config file by doing ‘sudo nano /boot/config.txt’

        How to I get to the config file you’re talking about?

        I would in a terminal window go to:
        ~MagicMirror/config
        type: cp config.js.sample config.js

        That will give you your config file.

        Then you can sudo nano config.js and enter the weather info.

        1 Reply Last reply Reply Quote 2
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by

          OR

          My suggestion, because it helped me, is, don’t do your editing in the terminal. Do it in the graphical user interface (GUI). Navigate your desktop as you would on a PC with Windows or a Mac’s Finder.

          Click on File Manager (the folder at the top left of your desktop, usually)
          Double click the MagicMirror folder
          Double click the config folder
          Right click the config.js.sample file - select Copy
          Right click again somewhere else in that same window - select Paste
          Rename the file you just pasted to config.js and click the Rename button
          The new config.js file that you just pasted is now your working config file for MagicMirror
          Double click it and it should open in a text editor.

          This is one of the places where you will customize your MM. It’s actually good enough to run your MM, although it will only show some of the modules but you’ll be encouraged by the fact that it is at least working. Every module folder has a ReadMe file that instructs you on what to add to your config.js file to get that module up and running.

          Create a working config
          How to add modules

          U 1 Reply Last reply Reply Quote 1
          • U Offline
            Usrnme2Lng @strawberry 3.141
            last edited by

            @strawberry-3.141 Thank you!! That worked!

            1 Reply Last reply Reply Quote 0
            • U Offline
              Usrnme2Lng @Mykle1
              last edited by

              @Mykle1 Thanks! This helped a lot. I am trying to get more comfortable with the terminal, but I think that in this case, it was best to use a text editor.

              Also, I followed the instructions in the guide but for some reason, my screen is still going blank.

              I edited the autostart file, as below:

              sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
              
              @xset s noblank
              @xset s off
              @xset -dpms
              

              I also edited the lightdm.conf file, as seen below:

              sudo nano /etc/lightdm/lightdm.conf
              

              I edited the xserver-command bit to look like this:

              xserver-command=X -s 0 -dpms
              

              Any ideas of what I can do next? For what it’s worth, it is a flatscreen TV, so it has a remote and I also tried going through the settings and made sure that sleep mode was off.

              cowboysdudeC 1 Reply Last reply Reply Quote 0
              • cowboysdudeC Offline
                cowboysdude Module Developer @Usrnme2Lng
                last edited by

                @Usrnme2Lng Install xscreensaver and save yourself a lot of time and headache…

                Install it on the pi then disable screensaver… easiest way to do it.

                https://www.linuxbabe.com/ubuntu/install-autostart-xscreensaver-ubuntu-16-04-16-10

                U 1 Reply Last reply Reply Quote 1
                • U Offline
                  Usrnme2Lng @cowboysdude
                  last edited by

                  @cowboysdude Thank you! That seems to have fixed the issue!

                  1 Reply Last reply Reply Quote 1
                  • 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