• 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.

magicmirror is blocked after 30 sec

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 2 Posters 3.0k Views 2 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.
  • B Offline
    boyboy
    last edited by Sep 14, 2020, 1:42 PM

    Thx,
    I restarted the whole installation cleanly. The same problem appears.
    here is the console log :

    main.js:478 Initializing MagicMirror.
    /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
    protocols.This exposes users of this app to unnecessary security risks.
    Consider loading the following resources over HTTPS or FTPS.

    • http://localhost:8080/css/main.css
    • http://localhost:8080/fonts/roboto.css
    • http://localhost:8080/socket.io/socket.io.js
    • http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
    • http://localhost:8080/js/defaults.js
    • http://localhost:8080/config/config.js
    • http://localhost:8080/vendor/vendor.js
    • http://localhost:8080/modules/default/defaultmodules.js
    • http://localhost:8080/js/logger.js
    • http://localhost:8080/translations/translations.js
    • http://localhost:8080/js/translator.js
    • http://localhost:8080/js/class.js
    • http://localhost:8080/js/module.js
    • http://localhost:8080/js/loader.js
    • http://localhost:8080/js/socketclient.js
    • http://localhost:8080/js/main.js
    • http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
    • http://localhost:8080/translations/fr.json
    • http://localhost:8080/translations/en.json
    • http://localhost:8080/modules/default/alert//alert.js
    • http://localhost:8080/modules/default/alert/notificationFx.js
    • http://localhost:8080/modules/default/alert/notificationFx.css
    • http://localhost:8080/vendor/css/font-awesome.css
    • http://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css
    • http://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css

    For more information and help, consult
    https://electronjs.org/docs/tutorial/security.
    This warning will not show up
    once the app is packaged.
    warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95
    /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
    Policy set or a policy with “unsafe-eval” enabled. This exposes users of
    this app to unnecessary security risks.

    For more information and help, consult
    https://electronjs.org/docs/tutorial/security.
    This warning will not show up
    once the app is packaged.
    (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145

    (index):1 Refused to apply style from 'http://localhost:8080/css/custom.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
    

    main.js:496 All modules started!

    weatherforecast.js:274 GET https://api.openweathermap.org/data/2.5/forecast/daily?id=3026534&cnt=40&units=metric&lang=fr&APPID=cfc2a0386deb21a6a6cf85ca2ba89bde 401 (Unauthorized)
    

    updateWeather @ weatherforecast.js:274
    (anonymous) @ weatherforecast.js:396
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:395
    start @ weatherforecast.js:94
    startModules @ loader.js:52
    (anonymous) @ loader.js:38
    stylesheet.onerror @ loader.js:207
    error (async)
    loadFile @ loader.js:204
    loadNextModule @ loader.js:36
    (anonymous) @ loader.js:29
    (anonymous) @ loader.js:122
    (anonymous) @ loader.js:158
    load @ translator.js:189
    loadTranslations @ module.js:330
    (anonymous) @ loader.js:155
    loadNextDependency @ module.js:296
    (anonymous) @ module.js:293
    loadFile @ loader.js:236
    loadNextDependency @ module.js:291
    loadDependencies @ module.js:300
    loadStyles @ module.js:266
    (anonymous) @ loader.js:153
    loadNextDependency @ module.js:296
    loadDependencies @ module.js:300
    loadScripts @ module.js:275
    bootstrapModule @ loader.js:151
    afterLoad @ loader.js:121
    loadModule @ loader.js:130
    loadNextModule @ loader.js:27
    (anonymous) @ loader.js:29
    (anonymous) @ loader.js:122
    (anonymous) @ loader.js:158
    (anonymous) @ translator.js:186
    xhr.onreadystatechange @ translator.js:22
    XMLHttpRequest.send (async)
    loadJSON @ translator.js:25
    load @ translator.js:180
    loadTranslations @ module.js:330
    (anonymous) @ loader.js:155
    loadNextDependency @ module.js:296
    (anonymous) @ module.js:293
    stylesheet.onload @ loader.js:201
    load (async)
    loadFile @ loader.js:199
    loadFile @ loader.js:259
    loadNextDependency @ module.js:291
    loadDependencies @ module.js:300
    loadStyles @ module.js:266
    (anonymous) @ loader.js:153
    loadNextDependency @ module.js:296
    loadDependencies @ module.js:300
    loadScripts @ module.js:275
    bootstrapModule @ loader.js:151
    afterLoad @ loader.js:121
    (anonymous) @ loader.js:134
    script.onload @ loader.js:181
    load (async)
    loadFile @ loader.js:179
    loadModule @ loader.js:132
    loadNextModule @ loader.js:27
    (anonymous) @ loader.js:29
    (anonymous) @ loader.js:122
    (anonymous) @ loader.js:158
    loadTranslations @ module.js:333
    (anonymous) @ loader.js:155
    loadNextDependency @ module.js:296
    (anonymous) @ module.js:293
    stylesheet.onload @ loader.js:201
    load (async)
    loadFile @ loader.js:199
    loadFile @ loader.js:259
    loadNextDependency @ module.js:291
    (anonymous) @ module.js:293
    loadFile @ loader.js:236
    loadNextDependency @ module.js:291
    loadDependencies @ module.js:300
    loadStyles @ module.js:266
    (anonymous) @ loader.js:153
    loadNextDependency @ module.js:296
    (anonymous) @ module.js:293
    loadFile @ loader.js:236
    loadNextDependency @ module.js:291
    loadDependencies @ module.js:300
    loadScripts @ module.js:275
    bootstrapModule @ loader.js:151
    afterLoad @ loader.js:121
    (anonymous) @ loader.js:134
    script.onload @ loader.js:181
    load (async)
    loadFile @ loader.js:179
    loadModule @ loader.js:132
    loadNextModule @ loader.js:27
    (anonymous) @ loader.js:29
    (anonymous) @ loader.js:122
    (anonymous) @ loader.js:158
    loadTranslations @ module.js:333
    (anonymous) @ loader.js:155
    loadNextDependency @ module.js:296
    (anonymous) @ module.js:293
    stylesheet.onload @ loader.js:201
    load (async)
    loadFile @ loader.js:199
    loadFile @ loader.js:244
    loadNextDependency @ module.js:291
    loadDependencies @ module.js:300
    loadStyles @ module.js:266
    (anonymous) @ loader.js:153
    loadNextDependency @ module.js:296
    (anonymous) @ module.js:293
    script.onload @ loader.js:181

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil
      last edited by Sep 14, 2020, 1:47 PM

      @boyboy said in magicmirror is blocked after 30 sec:

      weatherforecast 401 (Unauthorized)

      looks like your appid is invalid

      custom.css’ because its MIME type
      because the file is not created by default…

      what other modules do you have installed?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        boyboy
        last edited by boyboy Sep 14, 2020, 2:01 PM Sep 14, 2020, 1:57 PM

        i have remove forecast_weather module from config.js .The problem still appears

        S 1 Reply Last reply Sep 14, 2020, 2:04 PM Reply Quote 0
        • B Offline
          boyboy
          last edited by boyboy Sep 14, 2020, 2:01 PM Sep 14, 2020, 2:00 PM

          two errors displayed on console :

          • Refused to apply style from ‘http://localhost:8080/css/custom.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

          • Error on loadind stylesheet: css/custom.css

          There is only one file in : css/main.css

          S 1 Reply Last reply Sep 14, 2020, 2:02 PM Reply Quote 0
          • S Offline
            sdetweil @boyboy
            last edited by Sep 14, 2020, 2:02 PM

            @boyboy custom.css

            I said before

            custom.css’ because its MIME type
            because the file is not created by default… < ------- YOU have to create it if u need it

            if you had used my installer script, it would have created one for you

            see https://github.com/sdetweil/MagicMirror_scripts

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @boyboy
              last edited by Sep 14, 2020, 2:04 PM

              @boyboy what other modules do you have installed , can u post your config.js, please use the code marker for that text here in the forum

              paste text,
              select text
              then click the </> button above

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • B Offline
                boyboy
                last edited by Sep 14, 2020, 2:05 PM

                source from : http://localhost:8080/css/custom.css

                @loader.js :205

                stylesheet.onerror = function () {
                Log.error(“error on loading styleshhet:”, fileName);

                S 1 Reply Last reply Sep 14, 2020, 2:06 PM Reply Quote 0
                • S Offline
                  sdetweil @boyboy
                  last edited by Sep 14, 2020, 2:06 PM

                  @boyboy hello… did u read my prior post…

                  YOU have to create the file…

                  do this

                  ~/MagicMirror
                  touch css/custom.css
                  

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  B 1 Reply Last reply Sep 14, 2020, 2:10 PM Reply Quote 0
                  • B Offline
                    boyboy
                    last edited by boyboy Sep 14, 2020, 2:08 PM Sep 14, 2020, 2:08 PM

                    modules: [
                    	{
                    		module: "alert",
                    	},
                    	{
                    		module: "updatenotification",
                    		position: "top_bar"
                    	},
                    	{
                    		module: "clock",
                    		position: "top_left"
                    	},
                    	{
                    		module: "calendar",
                    		position: "top_left",
                    		config: {
                    			maximumNumberOfDays: 100,
                    			maximumEntries: 7,
                    			fade: "false",
                    			fadePoint: "0.80",
                    			calendars: [
                    				{
                    					url: 'http://localhost:8080/modules/calendars/*****.ics',
                    					symbol: 'calendar'
                    				},
                    				{
                    					url: 'http://localhost:8080/modules/calendars/*****.ics',
                    					symbol: 'birthday-cake'	
                    				}
                    			]
                    		}
                    	},
                    	{
                    		module: "compliments",
                    		position: "lower_third"
                    	},
                    	{
                    		module: "currentweather",
                    		position: "top_right",
                    		config: {
                    			location: "***",
                    			locationID: "3026534", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    			appid: "****", //openweathermap.org API key
                    			showHumidity: "true",
                    			useKMPHwind: "true",
                    			roundTemp: "true",
                    			useBeaufort: "false"
                    		}
                    	},
                    	{
                    		module: 'MMM-AirQuality',
                    		position: 'top_right', // you may choose any location
                    		config: {
                    			location: 'france/bourgogne/macon-paul-bert/', // the location to check the index for
                    			lang: "fr"
                    				}
                    	},
                    	//{
                    	//	module: "weatherforecast",
                    	//	position: "top_right",
                    	//	header: "Weather Forecast",
                    	//	config: {
                    	//		location: "***",
                    	//		locationID: "3026534", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    	//		appid: "****", //openweathermap.org API key
                    	//		colored: "true",
                    	//		fade: "false",
                    	//		fadePoint: "0.75",
                    	//		showRainAmount: "true",
                    	//		roundTemp: "true"
                    	//	}
                    	//},
                    	{	
                    		module: 'MMM-Todoist',
                    		position: 'top_left',	// This can be any of the regions. Best results in left or right regions.
                    		config: { // See 'Configuration options' for more information.
                    			hideWhenEmpty: false,
                    			accessToken: '****',
                    			maximumEntries: 60,
                    			updateInterval: 10*60*1000, // Update every 10 minutes
                    			fade: false,  // projects and/or labels is mandatory:
                    			projects: [ **** ], 
                    			labels: [ "MagicMirror" ] // Tasks for any projects with these labels will be shown.
                    		}
                    	},
                    	{
                    		module: 'MMM-Todoist',
                    		position: 'top_left',	// This can be any of the regions. Best results in left or right regions.
                    		config: { // See 'Configuration options' for more information.
                    			hideWhenEmpty: false,
                    			accessToken: '***',
                    			maximumEntries: 60,
                    			updateInterval: 10*60*1000, // Update every 10 minutes
                    			fade: false,  // projects and/or labels is mandatory:
                    			projects: [ **** ], 
                    			labels:  "Important"  // Tasks for any projects with these labels will be shown.
                    		}
                    	},
                    ]
                    

                    };

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      boyboy @sdetweil
                      last edited by Sep 14, 2020, 2:10 PM

                      @sdetweil i did it. There is no error in console now. But clock still block after 30 sec

                      S 1 Reply Last reply Sep 14, 2020, 2:11 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        8/19
                        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