• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Default weather module stuck loading after latest MM update

Scheduled Pinned Locked Moved Solved Troubleshooting
35 Posts 8 Posters 3.9k Views 8 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 Away
    sdetweil @JMac
    last edited by Oct 8, 2024, 6:19 PM

    @JMac

    cd ~/MagicMirror
    npm start

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    J 1 Reply Last reply Oct 8, 2024, 6:43 PM Reply Quote 0
    • P Offline
      Peter @sdetweil
      last edited by Peter Oct 8, 2024, 6:20 PM Oct 8, 2024, 6:19 PM

      @sdetweil Adding ‘weatherEndpoint: “/onecall”,’’ gives some kind of weather, but for the wrong location I presume (26C but it is only 15C here).
      So, location ID does not work with API 3.0; it worked with 2.5.
      Somebody have the solution?
      Lat/ Lon?

      Peter

      M 1 Reply Last reply Oct 9, 2024, 7:45 AM Reply Quote 0
      • J Offline
        JMac @sdetweil
        last edited by Oct 8, 2024, 6:43 PM

        @sdetweil

        > magicmirror@2.29.0 start
        > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
        
        [2024-10-08 19:41:58.640] [LOG]   Starting MagicMirror: v2.29.0
        [2024-10-08 19:41:58.693] [LOG]   Loading config ...
        [2024-10-08 19:41:58.698] [LOG]   config template file not exists, no envsubst
        [2024-10-08 19:41:59.497] [INFO]  Checking config file /home/MagicMirror/MagicMirror/config/config.js ...
        [2024-10-08 19:41:59.584] [ERROR] Your configuration file contains syntax errors :(
        Line 94 column 5: Parsing error: Unexpected token weatherEndpoint
        

        That parsing error is for the new line added in for weatherEndpoint

        S 1 Reply Last reply Oct 8, 2024, 7:20 PM Reply Quote 0
        • S Away
          sdetweil @JMac
          last edited by Oct 8, 2024, 7:20 PM

          @JMac yes, the line before needs a trailing comma

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • M Offline
            MaXi-XCeL Project Sponsor @Peter
            last edited by Oct 9, 2024, 7:45 AM

            @Peter Found it in the documentation!

            Note: Latitude and longitude are REQUIRED if weatherEndpoint is set to ‘/onecall’. The locationID and location options are ignored when the OpenWeatherMap One Call API is used.

            https://docs.magicmirror.builders/modules/weather.html#configuration-options

            P P 2 Replies Last reply Oct 11, 2024, 3:05 PM Reply Quote 1
            • P Offline
              Peter @MaXi-XCeL
              last edited by Oct 11, 2024, 3:05 PM

              @MaXi-XCeL it works!
              Thanks,
              Peter

              1 Reply Last reply Reply Quote 0
              • S sdetweil has marked this topic as solved on Oct 11, 2024, 4:11 PM
              • P Offline
                pritikin71 @MaXi-XCeL
                last edited by Oct 17, 2024, 2:56 AM

                @MaXi-XCeL Screenshot 2024-10-16 224904.png

                Hi I have a new problem now, using /onecall and the correct Lat /Long parameters shows my Time Zone Name omn top of Weather modules and a Crazy time… the Clock Module shows correct.

                What else I need to modify to have Weather working again like before the doomed update? ( “Xx” for privacy)

                	{
                		module: "weather",
                		CalendarClasses: "current",
                		position: "top_right",
                		header: "Weather Forecast",
                        disabled: false,
                		config: {
                			weatherProvider: "openweathermap",
                			weatherEndpoint: "/onecall",
                			//updateInterval: "20",
                			type: "current",
                			tempUnits: "imperial",
                			degreeLabel: "false",
                			location: "XxXxX",
                			locationID: "XXxXXX", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                			apiKey: "XxXXXXxxXXXXxXXxXXxX",
                            showFeelsLike: "false",
                			lat: "2XXXX350",
                            lon: "-8X.3XXxX915"	
                			
                		}
                
                S S 2 Replies Last reply Oct 17, 2024, 12:50 PM Reply Quote 0
                • S Away
                  sdetweil @pritikin71
                  last edited by Oct 17, 2024, 12:50 PM

                  @pritikin71

                  see
                  https://forum.magicmirror.builders/topic/19043/location-title-in-default-module-weather-openweather

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  P 1 Reply Last reply Oct 21, 2024, 9:23 PM Reply Quote 0
                  • P Offline
                    pritikin71 @sdetweil
                    last edited by Oct 21, 2024, 9:23 PM

                    @sdetweil Thank you a lot.

                    I was able to fix the header problem but not the time problem. I looked to a lot of /js files looking for the TimeZone Parameter but I didnt get it.

                    4f3c3b4a-a899-4a5c-9e43-9cdb9f97e7d5-image.png

                    Also is really weird the 18:48… the different minutes tells that maybe isn’t a timezone problem.

                    S K 2 Replies Last reply Oct 21, 2024, 9:35 PM Reply Quote 0
                    • S Away
                      sdetweil @pritikin71
                      last edited by sdetweil Oct 21, 2024, 10:02 PM Oct 21, 2024, 9:35 PM

                      @pritikin71 weather with openweather 3 uses lat/lon for location
                      and time is local system time . make sure you have timezone set correctly

                      corrected below… sunrise/sunset time is shown (whichever is next)
                      not current wall clock time

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        22/35
                        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