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.
    • S Offline
      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 Offline
          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 Offline
              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 Offline
                  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 Offline
                      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
                      • M Offline
                        Manu85 @sdetweil
                        last edited by

                        @sdetweil Is that what we need to do? I ran the npm start command in putty

                        pi@MagicMirror:~ $ npm start
                        npm ERR! code ENOENT
                        npm ERR! syscall open
                        npm ERR! path /home/pi/package.json
                        npm ERR! errno -2
                        npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
                        npm ERR! enoent This is related to npm not being able to find a file.
                        npm ERR! enoent
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/pi/.npm/_logs/2024-01-24T12_40_06_083Z-debug.log
                        
                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @Manu85
                          last edited by

                          @Manu85 need to be in the MagicMirror folder

                          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 did that, I hope it’s ok, however the cursor remains stuck at the bottom left and does not return to: ```
                            pi@MagicMirror:~/MagicMirror $

                            
                            pi@MagicMirror:~/MagicMirror $ npm start
                            
                            > magicmirror@2.23.0 start /home/pi/MagicMirror
                            > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                            
                            [24.01.2024 14:15.19.980] [LOG]   Starting MagicMirror: v2.23.0
                            [24.01.2024 14:15.19.999] [LOG]   Loading config ...
                            [24.01.2024 14:15.20.009] [DEBUG] config template file not exists, no envsubst
                            [24.01.2024 14:15.20.024] [LOG]   Loading module helpers ...
                            [24.01.2024 14:15.20.031] [WARN]  No /home/pi/MagicMirror/js/../modules/MMM-Logging/MMM-Logging.js found for module: MMM-Logging.
                            [24.01.2024 14:15.20.034] [LOG]   No helper found for module: MMM-Logging.
                            [24.01.2024 14:15.20.036] [LOG]   No helper found for module: clock.
                            [24.01.2024 14:15.20.075] [LOG]   Initializing new module helper ...
                            [24.01.2024 14:15.20.079] [LOG]   Module helper loaded: MMM-PiTemp
                            [24.01.2024 14:15.20.153] [LOG]   Initializing new module helper ...
                            [24.01.2024 14:15.20.155] [LOG]   Module helper loaded: MMM-OneCallWeather
                            [24.01.2024 14:15.20.161] [LOG]   Initializing new module helper ...
                            [24.01.2024 14:15.20.163] [LOG]   Module helper loaded: MMM-DHT
                            [24.01.2024 14:15.20.681] [LOG]   Initializing new module helper ...
                            [24.01.2024 14:15.20.682] [LOG]   Module helper loaded: calendar
                            [24.01.2024 14:15.20.683] [LOG]   No helper found for module: MMM-SmartWebDisplay.
                            [24.01.2024 14:15.20.685] [LOG]   No helper found for module: MMM-ISS-Live.
                            [24.01.2024 14:15.20.746] [LOG]   Initializing new module helper ...
                            [24.01.2024 14:15.20.747] [LOG]   Module helper loaded: newsfeed
                            [24.01.2024 14:15.20.748] [LOG]   All module helpers loaded.
                            [24.01.2024 14:15.20.777] [LOG]   Starting server on port 8080 ...
                            [24.01.2024 14:15.20.791] [WARN]  You're using a full whitelist configuration to allow for all IPs
                            [24.01.2024 14:15.20.818] [ERROR] Whoops! There was an uncaught exception...
                            [24.01.2024 14:15.20.834] [ERROR] Error: listen EADDRINUSE: address already in use 0.0.0.0:8080
                                at Server.setupListenHandle [as _listen2] (node:net:1432:16)
                                at listenInCluster (node:net:1480:12)
                                at doListen (node:net:1629:7)
                                at process.processTicksAndRejections (node:internal/process/task_queues:84:21) {
                              code: 'EADDRINUSE',
                              errno: -98,
                              syscall: 'listen',
                              address: '0.0.0.0',
                              port: 8080
                            }
                            [24.01.2024 14:15.20.834] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                            [24.01.2024 14:15.20.835] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                            [24.01.2024 14:15.21.545] [LOG]   Launching application.
                            [1330:0124/141522.949654:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
                            [1353:0124/141523.177443:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
                            
                            

                            code_text

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

                              @Manu85 well it’s running…so no return to command line, ctrl-c to stop

                              but, the message here says you didn’t stop the one running by pm2, do

                              pm2 stop all

                              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 now I have this

                                pi@MagicMirror:~ $ cd  ~/MagicMirror/
                                pi@MagicMirror:~/MagicMirror $ pm2 stop all
                                [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                                [PM2] [mm](0) ✓
                                ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                                │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                                ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                                │ 0  │ mm                 │ fork     │ 0    │ stopped   │ 0%       │ 0b       │
                                └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                                pi@MagicMirror:~/MagicMirror $
                                
                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @Manu85
                                  last edited by

                                  @Manu85 yes, now

                                  cd ~/MagicMirror
                                  npm start
                                  

                                  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 ok it’s done but I have the impression that the page adds new lines every 20 seconds, I’ll give you a screenshot, please tell me what you need or what to do please

                                    babe9209-c72f-4a28-b470-340e68e7fe4b-image.png

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

                                      @Manu85 I was looking for the error from the calendar module. it would have been right near the top

                                      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 towards this place?

                                        pi@MagicMirror:~ $ cd ~/MagicMirror
                                        pi@MagicMirror:~/MagicMirror $ npm start
                                        
                                        > magicmirror@2.23.0 start /home/pi/MagicMirror
                                        > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                        
                                        [24.01.2024 14:30.00.848] [LOG]   Starting MagicMirror: v2.23.0
                                        [24.01.2024 14:30.00.868] [LOG]   Loading config ...
                                        [24.01.2024 14:30.00.876] [DEBUG] config template file not exists, no envsubst
                                        [24.01.2024 14:30.00.889] [LOG]   Loading module helpers ...
                                        [24.01.2024 14:30.00.892] [WARN]  No /home/pi/MagicMirror/js/../modules/MMM-Logg                                                                                                                                                             ing/MMM-Logging.js found for module: MMM-Logging.
                                        [24.01.2024 14:30.00.894] [LOG]   No helper found for module: MMM-Logging.
                                        [24.01.2024 14:30.00.895] [LOG]   No helper found for module: clock.
                                        [24.01.2024 14:30.00.927] [LOG]   Initializing new module helper ...
                                        [24.01.2024 14:30.00.929] [LOG]   Module helper loaded: MMM-PiTemp
                                        [24.01.2024 14:30.00.983] [LOG]   Initializing new module helper ...
                                        [24.01.2024 14:30.00.985] [LOG]   Module helper loaded: MMM-OneCallWeather
                                        [24.01.2024 14:30.00.990] [LOG]   Initializing new module helper ...
                                        [24.01.2024 14:30.00.991] [LOG]   Module helper loaded: MMM-DHT
                                        [24.01.2024 14:30.01.443] [LOG]   Initializing new module helper ...
                                        [24.01.2024 14:30.01.444] [LOG]   Module helper loaded: calendar
                                        [24.01.2024 14:30.01.445] [LOG]   No helper found for module: MMM-SmartWebDispla                                                                                                                                                             y.
                                        [24.01.2024 14:30.01.447] [LOG]   No helper found for module: MMM-ISS-Live.
                                        [24.01.2024 14:30.01.496] [LOG]   Initializing new module helper ...
                                        [24.01.2024 14:30.01.496] [LOG]   Module helper loaded: newsfeed
                                        [24.01.2024 14:30.01.497] [LOG]   All module helpers loaded.
                                        [24.01.2024 14:30.01.520] [LOG]   Starting server on port 8080 ...
                                        [24.01.2024 14:30.01.533] [WARN]  You're using a full whitelist configuration to                                                                                                                                                              allow for all IPs
                                        [24.01.2024 14:30.01.554] [LOG]   Server started ...
                                        [24.01.2024 14:30.01.556] [LOG]   Connecting socket for: MMM-PiTemp
                                        [24.01.2024 14:30.01.558] [LOG]   Starting module helper: MMM-PiTemp
                                        [24.01.2024 14:30.01.559] [LOG]   Connecting socket for: MMM-OneCallWeather
                                        [24.01.2024 14:30.01.561] [LOG]   Connecting socket for: MMM-DHT
                                        [24.01.2024 14:30.01.561] [LOG]   Starting module helper: MMM-DHT
                                        [24.01.2024 14:30.01.562] [LOG]   Connecting socket for: calendar
                                        [24.01.2024 14:30.01.563] [LOG]   Starting node helper for: calendar
                                        [24.01.2024 14:30.01.564] [LOG]   Connecting socket for: newsfeed
                                        [24.01.2024 14:30.01.565] [LOG]   Starting node helper for: newsfeed
                                        [24.01.2024 14:30.01.566] [LOG]   Sockets connected & modules started ...
                                        [24.01.2024 14:30.02.129] [LOG]   Launching application.
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          Manu85 @sdetweil
                                          last edited by

                                          @sdetweil then I have lines with “calendar” but there are my https addresses: from the iPhone, maybe I shouldn’t put them on the forum?

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

                                            @Manu85 correct or mass change them in a text editor first…

                                            I don’t know anything more about the module itself. I used a bad apikey and it produced an error in the data you are looking at now

                                            I used a good key, and the module displayed using the sample config. I just used my API key. no other change

                                            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