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.

    Throwing down the gauntlet

    Scheduled Pinned Locked Moved Troubleshooting
    85 Posts 11 Posters 106.6k Views 11 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
      jbeck615 @strawberry 3.141
      last edited by

      @strawberry-3.141 So I can definitely post the css coding but my pi takes some time to start up some days it seems… anyway what I was ultimately trying to do was, using wunderground, get rid of the last column as you and Mykle1 showed above and get the icon for current to look realistic/color but keep the forecast icons as generic icons. so the way i attempted this was incorporate all of the edits you all provided above. then i repeated wunderground twice in the modules, one to show current and the color icon (realistic icon) and a second time just to show forecast but with generic icons. however when i stack them both in top right thats where i get the unwanted icons. if i put current wunderground in the top center then they go away. thoughts? i can provide css if needed for sure. thanks for even looking! ![alt text](0_1488306217254_Picturemirror.jpg image url)

      Mykle1M 1 Reply Last reply Reply Quote 0
      • J Offline
        jbeck615 @Mykle1
        last edited by

        @Mykle1 thanks for sharing! the width of the monthly calendar was bothering me and i was going to research later anyway!

        Mykle1M 1 Reply Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @johnnyboy
          last edited by

          @johnnyboy said in Throwing down the gauntlet:

          is that why you put the ! important there?

          No sir, I do believe that this is the entry that constrains the module to 200 pixels ( and the color)

          .calendar_monthly {
            width: 200px;
            color: #6f6;
          } 
          

          Create a working config
          How to add modules

          johnnyboyJ 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @jbeck615
            last edited by

            @jbeck615 said in Throwing down the gauntlet:

            thanks for sharing! the width of the monthly calendar was bothering me and i was going to research later anyway!

            Cool. I’ve found answers that way too, before I even had the question

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @jbeck615
              last edited by

              @jbeck615 said in Throwing down the gauntlet:

              then i repeated wunderground twice in the modules,

              You would have to repeat wunderground twice in the config.js file, not the modules, for starters

              Create a working config
              How to add modules

              J 1 Reply Last reply Reply Quote 0
              • johnnyboyJ Offline
                johnnyboy @Mykle1
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • J Offline
                  jbeck615 @Mykle1
                  last edited by

                  @Mykle1 thats what i meant but poorly wrote that. i got the idea from your script but im thinking that there may be a away to have the icon for the current different from the forecast icons

                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @jbeck615
                    last edited by

                    @jbeck615 can you share your wunderground config which leads to the unwanted icons?

                    Please create a github issue if you need help, so I can keep track

                    J 2 Replies Last reply Reply Quote 0
                    • J Offline
                      jbeck615 @strawberry 3.141
                      last edited by

                      @strawberry-3.141

                      /* global Module */
                      /* Magic Mirror
                       * Module: WunderGround
                       *
                       * By RedNax
                       * MIT Licensed.
                       */
                      Module.register("MMM-WunderGround", {
                      
                          // Default module config.
                          defaults: {
                              apikey: "8cxxxxxx",
                              pws: "",
                              currentweather: 1,
                              coloricon: false,
                              units: config.units,
                              windunits: "mph", // choose from mph, bft
                              updateInterval: 10 * 60 * 1000, // every 10 minutes
                              animationSpeed: 1000,
                              timeFormat: config.timeFormat,
                              lang: config.language,
                              showWindDirection: true,
                              fade: false,
                              fadePoint: 0.25, // Start on 1/4th of the list.
                              tz: "",
                              fcdaycount: "5",
                              fcdaystart: "0",
                              hourly: "0",
                              hourlyinterval: "3",
                              hourlycount: "2",
                              fctext: "1",
                              alerttime: 5000,
                              roundTmpDecs: 1,
                              UseCardinals: 0,
                              layout: "vertical",
                              sysstat: 0,
                              scaletxt: 1,
                      
                              retryDelay: 2500,
                      
                              apiBase: "http://api.wunderground.com/api/",
                      
                              iconTableDay: {
                                  "chanceflurries": "wi-day-snow-wind",
                                  "chancerain": "wi-day-showers",
                                  "chancesleet": "wi-day-sleet",
                                  "chancesnow": "wi-day-snow",
                                  "chancetstorms": "wi-day-storm-showers",
                                  "clear": "wi-day-sunny",
                                  "cloudy": "wi-cloud",
                                  "flurries": "wi-snow-wind",
                                  "fog": "wi-fog",
                                  "haze": "wi-day-haze",
                                  "hazy": "wi-day-haze",
                                  "mostlycloudy": "wi-cloudy",
                                  "mostlysunny": "wi-day-sunny-overcast",
                                  "partlycloudy": "wi-day-cloudy",
                                  "partlysunny": "wi-day-cloudy-high",
                                  "rain": "wi-rain",
                                  "sleet": "wi-sleet",
                                  "snow": "wi-snow",
                                  "tstorms": "wi-thunderstorm"
                              },
                      
                              iconTableNight: {
                                  "chanceflurries": "wi-night-snow-wind",
                                  "chancerain": "wi-night-showers",
                                  "chancesleet": "wi-night-sleet",
                                  "chancesnow": "wi-night-alt-snow",
                                  "chancetstorms": "wi-night-alt-storm-showers",
                                  "clear": "wi-night-clear",
                                  "cloudy": "wi-night-alt-cloudy",
                                  "flurries": "wi-night-alt-snow-wind",
                                  "fog": "wi-night-fog",
                                  "haze": "wi-night-alt-cloudy-windy",
                                  "hazy": "wi-night-alt-cloudy-windy",
                                  "mostlycloudy": "wi-night-alt-cloudy",
                                  "mostlysunny": "wi-night-alt-partly-cloudy",
                                  "partlycloudy": "wi-night-alt-partly-cloudy",
                                  "partlysunny": "wi-night-alt-partly-cloudy",
                                  "rain": "wi-night-alt-rain",
                                  "sleet": "wi-night-alt-sleet",
                                  "snow": "wi-night-alt-snow",
                                  "tstorms": "wi-night-alt-thunderstorm"
                              }
                      
                          },
                      
                         
                      
                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • strawberry 3.141S Offline
                        strawberry 3.141 Project Sponsor Module Developer @jbeck615
                        last edited by

                        @jbeck615 you shouldn make the changes in the module itself all config changes should go in the config file

                        Please create a github issue if you need help, so I can keep track

                        J 2 Replies Last reply Reply Quote 0
                        • J Offline
                          jbeck615 @strawberry 3.141
                          last edited by

                          @strawberry-3.141 to be honest i dont know if i pasted enough as it kept cutting me off due to character count but just let me know. no rush. also the picture here, the current weather at the center, is what ideally id love to have at top right. however when i change the position, the top info above the current weather and those icons pop up. thanks regardless for taking a look! 0_1488321534851_2017-02-28-162722_1184x624_scrot.jpg

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jbeck615 @strawberry 3.141
                            last edited by

                            @strawberry-3.141

                            .region.top.right .MMM-WunderGround table.small td:nth-child(6) {
                              display:none; 
                            }
                            .MMM-WunderGround .weathericon {
                              font-size: 45%;
                              line-height: 5px;
                              display: inline-block;
                              -ms-transform: translate(0, -3px); /* IE 9 */
                              -webkit-transform: translate(0, -3px); /* Safari */
                              transform: translate(0, -3px);
                            } 
                            .MMM-WunderGround .day {
                              padding-left: 0;
                            #  padding-right: 10px;
                            }
                            
                            .MMM-WunderGround .vcen {
                               vertical-align: top;
                            }
                            
                            .MMM-WunderGround .weather-icon {
                              padding-left: 0px;
                              text-align: center;
                              width:50px; 
                            }
                            
                            .MMM-WunderGround .max-temp {
                              padding-left: 0px;
                              padding-right: 0;
                            }
                            
                            .MMM-WunderGround .min-temp {
                            #  padding-left: 10px;
                            #  padding-right: 0;
                            }
                            
                            .MMM-WunderGround .forecastText {
                            # padding-left: 10px;
                            #  padding-right: 0;
                            #  word-wrap: break-word;
                            #  text-align: right;
                            #  rowspan: 0;
                            }
                            
                            .MMM-WunderGround .tableheader {
                              font-size: 75%;
                              text-align: center;
                            } 
                            
                            .MMM-WunderGround .hour {
                              font-size: 75%;
                              text-align: center;
                             } 
                            
                            .MMM-WunderGround .pop {
                              font-size: 86%;
                            } 
                            .MMM-WunderGround .mm {
                              font-size: 75%;
                            } 
                            
                            .MMM-WunderGround .green {
                              color: #83FFB3;
                            }
                            
                            .MMM-WunderGround .yellow {
                              color: yellow;
                            }
                            
                            .MMM-WunderGround .red {
                              color: #FF4C4C;
                            }
                            
                            .MMM-WunderGround .center {
                            	text-align: center;
                            	padding-right: 10px; 
                            }
                            	
                            .MMM-WunderGround .left {
                            	text-align: left;
                            }
                            
                            .MMM-WunderGround .lpad {
                            	padding-left: 10px; 
                            }
                            
                            .MMM-WunderGround .currentWeatherIcon {
                              font-size: 75%;
                              line-height: 45px;
                              display: inline-block;
                              -ms-transform: translate(0, -3px); /* IE 9 */
                              -webkit-transform: translate(0, -3px); /* Safari */
                              transform: translate(0, -3px);
                              width: 40%;
                              height: 40%;
                            } 
                            
                            .MMM-WunderGround .forecastWeatherIcon {
                              font-size: 75%;
                              line-height: 65px;
                              display: inline-block;
                              -ms-transform: translate(0, -3px); /* IE 9 */
                              -webkit-transform: translate(0, -3px); /* Safari */
                              transform: translate(0, -3px);
                              width: 50%;
                            } 
                            
                            .MMM-WunderGround .moonPhaseIcon {
                              height: 34px;
                              vertical-align: middle;
                            } 
                            
                            .MMM-WunderGround .hrDivider {
                                    font-size: 10px;
                            }
                            
                            .MMM-WunderGround .sub {
                                vertical-align: sub;
                                font-size: smaller;
                            }
                            
                            .MMM-WunderGround .smaller {
                                font-size: 60%;
                            }
                            .MMM-WunderGround .max-temp {
                              color: #FF1A1A;
                            }
                            
                            .MMM-WunderGround .min-temp {
                              color: #0080ff;
                            }
                            
                            .MMM-WunderGround .day {
                              color: #6f6;
                            }
                            
                            .region.top.center .MMM-WunderGround table.small {
                              display:none;
                            }
                            
                            .region.top.right .MMM-WunderGround table:not(.small) {
                              display:none; 
                            }
                            
                            .region.top.right .MMM-WunderGround table.small td:nth-child(6) {
                              display:none; 
                            }
                            
                            
                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              jbeck615 @Mykle1
                              last edited by

                              @Mykle1 ive never touched any of the monthly calendar files until i added your lines above to the end of my mcal.css file and was curious if you had any thoughts as to why your numbers are aligned to the left (when facing monitor) of the abbreviated days and mine are aligned to the right? just curious

                              Mykle1M 1 Reply Last reply Reply Quote 0
                              • J Offline
                                jbeck615 @strawberry 3.141
                                last edited by

                                @strawberry-3.141 the main config file and never touch the config files of each modules folder?

                                Mykle1M 1 Reply Last reply Reply Quote 0
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @jbeck615
                                  last edited by

                                  @jbeck615 said in Throwing down the gauntlet:

                                  ive never touched any of the monthly calendar files until i added your lines above to the end of my mcal.css file

                                  Those should have been added to your custom.css file within your css folder

                                  and was curious if you had any thoughts as to why your numbers are aligned to the left (when facing monitor) of the abbreviated days and mine are aligned to the right?

                                  Are you talking about WunderGround still? If so, then mine are aligned to the right as well.

                                  Create a working config
                                  How to add modules

                                  1 Reply Last reply Reply Quote 0
                                  • Mykle1M Offline
                                    Mykle1 Project Sponsor Module Developer @jbeck615
                                    last edited by

                                    @jbeck615 said in Throwing down the gauntlet:

                                    the main config file and never touch the config files of each modules folder?

                                    There are no config files in each module folder. Anything inside the actual module folder is part of the module and should not be altered. You set up each modules configuration in the config.js file inside your config folder. After that, any customizing of each module should be done in the custom.css file in your css folder.

                                    This is the WunderGround entry in my config.js file. The setup of the module.

                                    {
                                        			module: 'MMM-WunderGround', // Just for current weather
                                        			position: 'top_center',
                                        			config: {
                                            		apikey: 'YOUR API KEY', // private; don't share!
                                            		pws: 'pws:KNYNEWYO103', // Richmondtown Weather Station - Very Cool
                                    			currentweather: 1,
                                            		coloricon: true,
                                    			animationSpeed: 5000,
                                        			roundTmpDecs: 0,
                                        			UseCardinals: 1,
                                    			windunits: "mph", // bft or mph
                                    			}
                                    		},
                                    		{
                                        			module: 'MMM-WunderGround', // Just for forecast
                                        			position: 'top_right',
                                        			config: {
                                            		apikey: 'YOUR API KEY AGAIN', // private; don't share!
                                            		pws: 'pws:KNYNEWYO103', // Richmondtown Weather Station - Very Cool
                                    			currentweather: 0,
                                            		coloricon: true,
                                            		hourly: '1',
                                            		fctext: '1',
                                            		fcdaycount: "10",
                                            		fcdaystart: "1",
                                            		hourlyinterval: "2",
                                            		hourlycount: "1",
                                    			animationSpeed: 5000,
                                            		alerttime: 10000,
                                            		alerttruncatestring: "english:",
                                        			roundTmpDecs: 0,
                                        			UseCardinals: 1,
                                        			layout: "vertical",
                                    			windunits: "mph",
                                        			sysstat: "0"
                                    			}
                                    		},
                                    

                                    And this is the WunderGround entry in my custom.css file. To customize things like color, icons, position, size, etc…

                                    }
                                    
                                    .region.top.right .MMM-WunderGround table th {
                                      display: none; /* removes icons above max-temp, min-temp and % chance of rain */
                                    }
                                    
                                    .MMM-WunderGround .max-temp {
                                      color: #f66;
                                    }
                                    
                                    .MMM-WunderGround .min-temp {
                                      color: #0ff;
                                    }
                                    
                                    .MMM-WunderGround .weather-icon {
                                      color: #f93;
                                    }
                                    
                                    .MMM-WunderGround .day {
                                      color: #6f6;
                                    }
                                    
                                    .region.top.center .MMM-WunderGround table.small,   /* selector for ONLY current weather Thanks to Strawberry-3.141 */
                                    .region.top.right .MMM-WunderGround table:not(.small),   /* selector for ONLY weather forecast */
                                    .region.top.right .MMM-WunderGround table.small td:nth-child(6)  {
                                      display: none;    /* this line and line above selector for NO rain amount column */
                                    }
                                    

                                    I hope this clears things up for you

                                    Create a working config
                                    How to add modules

                                    J 3 Replies Last reply Reply Quote 0
                                    • J Offline
                                      jbeck615 @Mykle1
                                      last edited by

                                      @Mykle1 sorry i meant to say the js files not the config. i swear im not as dumb as im sounding here! however your clarification did make sense so thank you!

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

                                        @Mykle1 but just to make sure, changes only go in the config.js file in the config folder, dont touch the js files in each of hte modules, and if needed, modify the css files in each module correct? ive just been a bull in a china shop even if most of it is working well. thanks!

                                        Mykle1M jproehlJ 2 Replies Last reply Reply Quote 0
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @jbeck615
                                          last edited by

                                          @jbeck615 said in Throwing down the gauntlet:

                                          changes only go in the config.js file in the config folder

                                          Each module has a ReadMe that describes the config.js options. You’re not really changing the config.js file. You’re choosing options that the author has provided

                                          , dont touch the js files in each of hte modules

                                          Correct. Those are part of the module itself

                                          , and if needed, modify the css files in each module correct?

                                          You modify the custom.css file FOR each module, not IN the module folder

                                          Create a working config
                                          How to add modules

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

                                            @Mykle1 yep on the same page now! ill stop messing with the js files in each modules folder. thanks

                                            Mykle1M 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
                                            • 3
                                            • 4
                                            • 5
                                            • 4 / 5
                                            • 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