• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 2.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.
  • C Offline
    cirdan @stephenmelody
    last edited by Jul 5, 2024, 3:58 PM

    @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 Jul 5, 2024, 4:21 PM Reply Quote 0
    • S Offline
      sdetweil @cirdan
      last edited by Jul 5, 2024, 4:21 PM

      @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

      C 1 Reply Last reply Jul 5, 2024, 4:45 PM Reply Quote 0
      • C Offline
        cirdan @sdetweil
        last edited by Jul 5, 2024, 4:45 PM

        @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 Jul 5, 2024, 5:10 PM Reply Quote 0
        • S Offline
          sdetweil @cirdan
          last edited by Jul 5, 2024, 5:10 PM

          @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

          C 1 Reply Last reply Jul 5, 2024, 5:31 PM Reply Quote 0
          • C Offline
            cirdan @sdetweil
            last edited by Jul 5, 2024, 5:31 PM

            @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 Jul 6, 2024, 3:45 PM

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

              C 1 Reply Last reply Jul 6, 2024, 3:54 PM Reply Quote 0
              • C Offline
                cirdan @stephenmelody
                last edited by Jul 6, 2024, 3:54 PM

                @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 Jul 6, 2024, 4:25 PM Reply Quote 0
                • S Offline
                  stephenmelody @cirdan
                  last edited by Jul 6, 2024, 4:25 PM

                  @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
                  2 / 2
                  • First post
                    16/18
                    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