• 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-BrawlStars

Scheduled Pinned Locked Moved Fun & Games
12 Posts 5 Posters 2.9k Views 5 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.
  • R Offline
    retroflex Project Sponsor Module Developer
    last edited by May 9, 2019, 8:15 PM

    Description

    Shows stats (level, trophies and victories) for players of mobile game Brawl Stars.

    Screenshot

    0_1557432879259_6742816b-68c8-4b3d-836a-9cc5e9ebed62-image.png

    Download

    https://github.com/retroflex/MMM-BrawlStars

    1 Reply Last reply Reply Quote 0
    • L Offline
      leanro
      last edited by May 5, 2020, 9:15 PM

      @retroflex Is this module still working? I put everything in place and used your sample config (with my API-key) but is says permanently “Loading…”
      Would be fun to have i running!

      R 1 Reply Last reply May 6, 2020, 7:45 AM Reply Quote 0
      • R Offline
        retroflex Project Sponsor Module Developer
        last edited by May 6, 2020, 7:39 AM

        @leanro I haven’t tested it in ages and indeed it seems it has broken. The API the module used has removed support for getting stats from a certain player. Instead it points to the official API: https://developer.brawlstars.com/

        That API can more or less do the same, but there is one caveat: you have to enter your public IP address when creating an API key. And since that changes for most people, it is not ideal. Maybe there is another API that can be used… I haven’t searched for it.

        Anyway, I will not spend time on the module since I don’t use it anymore. But you are more than welcome to look into it. There are two options I can think of. 1) find another API or 2) use the official API with the problem that it breaks when your IP address changes.

        1 Reply Last reply Reply Quote 0
        • R Offline
          retroflex Project Sponsor Module Developer @leanro
          last edited by May 6, 2020, 7:45 AM

          @leanro Ok, checked my repo now and someone had reported this before and even made a pull request. I’d completely missed that. But now it is merged. So please update the module and try again. Let me know whether it works.

          1 Reply Last reply Reply Quote 0
          • M Offline
            MathieuGery
            last edited by May 6, 2020, 10:29 AM

            Hey that won’t work anymore since the unofficial api don’t support those routes. I’m working on with the official api and i will make a pull request when i have time. But i think there is no problem with the ip if you host your magic mirror at home, just enter your public ip adress and it doesn’t change.

            B 1 Reply Last reply May 6, 2020, 12:38 PM Reply Quote 0
            • B Offline
              bhepler Module Developer @MathieuGery
              last edited by May 6, 2020, 12:38 PM

              @MathieuGery - Correction: Your public IP address doesn’t change very often.

              M 1 Reply Last reply May 6, 2020, 1:26 PM Reply Quote 0
              • M Offline
                MathieuGery @bhepler
                last edited by May 6, 2020, 1:26 PM

                @bhepler yes, sometimes providers change your public ip adress every day for security purpose. In my case it’s not. I’m thinking about making a relay of the official api on my server if that can help some people

                1 Reply Last reply Reply Quote 0
                • R Offline
                  retroflex Project Sponsor Module Developer
                  last edited by May 6, 2020, 2:55 PM

                  Thanks for working on this. Btw, has someone tested if you can pass a * or similar as IP to allow all addresses? Might work.

                  M 1 Reply Last reply May 7, 2020, 1:21 PM Reply Quote 0
                  • M Offline
                    MathieuGery @retroflex
                    last edited by May 7, 2020, 1:21 PM

                    @retroflex Yes i have tested this but abviously it doesn’t work :confounded_face:

                    R 1 Reply Last reply May 7, 2020, 3:00 PM Reply Quote 0
                    • R Offline
                      retroflex Project Sponsor Module Developer @MathieuGery
                      last edited by May 7, 2020, 3:00 PM

                      @MathieuGery Maybe 0.0.0.0/0 would work. Or a few others to test like these: https://stackoverflow.com/a/59660664

                      M 1 Reply Last reply May 20, 2020, 9:25 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 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