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 updates

    Scheduled Pinned Locked Moved Sport
    18 Posts 8 Posters 3.2k 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.
    • cirdanC Offline
      cirdan @stephenmelody
      last edited by

      @stephenmelody hi Stephen,
      The api we use only updates the standings after the race. So currently this is not possible.

      That said, the api is deprecated end of season. I have my eyes on another api that currently has live timing, and is about to add standings. That would be a bigger project. Perhaps a christmas project.

      Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

      S S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @cirdan
        last edited by

        @cirdan would this be a candidate for the njk template

        you format the html in a sep file with loop logic and if/then/else

        in your module you collect a data object ( which you do already) and let the njk do the layout work.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        cirdanC 1 Reply Last reply Reply Quote 0
        • cirdanC Offline
          cirdan @sdetweil
          last edited by

          @sdetweil hi Sam,

          The module allready use a njk template. do you see further improvements or did you just miss the njk usage?

          Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

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

            @cirdan I looked at your repo, and didn’t see an njk…must be blind this morning…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            cirdanC 1 Reply Last reply Reply Quote 0
            • cirdanC Offline
              cirdan @sdetweil
              last edited by

              @sdetweil lol. But your sugestion was good. 😀

              Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

              1 Reply Last reply Reply Quote 0
              • S Offline
                stephenmelody @cirdan
                last edited by

                @cirdan Thanks! are you looking at this one: https://openf1.org/?javascript#introduction

                cirdanC 1 Reply Last reply Reply Quote 0
                • cirdanC Offline
                  cirdan @stephenmelody
                  last edited by

                  @stephenmelody yep, thats the one. the roadmap page indicates driver standings for the championschip. https://openf1.org/?javascript#roadmap

                  Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    stephenmelody @cirdan
                    last edited by

                    @cirdan sounds good. The bit I’m looking for is probably the positions call, getting the in-session positions through a race/quali

                    https://openf1.org/?javascript#position

                    1 Reply Last reply Reply Quote 0
                    • 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