MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    • Profile
    • Following 1
    • Followers 0
    • Topics 37
    • Posts 241
    • Groups 0
    R Offline
    1. Home
    2. Richard238
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Posts

    Recent Best Controversial
    • MMM-ClosestFlight stuck at "Checking the airspace...."

      MMM-ClosestFlight stuck at “Checking the airspace…”

      From config.js
      Also tried with the default Lat/Long

      		{
      			  module: "MMM-ClosestFlight",
      			  position: "bottom_right",
      			  config: {
              myLatitude: 11.1234, // Latitude of MagicMirror   [11.1234, WAS 35.2295]
              myLongitude: 11.1234 , // Longitude of MagicMirror  [11.1234 WAS - -80.8431]
              distanceUnits: "NM", // 'NM' for nautical miles, 'SM' for statute miles
              altitudeUnits: "M", // 'FT' for feet or 'M' for metres
              boxLatitudeMin: 34.8020, // minimum latitude of the bounding box
              boxLongitudeMin: -82.4282, // minimum longitude of the bounding box
              boxLatitudeMax: 36.2900, // maximum latitude of the bounding box
              boxLongitudeMax: 78.1815, // maximum longtitude of the bounding box
              maxWidth: "250px",
              animationSpeed: 3000, // Fade in/out speed on update
              initialLoadDelay: 4250,
              retryDelay: 2500,
              updateInterval: 20000 // How often to update
      					   }
              },	
      
      posted in Troubleshooting
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil

      		{
      			module: 'weather',
      			header: 'Current zzzzzzzzzzzzz  weather: ',			
      			position: 'top_right',
      			config: {
      				weatherProvider: "openweathermap",
      				lat: 111111111111111, 
      				lon: 1111111111111111111111,
      				apiKey: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      				type: 'current',
      				units: 'config.units'
      				//location: 'zzzzzzzzzzzzzzz',
      		}
      		},
      
      

      I must have had that API key for aeons, don’t ever remember it having a c/card behind it.
      Maybe it’s out-of-date.

      posted in Troubleshooting
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil

      With no caps? Still doesn’t work.

      config: {
      				weatherProvider: "openweathermap",
      
      posted in Troubleshooting
      R
      Richard238
    • RE: MMM-SystemMonitor

      @sdetweil said in MMM-SystemMonitor:

      Single or double quotes don’t matter as long as they are matched

      JS lesson #1 :-)

      posted in Utilities
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil

      openweathermap.js is unchanged

      WeatherProvider.register("openweathermap", {
      
      
      	providerName: "OpenWeatherMap",
      
      	// Set the default config properties that is specific to this provider
      	defaults: {
      		apiVersion: "3.0",
      		apiBase: "https://api.openweathermap.org/data/",
      		// weatherEndpoint is "/onecall" since API 3.0
      		// "/onecall", "/forecast" or "/weather" only for pro customers
      		weatherEndpoint: "/onecall",
      		locationID: false,
      		location: false,
      		// the /onecall endpoint needs lat / lon values, it doesn't support the locationId
      		lat: 0,
      		lon: 0,
      		apiKey: ""
      	},
      
      
      config.js shows
      
      
      	{
      		module: 'weather',
      		header: 'Current zzzzzzzzzzzzzzzz  weather: ',			
      		position: 'top_right',
      		config: {
      			//weatherProvider: "openweathermap",
      			providerName: "OpenWeatherMap",
      			type: "current",
      			lat: nnnnnnnnnnn,
      			lon: -nnnnnnnnnnnnn,
      			apiKey: "aaaaaaaaaaaaaaaaaaaaaaaaaaa"
      			//type: 'current',
      			//location: 'xxxxxxxxxxxxxx',
      			//locationID: 'zzzzzzzz',  //ID from https://www.openweathermap.org
      			//apiKey: 'aaaaaaaaaaaaaaaaaaaaaaaaaaa'
      		}
      	},
      
      posted in Troubleshooting
      R
      Richard238
    • RE: MMM-SystemMonitor

      @sdetweil

      That’s fixed it.

      Module in config.js

      units: 'config.units'
      

      config.js before modules

      was

      units: 'metric',
      

      Changed it to

      units: "metric",
      

      Quite how Free Memory can be 128% I’ve no idea, that’s for another day.
      For now, it’s working. Thank you!

      posted in Utilities
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil

      Do the L:L and API key live in the openweathermap.js file, or the config.js file? Or both?

      posted in Troubleshooting
      R
      Richard238
    • RE: MMM-SystemMonitor

      @sdetweil

      I don’t understand, sorry?

      posted in Utilities
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil

      Yes, real Lat:Lon used

      posted in Troubleshooting
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil

      This gives the ‘undefined, invalid date’ error on the MM

      		{
      			module: 'weather',
      			header: 'Current xxxxxxxxxxxxxxx  weather: ',			
      			position: 'top_right',
      			config: {
      				weatherProvider: "openweathermap",
      				lat: 11111111, 
      				lon:   2222222,
      				apiKey: "33333333333"
      
      			}
      		},
      
      posted in Troubleshooting
      R
      Richard238
    • RE: MMM-SystemMonitor

      @sdetweil

      [2025-02-02 21:35:32.330] [INFO]  Checking modules structure configuration ... 
      [2025-02-02 21:35:32.511] [ERROR] Cannot read properties of undefined (reading 'units') 
      
      

      Module says:

      units: config.units,
      

      And also tried with

      units: metric,
      

      Which failed with:

      [ERROR] metric is not defined 
      
      

      config.js towards the beginning says:

      units: 'metric',
      
      posted in Utilities
      R
      Richard238
    • RE: MMM-SystemMonitor

      @sdetweil said in MMM-SystemMonitor:

      npm run config:check

      pi@mmv2:~ $ npm run config:check 
      npm error code ENOENT
      npm error syscall open
      npm error path /home/pi/package.json
      npm error errno -2
      npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/pi/package.json'
      npm error enoent This is related to npm not being able to find a file.
      npm error enoent
      npm error A complete log of this run can be found in: /home/pi/.npm/_logs/2025-02-02T19_09_35_627Z-debug-0.log
      pi@mmv2:~ $ 
      
      
      posted in Utilities
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:

      leave off those parms.

      Which ones, sorry?

      posted in Troubleshooting
      R
      Richard238
    • RE: MMM-SystemMonitor

      @sdetweil

      It’s the currently misbehaving weather forecast:

      		{
      			module: 'weather',
      			position: 'top_right',
      			header: 'Weather Forecast for: ',
      			config: {
      				type: 'forecast',
      				location: 'nnnnnnnnn',
      				locationID: '11111111',  //ID from https://www.openweathermap.org
      				apiKey: 'aaaa444444444444444444'
      			}
      		},
      
      		//{
                  //module: 'MMM-SystemMonitor',
                  //position: 'bottom_right',
                  //config: {
                      //updateInterval: 60000,
      
      posted in Utilities
      R
      Richard238
    • RE: MMM-SystemMonitor

      Installed, added to config.js

      		{
                  module: 'MMM-SystemMonitor',
                  position: 'bottom_right',
                  config: {
                      updateInterval: 60000,
                      cpuThermalZone: 0,
                      units: config.units,
                  }
              },
      

      MM fails to load.
      Comment those lines out, MM is OK. What have I missed?

      posted in Utilities
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      @sdetweil said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:

      ionToHeader: false

      default config sample works, but that’s using openmeteo, not openweathermap, is that correct?

      		{
      			module: "weather",
      			position: "top_right",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "current",
      				lat: 40.776676,
      				lon: -73.971321
      			}
      		},
      		{
      			module: "weather",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "forecast",
      				lat: 40.776676,
      				lon: -73.971321
      			}
      		},
      		{
      

      openweathermap.js I have as

      		apiVersion: "3.0",
      		apiBase: "https://api.openweathermap.org/data/",
      		// weatherEndpoint is "/onecall" since API 3.0
      		// "/onecall", "/forecast" or "/weather" only for pro customers
      		weatherEndpoint: "/onecall",
      
      posted in Troubleshooting
      R
      Richard238
    • RE: Version 2.30.0 weather module, stuck loading, worked fine before upgrade

      Ran the update, weather module failed , read this thread and can now have either weather or forecast. Can we no longer have both, like before?

      posted in Troubleshooting
      R
      Richard238
    • RE: MMM-OpenWeatherMapForecast stuck on Loading....

      Just changed OS to Bookworm and reinstalled MM, stuck with weather modules loading…
      For me, @postb8822 's 29th April 2024 suggestion worked just fine, thank you :)

      posted in Utilities
      R
      Richard238
    • RE: Default Clock wrong after update

      Just updated my MM, clock is showing 18:13 when it’s 11:54…

      posted in Troubleshooting
      R
      Richard238
    • RE: Update, unable to connect.

      @sdetweil

      pi@magicmirror:~/MagicMirror $ node -v
      v16.1.0
      
      
      posted in Troubleshooting
      R
      Richard238
    • 1
    • 2
    • 3
    • 4
    • 5
    • 12
    • 13
    • 2 / 13