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-Formula1 - Formula 1 Standings

    Scheduled Pinned Locked Moved Sport
    30 Posts 10 Posters 22.1k Views 8 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.
    • I Offline
      ianperrin
      last edited by ianperrin

      Description:

      MMM-Formula1 allows you to display the driver and constructor standings from the current Formula 1 season right on your MagicMirror.

      Screenshots:

      Example Screenshot

      Download:

      [card:ianperrin/MMM-Formula1]


      Change Log

      Version 1.4.0

      • Added showConstructor option to hide constructor in driver standings - thanks @MichMich
      • Added translations for Season and Round labels in the table footer - thanks @The-Exterminator
      • Added Danish translation - thanks @The-Exterminator
      • Changed API calls to use the f1-api package <- this is a breaking change, please see docs for updating the module

      Version 1.3.0

      • Added Swedish translation - thanks @el97
      • Added support for Monegasque nationality
      • Re-factored code to use templates for module layouts

      Version 1.2.2

      • Added grayscale option - thanks @HenningSchulz
      • Added showFooter option - thanks @HenningSchulz
      • Added Indonesian translation - thanks @slametps
      • Tweaked table layout to improve display when module is positioned right

      Version 1.2.1

      • Calendar now respects the season option
      • calendar option now defaults to false
      • Multiple constructors are displayed in the drivers standings if the driver drivers for more than one team in the season

      Version 1.2

      • Added ability to publish a calendar containing the current Race Schedule which can be displayed in the default cslendar module

      Version 1.1

      • Added Constructors standings - thanks @strawberry-3-141
      • Added option to choose season to display - thanks @strawberry-3-141
      • Added support for translations
      • Added flags to indicate drivers nationality
      • Add option to limit number of rows displayed in standings table

      Version 1.0

      • Initial Version

      Notes

      • This is work in progress so please feel free to contribute!
      • If you have ideas for new features, or think you’ve found a bug, please add a new issue here: https://github.com/ianperrin/MMM-Formula1/issues

      "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

      1 Reply Last reply Reply Quote 2
      • I Offline
        ianperrin
        last edited by

        Now with standings from the constructor championship (thanks @strawberry-3-141 ) and a race schedule calendar

        "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

        1 Reply Last reply Reply Quote 1
        • MichMichM Offline
          MichMich
          last edited by

          You, Sir, are a hero! Very happy with it!

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mar
            last edited by

            This module currently only says loading for drivers and constructors. Is this because the season hasnt started yet?

            Is there a way to perhaps put a message/deactivate the module or something there if the season hasnt started?

            I 1 Reply Last reply Reply Quote 0
            • I Offline
              ianperrin @Mar
              last edited by

              @Mar - Unfortunately we are in the hands of the API provider as to when the 2017 data is considered ‘current’.

              The work around is to make sure you have the latest version of the module then temporarily set the season option to ‘2017’, e.g.

                      {
                          module: 'MMM-Formula1',
                          position: 'top_right',
                          header: 'F1 Standings',
                          config: {
                              season: '2017'
                          }
                      },
              

              "Live as if you were to die tomorrow. Learn as if you were to live forever." - Mahatma Gandhi

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                Mar @ianperrin
                last edited by

                @ianperrin thank you for that, i was also more just curious that i didn’t implement it incorrectly. This is a workaround i can live with.
                Thank you.

                1 Reply Last reply Reply Quote 0
                • W Offline
                  wizz
                  last edited by wizz

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • W Offline
                    wizz
                    last edited by wizz

                    @ianperrin I got a problem as in this below picture you see that the Driver and the constructor is separated but for me it is sitting together like this DriverConstructor.
                    Also the F1 Race Schedule and the F1 Driver Standings is on the right hand side and not as in the picture. Any one know a solution?

                    alt text

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wizz
                      last edited by

                      @wizz said in MMM-Formula1 - Formula 1 Standings:

                      @ianperrin

                      @ianperrin or some one have an solution?

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

                        @wizz i guess you have the modules on the right side of your mirror thats most likely why your text is aligned right. you can change that by adding the class align-left to the config or add a css rule in custom.css to do so.

                        to add some spacing to the table you could add something like

                        .MMM-Formula1 table {
                            border-spacing: 10px 0;
                            border-collapse: separate;
                        }
                        

                        to your custom.css

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

                        W 2 Replies Last reply Reply Quote 1
                        • W Offline
                          wizz @strawberry 3.141
                          last edited by

                          @strawberry-3.141 thanks will try tonight :)

                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            wizz @strawberry 3.141
                            last edited by

                            @strawberry-3.141 Well some improvments but still some issues. will try to fix that in the best way.

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

                              @wizz a screenshot of your ui would be great

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

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                Mar
                                last edited by

                                I’m still not able to show two modules, one for drivers and one for constructors. When i disable one module the other works…but when i try to use both only the first one works?? How are people showing both?

                                                {
                                                        module: 'MMM-Formula1',
                                                        //disabled: true,
                                                        classes: 'PAGE2',
                                                        position: 'top_right',
                                                        header: 'F1 Driver Standings',
                                                        config: {
                                                                maxRows: 12
                                                        }
                                                },
                                                {
                                                        module: 'MMM-Formula1',
                                                        //disabled: true,
                                                        classes: 'PAGE2',
                                                        position: 'top_right',
                                                        header: 'F1 Constructor Standings',
                                                        config: {
                                                                type: 'CONSTRUCTOR'
                                                        }
                                                },
                                
                                R 1 Reply Last reply Reply Quote 0
                                • P Online
                                  Peter
                                  last edited by

                                  Did anyone find the 2018 season Formula 1 ICS?
                                  Peter

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

                                    @Peter from what i can see in the code is, that the module generates its own ics and doesn’t use a 3rd party ics. The data it uses therefore seems to be already updated, so by changing the season in config to 2018 you should be fine. season: 2018 or you wait until the default value 'current' gets changed automatically to 2018 here http://ergast.com/api/f1/current

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

                                    P 1 Reply Last reply Reply Quote 0
                                    • P Online
                                      Peter @strawberry 3.141
                                      last edited by

                                      @strawberry-3.141 it works now (season set to 2018).
                                      But as soon as I try to change the flag-checkered color in my custom css the calendar entries for Formula 1 are gone.
                                      Any advice?
                                      Peter

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

                                        @Peter what did you put in custom css

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

                                        P 1 Reply Last reply Reply Quote 0
                                        • P Online
                                          Peter @strawberry 3.141
                                          last edited by

                                          @strawberry-3.141 solved!
                                          There was an extra space in my config file just before flag-checkered.
                                          Thanks for your help!
                                          Peter

                                          1 Reply Last reply Reply Quote 0
                                          • F Offline
                                            fabbr
                                            last edited by fabbr

                                            I can’t make the Calendar work … what am I doing wrong?

                                            -Also, any way to have the formulaE? I saw that it uses almost the same API: https://ergast.com/mrd/formula-e-series-support/

                                            Thanks !

                                            	    {
                                            		            module: 'MMM-Formula1',
                                            		            position: 'top_right',
                                            		            header: 'F1 Standings',
                                            		            config: {
                                            				   //calendar: 'true',
                                            				    grayscale: false,
                                            				    season: 2018,
                                            				    showFooter: true,
                                            				    calendar: true,
                                            				    maxRows: 7
                                            				                // Optional configuration options - see https://github.com/ianperrin/MMM-Formula1#configuration-options
                                            				      }
                                            	    },
                                            		{
                                            			module: "calendar",
                                            			header: "F1-Schedule",
                                            			position: "top_right",
                                            			config: {
                                            				calendars: [
                                            					{
                                            					//	maximumEntries: 4,
                                            					//	symbol: "calendar-check-o ",
                                            					//	url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics", 
                                            						symbol: 'flag-checkered',
                                            						url: 'http://localhost:8080/MMM-Formula1/schedule.ics'
                                            					}
                                            				]
                                            			}
                                            		},```
                                            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
                                            • 2 / 2
                                            • 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