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.
    • brobergB Offline
      broberg Project Sponsor @jproehl
      last edited by

      @jproehl it’s not super simple to find out what to write in the css if you are not familiar with css and javascript since most of that is names specified by the coders of the magic mirror and the modules,

      If it’s not specified in the module documentation you can look in the modules .js file and search for the text className after that is usually specified one or more classes that will determine the appearance of what is being displayed.

      The className should also be visible if you look at the html code in the browser.

      jproehlJ 1 Reply Last reply Reply Quote 1
      • jproehlJ Offline
        jproehl @broberg
        last edited by

        @broberg Okay, I’ll poke around in the codes. Thanks!

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

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

            @jproehl curious if you ever solved #2? i got the same issue with the icons showing up under the current

            jproehlJ 1 Reply Last reply Reply Quote 0
            • jproehlJ Offline
              jproehl @jbeck615
              last edited by jproehl

              @jbeck615 Hi: That problem went away when I fixed a missing close bracket “}” in the custom.css. So, if you are getting the extra icon line in your current conditions display for the same reason I was, check to make sure that all of the entries in custom.css are of the form:

              .“modulename” .“className” {
              “parameter”: “value”;
              }

              A concrete example of this is:

              .clock .time {
              color: #99F;
              }

              One of my entries was missing that very last bracket. When I fixed that, the icon line went away and all the subsequent parameters that I was trying to change in the custom.css file also got changed.

              I suspect that when that syntax error showed up the rest of the custom.css file was not processed and the parameter on which I left off the bracket and all the subsequent ones were never included.

              Hope this helps! Good luck.

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

                @jproehl thank you. ill do some deeper vetting. thanks!

                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 if you post your css here we can help to spot the issue

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

                  J Mykle1M 3 Replies 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 @strawberry 3.141
                      last edited by

                      @strawberry-3.141 oh my thank you SO much for offering. i hate asking for help but let me tinker with it for a couple of days and if no luck i will take you up on the offer. LOVE this community. thank you again for even offering!

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

                        @strawberry-3.141

                        I thought you might like to know that I had some success with the custom.css file without asking for your help. I did do some looking around in the module .js file and the Developers Tools. I was careful not to change anything. I was looking for clues on what changes specific parts of a module. (e.g. table, text, align, padding, margin, etc…)

                        I wanted to be able to move the calendar_monthly module to the left margin. I also wanted to constrain the module to a specific width so that it wouldn’t expand when another module stretches the region they both occupy. And just for good measure, I threw in some color. So, using the the css information that you’ve already given me for other modules, and the information I got from looking in the module.js file and Developers Tools, I did this.

                        0_1488301766370_success.JPG

                        With this

                        }
                        
                        .calendar_monthly table {
                          width: initial;
                          float: left;
                        }
                        
                        .calendar_monthly td {
                          text-align: left !important;
                        }
                        
                        .calendar_monthly calendar-table {
                          text-align: left !important;
                        }
                        
                        .calendar_monthly {
                          width: 200px;
                          color: #6f6;
                        } 
                        

                        “I’m smart! I can do things!” (Fredo Corleone - The Godfather II)

                        Create a working config
                        How to add modules

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

                          This post is deleted!
                          Mykle1M 1 Reply Last reply Reply Quote 0
                          • 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

                                            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
                                            • 5 / 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