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 18.0k 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 Admin
          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
                        • 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