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.

    Changing icons of the modules Current Weather and Weather Forecast

    Scheduled Pinned Locked Moved Development
    301 Posts 30 Posters 1.6m Views 33 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.
    • M Offline
      Manu85 @sdetweil
      last edited by

      @sdetweil I found, you have to set this setting to “0”, otherwise it reloads every 30 seconds

      NextURLInterval: 0,
      
      1 Reply Last reply Reply Quote 1
      • M Offline
        Manu85 @sdetweil
        last edited by

        @sdetweil Hello Sam, I still need your help, I saw KristjanESPERANTO’s module: MMM-OneCallWeather which I really like, so I installed this module I copied his example from js.config which I have completed with my elements longitude, latitude apy key, I tested my api key on the internet in version 2.5 and it works, so I changed the version in MMM-OneCallWeather.js, as Kristjan explains in the github, and when I restart the MM it notifies loading and nothing happens, I tried to understand, but I’m stuck, so I call a specialist :-)

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Manu85
          last edited by

          @Manu85 said in Changing icons of the modules Current Weather and Weather Forecast:

          -OneCall

          OneCall requires the v3 key and api as I understand it…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M M 3 Replies Last reply Reply Quote 0
          • M Offline
            Manu85 @sdetweil
            last edited by

            @sdetweil In detail he says this:
            (apiVersion The OpenWeatherMap API version to use. Change it to “2.5” if you have an old apikey

            Default value: 3.0)
            I understood that if we had an old version then we had to change this parameter but I may have misinterpreted

            1 Reply Last reply Reply Quote 0
            • M Offline
              Manu85 @sdetweil
              last edited by

              @sdetweil when I connect to an internet page it gives me this, so I think it’s active, I entered lat, long and api key

              7754e207-c876-4ca7-bb47-bc9614fca53a-image.png

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Manu85
                last edited by

                @Manu85 as far as I can tell, the one call API with keys since mid 2023 is only available via the v3.0 apikey setting

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 2 Replies Last reply Reply Quote 0
                • M Offline
                  Manu85 @sdetweil
                  last edited by

                  @sdetweil So it pays?

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

                    @sdetweil on my weather module I have an api key 2.5, I don’t know if that’s it but I have the impression that the weather data is wrong. Do you know of a weather module for the MM with current and forecast that would be graphically nice and free? because if to have version 3.0 you have to pay that doesn’t interest me, thank you for your help

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @Manu85
                      last edited by

                      @Manu85 in the console (where u start magicmirror, npm start )

                      you might see

                      [23.01.2024 12:12.22.384] [LOG]   [MMM-OneCallWeather] 23-Jan-24 12:12 ** ERROR ** Error: Unauthorized
                      

                      if you are using the wrong api key

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Manu85
                        last edited by

                        @Manu85 the page says v3 api, and 1000 calls per day free

                        Screenshot at 2024-01-23 12-16-18.png

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          Manu85 @sdetweil
                          last edited by

                          @sdetweil Yes I went to this page, but then they ask you for your bank card!!!

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @Manu85
                            last edited by

                            @Manu85 yes, they will charge you IF you go over the 1000/day… nothing is free anymore… you MUST provide a valid card, or the api key is not functional

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            M 2 Replies Last reply Reply Quote 0
                            • M Offline
                              Manu85 @sdetweil
                              last edited by

                              @sdetweil Thank you for your answer and you are right everything is charged today, fortunately there are still sites and people like you to share for FREE what they know

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @Manu85
                                last edited by

                                @Manu85 yes, but I don’t generate any pretty user interfaces!! no icons or graphs…lol

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Manu85 @sdetweil
                                  last edited by

                                  @sdetweil Yes but it’s thanks to people like you that there is still communication without banking intermediary to build projects… I would therefore stay with my version 2.5 which is free while waiting for a developer to find a solution:- ) what bothers me is that the weather forecast with pretty icons etc. there are some on smartphones, cars, television, internet etc. and all this is free, as soon as you want to do something different you have to PAY :-(

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @Manu85
                                    last edited by

                                    @Manu85 said in Changing icons of the modules Current Weather and Weather Forecast:

                                    version 2.5 which is free while waiting for a developer to find a solution:- )

                                    the problem is that the provider (openweathermap), is only providing v3 api keys now for the OneCall api used by the module.

                                    SO… there is nothing the developer can do to get around that.

                                    openweathermap is no longer issuing 2.5 api keys

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      manu85340 @sdetweil
                                      last edited by

                                      @sdetweil I found a post from March 2023 where we talk about you on the same subject 😉
                                      IMG_1116.png

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @manu85340
                                        last edited by

                                        @manu85340 yes, this module is already using all that

                                            apiVersion: "3.0",
                                        
                                         `https://api.openweathermap.org/data/${config.apiVersion}/onecall` +
                                        

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          Manu85 @sdetweil
                                          last edited by

                                          @sdetweil I subscribed to onecall and I just tested this morning and I still have the same “loading” thing, in my config.js I put the following things:

                                          {
                                          module: "MMM-OneCallWeather",
                                               position: "top_right", // This can be any of the regions.
                                               // Best results in bottom_bar region due to horizontal default layout and icon sizes.
                                               config: {
                                                 // See 'Configuration options' for more information.
                                                 latitude: "46.561180", // Longitude from https://www.latlong.net/
                                                 longitude: "-1.782440", // Longitude from https://www.latlong.net/ - is West + is East of London
                                                 apikey: "MY NEW API KEY V3.0" // openweathermap.org API key.
                                               }
                                             },
                                          

                                          in MMM-OneCallWeather.js I have this:
                                          letdata;

                                          Module.register("MMM-OneCallWeather", {
                                             // Default module config.
                                             defaults: {
                                               latitude: true,
                                               longitude: true,
                                               apikey: "",
                                               apiVersion: "3.0",
                                               units: config.units,
                                               layout: "vertical", // default
                                               showRainAmount: false,
                                               showWind: true,
                                               showWindDirection: true,
                                               showFeelsLike: true,
                                               tempUnits: "c",
                                               windunits: "mph",
                                               useBeaufortInCurrent: false,
                                          
                                               initialLoadDelay: 2500, // 2.5 seconds delay. This delay is used to keep the OpenWeather API happy.
                                               updateInterval: 10 * 60 * 1000, // every 10 minutes
                                               animationSpeed: 1000,
                                               updateFadeSpeed: 500,
                                               lang:config.language,
                                               language: config.language,
                                               requestDelay: 0,
                                          

                                          I haven’t touched anything else, can you help me please?

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @Manu85
                                            last edited by

                                            @Manu85 show me the output of npm start

                                            if you use pm2 to launch, then

                                            pm2 logs --lines=50

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            M 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
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 15
                                            • 16
                                            • 8 / 16
                                            • 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