MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. 0m4r
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 4
    • Posts 105
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-SoccerLiveScore

      @np27np27 do you mean you can still see the issue with that version? :(
      If so, most likely it is not resolved. I will need to find some time to look into it again

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 hey, I have just realized I mistakenly pushed the code with some hardcoded test values. Those might be the reason for the wrong behavior.

      Can you try pulling the code again and let me know?

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 ok :( thanks for the info. I’ll be taking another look.
      I think as a workaround you can probably try to refresh the mirror, but I understand it is not the desired behavior…

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 you can switch back to the master branch and do a git pull.

      It does not look like the Africa nation cup is supported by the APIs :(

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-covid19 based on covid19api.com APIs

      There is a further new update available here (still under development)
      https://github.com/0m4r/MMM-covid19/tree/feat/new-api-corona-lmao-ninja

      I have added two new config properties: locale and yesterday - please refer to the https://github.com/0m4r/MMM-covid19/tree/feat/new-api-corona-lmao-ninja/README.md for the details ;)

      MMM-covid19 screenshot preview

      posted in Health
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 I put in a fix, not sure it works 100% :P

      I have noticed tho, my approach is not really the best, will need to re-think it and re-implement it. I’d like to reach a point where the API calls are done only if and when needed to reduce network traffic and avoid overloading the API service provider too.

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 thanks for the hint - I will be looking into it.

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-covid19 based on covid19api.com APIs

      Good news! I have updated the module to swap the data provider to a new one (that seems to be more reliable and provides the most recent available data and, some additional ones too!)

      The changes are still on a development branch, so if you are interested in trying them out you can do the following (assuming you are in your Magic Mirror module folder for MMM-covid19):

      git fetch -p
      git checkout feat/new-api-corona-lmao-ninja
      git pull -r
      npm install
      

      the configuration does not require any update, but a few settings are now obsolete and not used, this is how the new configuration settings could be looking like:

      countryCodes: ["DE", "IT", "US", "NZ", "UK", "FR", "IN", "ES", "BG", "GR"],
      useScheduler: true,
      schedulerConfig: '0 0 */1 * * */1', // update every hour, every day
      updateInterval: 0.5 * 60 * 1000, // update every 30 seconds, only used if useScheduler: false
      

      and here is a screenshot:
      9c110bfb-8ec5-4569-8c2f-d72f70335484-image.png

      and here is the GitHub repo:
      https://github.com/0m4r/MMM-covid19/tree/feat/new-api-corona-lmao-ninja

      posted in Health
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 well, I hope so!
      Let’s keep an eye on it and see if it really works or if it is just a feeling we have!
      Thanks for the feedback!

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 I am checking right now the results for “Serie A” and they seem to update…

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 I’ll check that :(

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 if you pull once again, I did a quick fix to mark them in orange.
      I will look into the API requests side of the things… but better too many than too few! :D

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27

      65345670-e11e-422e-98f2-536d1a99a962-image.png

      and can you see something like this in the logs:
      MMM-SoccerLiveScore next request for league "Premier League (17)" on Tue Dec 14 2021 14:34:37 GMT+0100 (Central European Standard Time) for Round 17

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 I am sorry to hear that :(
      you should try again from the feature/node-fetch .

      if you see any errors, would you please cut&paste them in here so I can have a look at them?

      would you also mind showing me your config for the module?

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 there are probably still some issue, but it seems to me it now updates correctly :)

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 can you try pulling the code once more? I did mess up the logic to re-issue the API requests, but I hopefully fixed it now!

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 said in MMM-SoccerLiveScore:

      git checkout node-fetch

      should be:

      git checkout feature/node-fetch

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 can you try check out and run this branch:
      https://github.com/0m4r/MMM-SoccerLiveScore/tree/feature/node-fetch

      > cd [YOUR_PATH_TO_MMM-SoccerLiveScore]
      > git fetch -p
      > git checkout feature/node-fetch 
      > git pull -r
      > npm ci
      > [RESTART MM]
      

      I did do some major changes (removed request for node-fetch, and some other code improvements amongst which I hope to have fixed the problem of the refresh you reported)

      posted in Sport
      0m4r0
      0m4r
    • RE: MMM-SoccerLiveScore

      @np27np27 alright - I will try to fix it, but it may take some time, I usually dedicate time to my side project on the weekend

      posted in Sport
      0m4r0
      0m4r
    • 1 / 1