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.

    MMM-DarkSkyForecast - Yet ANOTHER weather module

    Scheduled Pinned Locked Moved Utilities
    334 Posts 67 Posters 836.1k Views 74 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.
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Smotx
      last edited by

      @smotx Yeah coming through for me now too. Weird.

      OK from the top down:

      • The first two regions are actually spacing that accommodates the icon when it appears (It’s currently not appearing due to a bug I fixed today. Do a git pull to update the module and restart MM. You’ll see once the icon is in place, that the vertical space is better used. Keep in mind that the icons are square, and some of them only use a portion of the square. Nonetheless the square still takes up that amount of space. Here’s what it should look like:

      0_1544566139465_Screen Shot 2018-12-11 at 10.08.31 PM.png

      You can decrease the space under the header a bit with this:

      .MMM-DarkSkyForecast .module-header {
        margin-bottom: 5px; /* adjust to taste */
      }
      

      Keep in mind this will also affect the header above the forecast if you have configured it to be there. That can be controlled independently as follows:

      .MMM-DarkSkyForecast .module-header.forecast-header {
        margin-bottom: 10px; /* adjust to taste */
      }
      
      * the next one below the extra current conditions is margin above the summary.  Adjust it as follows:
      
      

      .MMM-DarkSkyForecast .summary {
      margin-top: 10px; /* adjust to taste */
      }

      
      You can also affect the margin underneath the summary in a similar way:
      
      

      .MMM-DarkSkyForecast .summary {
      margin-bottom: 10px; /* adjust to taste */
      }

      
      
      * The following four below are controlled by the line-height of the time and day displays:
      
      

      .MMM-DarkSkyForecast .wrapper.tiled .forecast-container .forecast-item .time,
      .MMM-DarkSkyForecast .wrapper.tiled .forecast-container .forecast-item .day-name {
      line-height: 20px; /* adjust to taste */
      }

      
      Put all of the CSS changes in your `custom.css` file.  Don't make changes to `MMM-DarkSkyForecast.css` as they will be overwritten if you update the module to a newer version.
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        Smotx @j.e.f.f
        last edited by

        @j-e-f-f

        Thx a lot

        it’s good now, it remains 2 spaces a little wide, but it does not exceed more on the next module, thank you again.

        J 1 Reply Last reply Reply Quote 0
        • D Offline
          dan-o
          last edited by

          @j-e-f-f came home to see the icon working, which was strange. anyway, grabbed your recent update and it works great. thank you SO MUCH for your time on this :)

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            dan-o @dan-o
            last edited by

            @dan-o said in MMM-DarkSkyForecast - Yet ANOTHER weather module:

            @j-e-f-f came home to see the icon working, which was strange. anyway, grabbed your recent update and it works great. thank you SO MUCH for your time on this :)

            Looks like I spoke too soon :(. Was working after a restart. Walked by the mirror just now and no icon present.

            J 2 Replies Last reply Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @Smotx
              last edited by

              @smotx you can control the width of the module in CSS. It defaults to 300px, but if you need it wider or narrower you can use this:

              .MMM-DarkSkyForecast .module-content {
                width: 250px; /* adjust this to taste */
              }
              
              1 Reply Last reply Reply Quote 0
              • J Offline
                j.e.f.f Project Sponsor Module Developer @dan-o
                last edited by

                @dan-o hmmm… will look into this some more. For now, if you disable the animated icons you will at least get the static one reliably.

                1 Reply Last reply Reply Quote 0
                • J Offline
                  j.e.f.f Project Sponsor Module Developer
                  last edited by

                  I left this running on my mirror overnight and my main icon disappeared at some point as well, but it was back this morning. I have a few theories as to why.

                  The way the animated icons work is that they get drawn real-time by JavaScript, which means I need to wait until the DOM update is finished before executing the draw command. I thought I had licked that with my last update but the combination of the Nunjucks templating system seems to be adding a latency I’m not accounting for.

                  Will continue working on this over the next couple of days. Turn off animated icons for now as a work around.

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Arjan Project Sponsor
                    last edited by Arjan

                    Is it possible to disable the main icon via the config?
                    I’m running two configs of MMM-DarkSlyForecast next to each other. One with 9 hour forecast and the other one with 6 day forecast.
                    Because of this I have 2 main icons that are the same. See picture below.

                    Is it possible to disable one of them via the config?

                    0_1544721189173_43b4ccd5-eb05-46ce-8246-680aaf875837-image.png

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      j.e.f.f Project Sponsor Module Developer @Arjan
                      last edited by

                      @arjan yes. Here are a few config options for you:

                      showCurrentConditions: false will turn off the main icon and the current temparature display (the two big items).
                      showExtraCurrentConditions: false will turn off the the additional current conditions immediately below the big icon and temperature.

                      This module is programmed it with this type of usage in mind, so it supports multiple instances to work independently. I do something similar on my kitchen display centre.

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Arjan Project Sponsor @j.e.f.f
                        last edited by

                        @j-e-f-f Thanks. I overlooked that one.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          j.e.f.f Project Sponsor Module Developer @dan-o
                          last edited by

                          @dan-o said in MMM-DarkSkyForecast - Yet ANOTHER weather module:

                          Looks like I spoke too soon :(. Was working after a restart. Walked by the mirror just now and no icon present.

                          @dan-o @Smotx I think I’ve licked the disappearing icon issue for good now. I tested a fix on my mirror for 24 hours, and the icon was visible every time I checked up on it. Please do a git pull in the MMM-DarkSkyForecast directory and restart MM. Let me know if it’s fixed.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dan-o
                            last edited by

                            @j-e-f-f Pulled just now. Will let you know if I run into the issue again!

                            Appreciate ya!

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Johans @j.e.f.f
                              last edited by

                              @j-e-f-f installed latest version of your nicely build weather forecast module, but now I see that my personal web player is not working anymore.

                              All content is displayed on the mirror, but there is no reaction when I press a play button (seems play buttons are disabled)

                              To show the player on my mirror I’ve abused the widget module.

                              It shows me 6 radio stations and a selection button for MP3’s on the SD card of the raspberry. (All simple stuff – so far no rocket science)

                              I’m sure problem is related towards the installation of your weather module, as I did a rebuild on another SD card to try -out.

                              Removing and re-installing your module or the widget module was no solution so far.

                              Started mirror in dev mode, but here also I don’t see any problem.

                              As I read here that you updated this module to use the Nunjucks html templating system, I suspect it has a relation with my html code I’m using in the widget module.

                              See below code in the config. Perhaps somebody can port this code according the Nunjucks html. (sound lick chinees for me  )

                                 {
                                 		disabled: false, 
                                 		module: "MMM-Widget",
                                    	        position: "middle_center",
                                  		pages: {"Page1": "lower_third"},
                                 		config: {
                                 		widgets: [
                                 	        { //insert your script or html codes here.
                                 	        html:`     
                                                     <!-- TradingView Widget BEGIN --> 
                                 		<html lang="en">
                                 		<head>
                                 		<title>JSTAL MIRROR PLAYER</title>
                                 		<meta charset="UTF-8">
                                 		<meta name="viewport" content="width=device-width, initial-scale=1">
                                 		<link rel="stylesheet" type="text/css" href="http://localhost:8080/modules/MyPlayer/css/styles.css">   <!-- page design -->
                                 	        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
                                 		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <!-- For audio play -->
                                 		<style>
                                 		</style>
                                 		</head>
                                 		<body>
                                 		
                                 		<div class="header">
                                 		  <h1>Mirror Webradio / MP3 Player</h1>
                                 		</div>
                                 		
                                 		<div class="row">
                                 		  <div class="main">
                                 		     <p>My Radio Stations</p>
                                 			 <img src="http://localhost:8080/modules/MyPlayer/images/JoeFM.jpg" style="width:5%;">
                                 			 <audio id="myAudio0" src="http://icecast-qmusic.cdp.triple-it.nl:80/JOEfm_be_live_128.mp3" preload="false" controls="true" volume="1.0"></audio>
                                 		     <script>   <!-- Script play pause toggle -->
                                 			 var myAudio0 = document.getElementById("myAudio0");
                                 				function togglePlay() {
                                 				return myAudio0.paused ? myAudio0.play() : myAudio0.pause();
                                 				};
                                 			 </script> <br>
                                 			 <img src="https://upload.wikimedia.org/wikipedia/commons/0/09/Qmusiclogo2015red.jpg" style="width:5%;">
                                 			 <audio id="myAudio1" src="http://icecast-qmusic.cdp.triple-it.nl:80/Qmusic_be_live_96.mp3" preload="false" controls="true" volume="1.0"></audio>
                                 		     <script>   <!-- Script play pause toggle -->
                                 			 var myAudio1 = document.getElementById("myAudio1");
                                 				function togglePlay() {
                                 				return myAudio1.paused ? myAudio1.play() : myAudio1.stoppause();
                                 				};
                                 			 </script> <br>
                                 			 <img src="https://pbs.twimg.com/profile_images/1612540320/FAMILYRADIO_LOGO_WEB_400x400.jpg" style="width:5%;">
                                 			 <audio id="myAudio2" src="http://www.clubfmserver.be:8000/family.mp3" preload="false" controls="true" volume="1.0"></audio>
                                 		     <script>   <!-- Script play pause toggle -->
                                 			 var myAudio2 = document.getElementById("myAudio2");
                                 				function togglePlay() {
                                 				return myAudio2.paused ? myAudio2.play() : myAudio2.pause();
                                 				};
                                 			 </script> <br>
                                 		    <img src="https://upload.wikimedia.org/wikipedia/commons/3/36/MNM_logo.png" style="width:5%;">
                                 			 <audio id="myAudio3" src="http://icecast.vrtcdn.be/mnm_hits-high.mp3" preload="false" controls="true" volume="1.0"></audio>
                                 		     <script>   <!-- Script play pause toggle -->
                                 			 var myAudio3 = document.getElementById("myAudio3");
                                 				function togglePlay() {
                                 				return myAudio3.paused ? myAudio3.play() : myAudio3.pause();
                                 				};
                                 			 </script> <br>	   
                                 		     <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Radio_2_Logo.svg/1000px-Radio_2_Logo.svg.png" style="width:5%;">
                                 			 <audio id="myAudio4" src="http://icecast.vrtcdn.be/ra2ovl-high.mp3" preload="false" controls="true" volume="1.0"></audio>
                                 		     <script>   <!-- Script play pause toggle -->
                                 			 var myAudio4 = document.getElementById("myAudio4");
                                 				function togglePlay() {
                                 				return myAudio4.paused ? myAudio4.play() : myAudio4.pause();
                                 				};
                                 			 </script> <br>
                                 		     <img src="https://pbs.twimg.com/profile_images/1476072724/Logo-alta-resolucao-MusicCityGame.jpg" style="width:5%;">
                                 			 <audio id="myAudio5" src="http://stream2.intronic.nl:80/citymusic" preload="false" controls="true" volume="1.0"></audio>
                                 		     <script>   <!-- Script play pause toggle -->
                                 			 var myAudio5 = document.getElementById("myAudio5");
                                 				function togglePlay() {
                                 				return myAudio5.paused ? myAudio5.play() : myAudio5.pause();
                                 				};
                                 			 </script> <br>		
                                 				
                                 				
                                 		        <hr><p>Select and Play MP3 from Local database folder </p>
                                 		        <input type="file" id="songs" multiple> <br> <br>
                                 			<i class="fa fa-music"></i>
                                 		        <audio controls id="myAudio" autoplay></audio>
                                 		    
                                 				 <script>   <!-- Script play pause toggle -->
                                 				
                                 					var songs = document.getElementById("songs"),
                                 						myAudio = document.getElementById("myAudio");
                                 						function next(n){
                                 						  var url = URL.createObjectURL(files[n]);
                                 						  myAudio.setAttribute('src', url);
                                 						  myAudio.play();
                                 						}
                                 						var _next = 0,
                                 						files,
                                 						len;
                                 						songs.addEventListener('change', function() {
                                 						  files = songs.files;
                                 						  len = files.length;
                                 						  if(len){
                                 						next(_next);
                                 						  }
                                 						});
                                 						myAudio.addEventListener("ended", function(){
                                 						   _next += 1;
                                 						   next(_next);
                                 						   console.log(len, _next);
                                 						   if((len-1)==_next){
                                 						 _next=-1;
                                 						   }
                                 						});
                                 				 </script>	   
                                 		
                                 		</body>
                                 
                                 		<!-- TradingView Widget END -->
                                                     `,    // Ends of Widget - important to set!
                                 	        width: "460px",
                                 	        height: "525px",
                                 	        backgroundColor: "#256d7b"   //"#FFF"
                                 	      },
                                 		]
                                 	  }
                                 	},
                              
                                 
                              

                              For people interested here the CSS details as well.

                              /* add here some separate css data */
                              /* Style the body margin: 0  */
                              body {
                                  font-family: Arial;
                                  margin: auto;
                                  width: 450px;
                                  height: 500px;
                                  border: 3px solid #256d7b;
                              }
                              
                              /* Header/logo Title  - color = #1abc9c/#008080  of #256d7b */
                              .header {
                                  padding: 5px;
                                  text-align: center;
                                  background: #256d7b;
                                  color: white;
                              }
                              
                              /* Increase the font size of the heading */
                              .header h1 {
                                  font-size: 20px;
                              }
                              
                              /* Main column   color = #fcfcfc or white */
                              .main {   
                                  -ms-flex: 60%; /* IE10 */   
                                  flex: 60%;
                                  background-color: #fcfcfc;
                                  padding: 20px;
                                  text-align: center;
                              }
                              
                              /* Draw up a vertical line */
                              hr.vertical
                              {
                                 width: 5px;
                                 height: 100%; /* or height in PX */
                              } 
                              
                              .slider {
                                position: absolute;
                                cursor: pointer;
                                top: 0;
                                left: 0;
                                right: 0;
                                bottom: 0;
                                background-color: #ca2222;
                                -webkit-transition: .4s;
                                transition: .4s;
                                 border-radius: 34px;
                              }
                              .slider:before {
                                position: absolute;
                                content: "";
                                height: 26px;
                                width: 26px;
                                left: 4px;
                                bottom: 4px;
                                background-color: white;
                                -webkit-transition: .4s;
                                transition: .4s;
                                border-radius: 50%;
                              }
                              
                              input:checked + .slider {
                                background-color: #2ab934;
                              }
                              
                              input:focus + .slider {
                                box-shadow: 0 0 1px #2196F3;
                              }
                              
                              input:checked + .slider:before {
                                -webkit-transform: translateX(26px);
                                -ms-transform: translateX(26px);
                                transform: translateX(55px);
                              }
                              /*------ ADDED CSS ---------*/
                              .slider:after
                              {
                               content:'OFF';
                               color: white;
                               display: block;
                               position: absolute;
                               transform: translate(-50%,-50%);
                               top: 50%;
                               left: 50%;
                               font-size: 10px;
                               font-family: Verdana, sans-serif;
                              }
                              
                              input:checked + .slider:after
                              {  
                                content:'ON';
                              }
                              

                              Maybe there are other ways to embed my player on the mirror, but for now MMM-Widget was the only thing I found to do.

                              Hope somebody can help me out.

                              Thx.

                              J J 2 Replies Last reply Reply Quote 0
                              • J Offline
                                j.e.f.f Project Sponsor Module Developer @Johans
                                last edited by

                                @johans If you disable the MMM-DarkSkyForecast module do you get your web player functionality back?

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Johans @Johans
                                  last edited by

                                  @johans
                                  I’ll guess something went wrong when I paste the code

                                  {
                                  			disabled: false, 
                                  			module: "MMM-Widget",
                                  	   	        position: "middle_center",
                                  	 		pages: {"Page1": "lower_third"},
                                  			config: {
                                  			widgets: [
                                  		        { //insert your script or html codes here.
                                  		        html:`     
                                                          <!-- TradingView Widget BEGIN --> 
                                  			<html lang="en">
                                  			<head>
                                  			<title>JSTAL MIRROR PLAYER</title>
                                  			<meta charset="UTF-8">
                                  			<meta name="viewport" content="width=device-width, initial-scale=1">
                                  			<link rel="stylesheet" type="text/css" href="http://localhost:8080/modules/MyPlayer/css/styles.css">   <!-- page design -->
                                  		        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
                                  			<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>  <!-- For audio play -->
                                  			<style>
                                  			</style>
                                  			</head>
                                  			<body>
                                  			
                                  			<div class="header">
                                  			  <h1>Mirror Webradio / MP3 Player</h1>
                                  			</div>
                                  			
                                  			<div class="row">
                                  			  <div class="main">
                                  			     <p>My Radio Stations</p>
                                  				 <img src="http://localhost:8080/modules/MyPlayer/images/JoeFM.jpg" style="width:5%;">
                                  				 <audio id="myAudio0" src="http://icecast-qmusic.cdp.triple-it.nl:80/JOEfm_be_live_128.mp3" preload="false" controls="true" volume="1.0"></audio>
                                  			     <script>   <!-- Script play pause toggle -->
                                  				 var myAudio0 = document.getElementById("myAudio0");
                                  					function togglePlay() {
                                  					return myAudio0.paused ? myAudio0.play() : myAudio0.pause();
                                  					};
                                  				 </script> <br>
                                  				 <img src="https://upload.wikimedia.org/wikipedia/commons/0/09/Qmusiclogo2015red.jpg" style="width:5%;">
                                  				 <audio id="myAudio1" src="http://icecast-qmusic.cdp.triple-it.nl:80/Qmusic_be_live_96.mp3" preload="false" controls="true" volume="1.0"></audio>
                                  			     <script>   <!-- Script play pause toggle -->
                                  				 var myAudio1 = document.getElementById("myAudio1");
                                  					function togglePlay() {
                                  					return myAudio1.paused ? myAudio1.play() : myAudio1.stoppause();
                                  					};
                                  				 </script> <br>
                                  				 <img src="https://pbs.twimg.com/profile_images/1612540320/FAMILYRADIO_LOGO_WEB_400x400.jpg" style="width:5%;">
                                  				 <audio id="myAudio2" src="http://www.clubfmserver.be:8000/family.mp3" preload="false" controls="true" volume="1.0"></audio>
                                  			     <script>   <!-- Script play pause toggle -->
                                  				 var myAudio2 = document.getElementById("myAudio2");
                                  					function togglePlay() {
                                  					return myAudio2.paused ? myAudio2.play() : myAudio2.pause();
                                  					};
                                  				 </script> <br>
                                  			    <img src="https://upload.wikimedia.org/wikipedia/commons/3/36/MNM_logo.png" style="width:5%;">
                                  				 <audio id="myAudio3" src="http://icecast.vrtcdn.be/mnm_hits-high.mp3" preload="false" controls="true" volume="1.0"></audio>
                                  			     <script>   <!-- Script play pause toggle -->
                                  				 var myAudio3 = document.getElementById("myAudio3");
                                  					function togglePlay() {
                                  					return myAudio3.paused ? myAudio3.play() : myAudio3.pause();
                                  					};
                                  				 </script> <br>	   
                                  			     <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Radio_2_Logo.svg/1000px-Radio_2_Logo.svg.png" style="width:5%;">
                                  				 <audio id="myAudio4" src="http://icecast.vrtcdn.be/ra2ovl-high.mp3" preload="false" controls="true" volume="1.0"></audio>
                                  			     <script>   <!-- Script play pause toggle -->
                                  				 var myAudio4 = document.getElementById("myAudio4");
                                  					function togglePlay() {
                                  					return myAudio4.paused ? myAudio4.play() : myAudio4.pause();
                                  					};
                                  				 </script> <br>
                                  			     <img src="https://pbs.twimg.com/profile_images/1476072724/Logo-alta-resolucao-MusicCityGame.jpg" style="width:5%;">
                                  				 <audio id="myAudio5" src="http://stream2.intronic.nl:80/citymusic" preload="false" controls="true" volume="1.0"></audio>
                                  			     <script>   <!-- Script play pause toggle -->
                                  				 var myAudio5 = document.getElementById("myAudio5");
                                  					function togglePlay() {
                                  					return myAudio5.paused ? myAudio5.play() : myAudio5.pause();
                                  					};
                                  				 </script> <br>		
                                  					
                                  					
                                  			        <hr><p>Select and Play MP3 from Local database folder </p>
                                  			        <input type="file" id="songs" multiple> <br> <br>
                                  				<i class="fa fa-music"></i>
                                  			        <audio controls id="myAudio" autoplay></audio>
                                  			    
                                  					 <script>   <!-- Script play pause toggle -->
                                  					
                                  						var songs = document.getElementById("songs"),
                                  							myAudio = document.getElementById("myAudio");
                                  							function next(n){
                                  							  var url = URL.createObjectURL(files[n]);
                                  							  myAudio.setAttribute('src', url);
                                  							  myAudio.play();
                                  							}
                                  							var _next = 0,
                                  							files,
                                  							len;
                                  							songs.addEventListener('change', function() {
                                  							  files = songs.files;
                                  							  len = files.length;
                                  							  if(len){
                                  							next(_next);
                                  							  }
                                  							});
                                  							myAudio.addEventListener("ended", function(){
                                  							   _next += 1;
                                  							   next(_next);
                                  							   console.log(len, _next);
                                  							   if((len-1)==_next){
                                  							 _next=-1;
                                  							   }
                                  							});
                                  					 </script>	   
                                  			
                                  			</body>
                                  	
                                  			<!-- TradingView Widget END -->
                                                          `,    // Ends of Widget - important to set!
                                  		        width: "460px",
                                  		        height: "525px",
                                  		        backgroundColor: "#256d7b"   //"#FFF"
                                  		      },
                                  			]
                                  		  }
                                  		},
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Johans @j.e.f.f
                                    last edited by

                                    @j-e-f-f
                                    No, It doesn’t come back.
                                    I made a new installation on fresh SD card.
                                    All works fine without installing your module, after that it’s not working anymore.

                                    J J 2 Replies Last reply Reply Quote 0
                                    • J Offline
                                      Johans @Johans
                                      last edited by

                                      When I run directly in the browser, it’s OK, but thats not the main goal, should run via the MagicMirror.

                                      J 1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        hco125
                                        last edited by

                                        I posted an issue on your module link in GitHub, but no response yet. Please see this link for details. Both the config in the link as well as the one below do the same thing…loading infinitely.

                                        		{
                                        			module: 'MMM-DarkSkyForecast',
                                        			header: "Weather",
                                        			position: 'top_center',
                                        			disabled: false,
                                        			config: {
                                        				updateInterval: 10,
                                        				units: 'us',
                                        				forecastHeaderText: "O'Neill, NE",
                                        				iconset: '5c',
                                        				apiKey: 'blocked for privacy',
                                        				latitude: '42.457649',
                                        				longitude: '-98.647789',
                                        				forecastLayout: 'tiled',```
                                        			},
                                        		},
                                        
                                        lavolp3L 1 Reply Last reply Reply Quote 0
                                        • lavolp3L Offline
                                          lavolp3 Module Developer @hco125
                                          last edited by lavolp3

                                          @hco125
                                          Time to go do some debugging. Ican imagine noone will be able to help you with the information given.

                                          Please do the following:
                                          Start the mirror in dev mode

                                          npm start dev
                                          

                                          OR

                                          Open the mirror webpage on another browser (MIRRORIP:8080), press F12 for dev mode

                                          In both cases, try to find error messages referring to this module and post them here.

                                          How to troubleshoot modules
                                          MMM-soccer v2, MMM-AVStock

                                          N 1 Reply Last reply Reply Quote 0
                                          • H Offline
                                            hco125
                                            last edited by hco125

                                            I stripped down my MagicMirror configuration as well, so that we know that another module is not interfering. The modules that ARE on this config include: alert, updatenotification, MMM-ModuleScheduler, clock, MMM-AlarmClock, MMM-DarkSkyForecast, and MMM-Screencast. Here are the errors in the console running MagicMirror and accessing on Chrome with those modules running.

                                            7
                                            moment-timezone-with-data.js:472 Moment Timezone has no data for none. See http://momentjs.com/timezone/docs/#/data-loading/.
                                            logError	@	moment-timezone-with-data.js:472
                                            57
                                            moment-timezone-with-data.js:472 Moment Timezone has no data for none. See http://momentjs.com/timezone/docs/#/data-loading/.
                                            logError	@	moment-timezone-with-data.js:472
                                            fn.tz	@	moment-timezone-with-data.js:554
                                            getDom	@	clock.js:79
                                            (anonymous)	@	main.js:110
                                            updateDom	@	main.js:109
                                            updateDom	@	main.js:514
                                            updateDom	@	module.js:358
                                            (anonymous)	@	clock.js:45
                                            

                                            However, I then stripped ALL modules EXCEPT MMM-DarkSkyForecast and rechecked the console. I get NO errors, and the log is as follows, but the modules still loads infinitely, with no display of weather (see screenshot, below):

                                            Initializing MagicMirror.
                                            translator.js:201 Loading core translation file: translations/en.json
                                            translator.js:224 Loading core translation fallback file: translations/en.json
                                            loader.js:182 Load script: modules/MMM-DarkSkyForecast//MMM-DarkSkyForecast.js
                                            module.js:469 Check MagicMirror version for module 'MMM-DarkSkyForecast' - Minimum version:  2.2.0 - Current version: 2.6.0
                                            module.js:471 Version is ok!
                                            module.js:477 Module registered: MMM-DarkSkyForecast
                                            loader.js:152 Bootstrapping module: MMM-DarkSkyForecast
                                            loader.js:182 Load script: vendor/node_modules/moment/min/moment-with-locales.js
                                            loader.js:182 Load script: modules/MMM-DarkSkyForecast/skycons.js
                                            loader.js:157 Scripts loaded for: MMM-DarkSkyForecast
                                            loader.js:197 Load stylesheet: modules/MMM-DarkSkyForecast/MMM-DarkSkyForecast.css
                                            loader.js:159 Styles loaded for: MMM-DarkSkyForecast
                                            loader.js:161 Translations loaded for: MMM-DarkSkyForecast
                                            loader.js:197 Load stylesheet: css/custom.css
                                            MMM-DarkSkyForecast.js:138 Starting module: MMM-DarkSkyForecast
                                            main.js:468 All modules started!
                                            module.js:156 MMM-DarkSkyForecast received a system notification: ALL_MODULES_STARTED
                                            module.js:156 MMM-DarkSkyForecast received a system notification: MODULE_DOM_CREATED
                                            module.js:156 MMM-DarkSkyForecast received a system notification: DOM_OBJECTS_CREATED
                                            

                                            0_1546643275690_Capture.PNG
                                            So after adding in one module at a time to determine which one was throwing the errors I posted above, it is the default MagicMirror “clock” module, and I do not believe it is the cause of the MMM-DarkSkyForecast problems.

                                            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
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 16
                                            • 17
                                            • 10 / 17
                                            • 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