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.

    weatherforecast showing only two days.

    Scheduled Pinned Locked Moved Troubleshooting
    31 Posts 22 Posters 13.9k Views 21 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.
    • S Offline
      sdetweil @castletonroad
      last edited by

      @castletonroad

      how about no quotes

      showRainAmount: false,
      

      values that are all numbers, or true and false do not need quotes
      everything else does need quotes

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Reply Quote 1
      • C Offline
        castletonroad @sdetweil
        last edited by

        @sdetweil Great, that sorted things nicely!

        How ever did I miss that in the config instructions… :astonished_face:

        1 Reply Last reply Reply Quote 0
        • T Offline
          tenyo @oemel09
          last edited by

          @oemel09 Thanks a lot!

          1 Reply Last reply Reply Quote 0
          • D Offline
            dh1201
            last edited by

            Thanks for the ‘quick fix’ - Works perfectly.

            1 Reply Last reply Reply Quote 0
            • A Offline
              ArthurOff
              last edited by

              Will this be fixed in the next update or do we need to adjust manually?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @ArthurOff
                last edited by sdetweil

                @ArthurOff next release (3 months), OR you can use the develop branch now til then, 2.12+.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  ArthurOff @sdetweil
                  last edited by

                  @sdetweil haha, got it!

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    DavidCarreira @oemel09
                    last edited by

                    @oemel09 Thanks, your fix is working fine!

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      FatTony123
                      last edited by

                      @oemel09… yep, just can confirm. This fix works like charm ;-)

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        Wilfried @oemel09
                        last edited by

                        @oemel09 Perfect. Thanks for the workaround.

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          Hindenberg @oemel09
                          last edited by

                          @oemel09 thx for your support. Different to many others, this fix doesn’t work for me. I’m running MM in a docker container and am not able to keep line 297 of weatherforecast.js edited. It always jumps back into its origin version:

                          params += "&cnt=" + (this.config.maxNumberOfDays < 1 || this.config.maxNumberOfDays > 17 ? 7 : this.config.maxNumberOfDays);
                          

                          I tried in /mounts/modules/default/weatherforecast/ and also inside the container. I also set the container environment: MM_OVERRIDE_CSS: "false", but no way, after restarting the container, it is always showing the “old” values above
                          Any hints?

                          karsten13K 1 Reply Last reply Reply Quote 0
                          • amarandA Offline
                            amarand @oemel09
                            last edited by

                            @oemel09

                            Patch worked for me, thank you!

                            1 Reply Last reply Reply Quote 0
                            • karsten13K Online
                              karsten13 @Hindenberg
                              last edited by

                              @Hindenberg

                              If you are using this setup https://gitlab.com/khassel/magicmirror#default-modules you need also set MM_OVERRIDE_DEFAULT_MODULES: "false"

                              H 1 Reply Last reply Reply Quote 0
                              • H Offline
                                Hindenberg @karsten13
                                last edited by

                                @karsten13 was pretty sure I did this. Works perfect, thanks a lot.

                                1 Reply Last reply Reply Quote 0
                                • kayakbabeK Offline
                                  kayakbabe @castletonroad
                                  last edited by

                                  @castletonroad I have had the same eperience too.

                                  1 Reply Last reply Reply Quote 0
                                  • Z Offline
                                    zxjason
                                    last edited by

                                    @oemel09 Thanks, your fix is working fine!

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      radioman
                                      last edited by

                                      I have the same Problem
                                      Thanks, your fix is working very good

                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        MacRock
                                        last edited by

                                        Hey guys,

                                        may I’m to silly for that stuff but I’m not able to fix the 2 day problem.

                                        If I change something in the weatherforecast.js and reboot the pi, every value is default again. I have changed a file named entrypoint.sh in the build directory. I set there both MM_OVERRIDE values to “false”.

                                        Can please anybody help me to fix that?

                                        1 Reply Last reply Reply Quote 0
                                        • karsten13K Online
                                          karsten13
                                          last edited by

                                          If you are using this docker setup you have to set the MM_OVERRIDE values in the docker-compose.yml file as described in the link above (and not in entrypoint.sh).

                                          The simple solution is to use the develop-image which contains already the changes you want to do. In this case you have to edit the docker-compose.yml file and replace the image from karsten13/magicmirror:latest to karsten13/magicmirror:develop.

                                          In both cases after editing the docker-compose.yml file you have to restart the container. So navigate into the directory where the docker-compose.yml file is located and run docker-compose up -d.

                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            banderjay
                                            last edited by

                                            @oemel09 legend, i was going insane over this one

                                            1 Reply Last reply Reply Quote 0

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