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.

    Updating did nothing but gave fatal error warning.

    Scheduled Pinned Locked Moved Solved Troubleshooting
    41 Posts 4 Posters 16.9k Views 3 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.
    • S Offline
      sdetweil @Richard238
      last edited by

      @Richard238 yes

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • R Offline
        Richard238
        last edited by

        OK that’s brought MM back to life, but my custom CSS seems to have been ignored.

        That, and I need new weather modules?!

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Richard238
          last edited by sdetweil

          @Richard238 you need to change to the new combined weather module…(announced 2 releases ago)

          supposedly change the module name field to weather and change the appid field name to apiKey
          custom.css should still be there… I save and restore

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Richard238
            last edited by

            custom.css is still there, but the coloured icons I had beside calendar entries are no longer showing.

            S 1 Reply Last reply Reply Quote 0
            • R Offline
              Richard238 @sdetweil
              last edited by

              @sdetweil Weather module changes worked.
              They needs adjusting, but it is now showing something so it’s a good start I can work from.

              1 Reply Last reply Reply Quote 1
              • S Offline
                sdetweil @Richard238
                last edited by

                @Richard238 colored icons

                maybe see this
                https://forum.magicmirror.builders/topic/16591/mmm-homeassistant-sensors-no-icons-after-mm-upgrade-to-2-19-0

                electron is enforcing reported server side (CORS) restrictions is didn’t before , people protecting their content

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Richard238
                  last edited by

                  Colour, with a u! I’m British using British English! ;-)

                  OK, CSS. It’s only using favicon codes, not images on a URL

                   #module_3_calendar .fa.fa-calendar-check-o {
                    color: #00d255 /* 55=Green FF=Blue*/
                  }
                  
                   #module_4_calendar  .fa.fa-trash-o  {
                    color: #C97F7F; /* Brown */
                  }
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Richard238
                    last edited by sdetweil

                    @Richard238 said in Updating did nothing but gave fatal error warning.:

                    #module_3_calendar

                    u are using ID(#) to select

                    probably changed locations in the config.js

                    see https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1649371486123

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Richard238
                      last edited by

                      .calendar .fa.fa-calendar-check-o {
                        color: #00d255 /* 55=Green FF=Blue*/
                      }
                      
                      .calendar  .fa.fa-trash-o  {
                        color: #C97F7F; /* Brown */
                      }
                      

                      Makes no difference, the icons still don’t show.

                      karsten13K 1 Reply Last reply Reply Quote 0
                      • karsten13K Offline
                        karsten13 @Richard238
                        last edited by

                        @Richard238

                        what did you define in the symbol: section in the config.js?

                        May these icons are outdated, you can search here for icons, only free icons will work.

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          Richard238
                          last edited by Richard238

                          I have these, both of which were working perfectly well prior to this update

                          symbol: 'calendar-check-o ',
                          symbol: 'trash-o ',
                          

                          And having configured the new weather module, those icons are responding to custom css just fine.

                          No idea why calendar icons won’t work.

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdetweil @Richard238
                            last edited by

                            @Richard238 the trailing space?

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              Richard238
                              last edited by

                              This worked perfectly prior to the most recent update.

                              Deleted said space, still no icons.
                              Appropriate code below for reference:

                              .calendar .fa.fa-calendar-check-o {
                                color: #00d255 /* 55=Green FF=Blue*/
                              }
                              
                              .calendar  .fa.fa-trash-o  {
                                color: #C97F7F; /* Brown */
                              }
                              
                              
                              			module: 'calendar',
                              			header: 'Calendar',
                              			position: 'top_left',
                              			config: {
                                                  maximumEntries: 6, // Total Maximum Entries
                                                  maximumNumberOfDays: 365,
                                                  displaySymbol: true,
                                                  defaultSymbol: "calendar", // Fontawesome Symbol see http://fontawesome.io/cheatsheet/
                                                  displayRepeatingCountTitle: false,
                                                  defaultRepeatingCountTitle: "",
                                                  maxTitleLength: 30,
                                                  fetchInterval: 5 * 60 * 1000, // Update every 5 minutes.
                                                  animationSpeed: 2000,
                                                  fade: true,
                                                  showEnd: false,
                                                  urgency: 0,
                                                  timeFormat: "absolute",
                                                  dateFormat: "ddd Do MMMM",
                                                  getRelative: 0,
                                                  fadePoint: 0.50, // Start on 1/4th of the list.
                                                  hidePrivate: false,
                                                  calendars: [
                              					{
                              						symbol: 'calendar-check-o',
                              						url: 'https://calendar.google.com/calendar################
                              					}
                              				],
                              			}
                              		},
                              		{
                              			module: 'calendar',
                              			header: 'Binday',
                              			position: 'bottom_left',
                              			config: {
                                                  maximumEntries: 4, // Total Maximum Entries
                                                  maximumNumberOfDays: 365,
                                                  displaySymbol: true,
                                                  defaultSymbol: "calendar", // Fontawesome Symbol see http://fontawesome.io/cheatsheet/
                                                  displayRepeatingCountTitle: false,
                                                  defaultRepeatingCountTitle: "",
                                                  maxTitleLength: 30,
                                                  fetchInterval: 5 * 60 * 1000, // Update every 5 minutes.
                                                  animationSpeed: 2000,
                                                  fade: true,
                                                  showEnd: false,
                                                  urgency: 0,
                                                  timeFormat: "absolute",
                                                  dateFormat: "ddd Do MMMM",
                                                  getRelative: 0,
                                                  fadePoint: 0.50, // Start on 1/4th of the list.
                                                  hidePrivate: false,
                                                  calendars: [
                                                  {
                              						symbol: 'trash-o',
                              						url: 'https://calendar.google.com/calendar#######################
                              					}
                              				],
                                              titleReplace: {
                                              //	"'s birthday": "",
                                              //	"Recycling": "Bins",
                                                  "Red Bin": "Red & Black Bins",
                                                  "Green Bin": "Green & Black Bins" 
                                              },
                                              // Override start method.
                                              start: function () {
                                                  Log.log("Starting module: " + this.name);                   
                                                  for (var c in this.config.calendars) {
                                                      var calendar = this.config.calendars[c];
                                                      calendar.url = calendar.url.replace("webcal://", "http://");
                                                      this.addCalendar(calendar.url, calendar.user, calendar.pass);
                                                  }
                              
                                                  this.calendarData = {};
                                                  this.loaded = false;
                              	},
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @Richard238
                                last edited by

                                @Richard238 said in Updating did nothing but gave fatal error warning.:

                                .calendar .fa.fa-calendar-check-o {
                                color: #00d255 /* 55=Green FF=Blue*/
                                }

                                yep, the class name changed

                                see
                                https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1649371486164

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  Richard238
                                  last edited by

                                  Bit familiar with the F12 console, but it’s not easy to select the exact spot.

                                  3a7bcf68-c2f6-4f9c-a6a1-94cb7176cd69-image.png

                                  .calendar .fa.fa-calendar-check-o {
                                    color: #00d255 /* 55=Green FF=Blue*/
                                  }
                                  

                                  Change it to this?

                                  .calendar.module.calendar  .fa.fa-calendar-check-o {
                                    color: #00d255 /* 55=Green FF=Blue*/
                                  }
                                  

                                  Or?

                                  .module.calendar  .fa.fa-calendar-check-o {
                                    color: #00d255 /* 55=Green FF=Blue*/
                                  }
                                  
                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @Richard238
                                    last edited by

                                    @Richard238 in main.css comment out cursor:none
                                    /* cursor:none */

                                    reload the MM page

                                    select the elements tab
                                    select the arrow top left of the developers page

                                    navigate the mouse to the check icon in the calendar display
                                    click on the icon

                                    int he elements page is the html of the element selected
                                    and its class name is shown

                                    use that …

                                    thats what I did, copied your css, didn’t work (as u said)
                                    found the element , and its new class name
                                    changed the css
                                    refreshed the page and it worked.

                                    I want YOU to do it, so next time you know how/why

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      Richard238
                                      last edited by

                                      I guess ‘elements’ is from another browser type, I’m in Firefox where it’s called Inspector.

                                      But anyway, I clicked where the calendar icon ought to be, where its name shows on the cursor hover, and got this

                                      ac62edd3-78dc-48db-b911-c2766dc08a09-image.png

                                      7f1f7fdc-59f7-40e6-a8a2-53622e5b1c8f-image.png

                                      Changed css

                                      .calendar .fas fa-fw fa-calendar-check-o {
                                        color: #00d255 /* 55=Green FF=Blue*/
                                      }
                                      
                                      

                                      Still no icon though :-/

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @Richard238
                                        last edited by sdetweil

                                        @Richard238 said in Updating did nothing but gave fatal error warning.:

                                        .calendar .fas fa-fw fa-calendar-check-o {
                                        color: #00d255 /* 55=Green FF=Blue*/
                                        }

                                        css selectors are the problem
                                        https://www.w3schools.com/cssref/css_selectors.asp

                                        so, your definition says

                                        for the CLASS calendar

                                        find ALL elements that match (.fas fa-fw fa-calendar-check)
                                        and set their color (foreground text color style ) to …

                                        so, lets examine the

                                        .fas fa-fw fa-calendar-check
                                        

                                        in the element this is ALL inside the class= attribute

                                        class="fas fa-fw fa-calendar-check"
                                        

                                        so to SELECT based on CLASS the names need dots in front

                                        name = tagname (<p, <img, <table …
                                        .name = class name ( .calendar
                                        #name = id of element ( id=“fred” #fred

                                        no space between selectors means ALL

                                        Selects all elements with both name1 and name2 set within its class attribute

                                        space between selectors means ALL AND directly child/parent

                                        Selects all elements with name2 that is a descendant of an element with name1

                                        and there are other types > < ~ … which mean this ??? in children elements, etc,

                                        what your string says is
                                        under the calendar CLASS (.calendar)
                                        for CLASS of fas (.fas)
                                        AND
                                        element of fa-fw (<fa-fw)
                                        AND
                                        element of fa-calendar-check (<fa-calendar-check)

                                        but you dont have the two ‘elements’ cause they are used in the class attribute

                                        in your case you only need ONE (not all)

                                        and its a CLASS (so leading .)

                                        .calendar .fa-calendar-check{
                                        ....
                                        }
                                        

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          Richard238
                                          last edited by

                                          Goodness, that’s complicated! Well, it kinda makes sense but, I’ll read it again when not so tired.

                                          Sadly, still nothing. (Commented second one out in case it was the cause, but no luck there.)

                                           .calendar .fa-calendar-check-o {
                                            color: #00d255 /* 55=Green FF=Blue */
                                          }
                                          
                                          /*
                                          .calendar .fa-trash-o  {
                                            color: #C97F7F; /* Brown 
                                          }
                                          */ 
                                          

                                          Also tried a known working fa icon from the weather module, but again, nothing.

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @Richard238
                                            last edited by sdetweil

                                            @Richard238 it worked with the change (oops)

                                            note that the selector is NOT -o

                                            I used your text in the message, not the ACTUAL class on the element… my bad…

                                            thats why we LOOK IT UP!..

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            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
                                            • 1 / 3
                                            • 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