MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. 0m4r
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 87
    • Best 10
    • Controversial 0
    • Groups 1

    0m4r

    @0m4r

    Module Developer

    10
    Reputation
    9
    Profile views
    87
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website www.github.com/0m4r Location Germany Age 42

    0m4r Unfollow Follow
    Module Developer

    Best posts made by 0m4r

    • RE: Any plan to replace "request" and "moment"?

      @cowboysdude technically it is based on Chromium (https://www.chromium.org/).

      posted in Feature Requests
      0m4r
      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
      0m4r
      0m4r
    • RE: MMM-SoccerLiveScore

      I have forked the repository and fixed a few bugs as I noticed it is not maintained for 4 years. I have now reduced the numbers of API calls needed to fetch the team logos (that are now directly obtained by the HTML code) and reduced the number of API calls to fetch the table and the scores.
      The table APIs does not include a “refresh” time (as they maybe did return times ago) and this causes an infinite number of call to it.

      The forked repo is here: https://github.com/0m4r/MMM-SoccerLiveScore
      I have not made a PR as I d believe the original one is abandoned.

      posted in Sport
      0m4r
      0m4r
    • Any plan to replace "request" and "moment"?

      Is there any plan to migrate away from “request” and “moment”?

      https://github.com/request/request/issues/3142
      https://github.com/moment/moment#project-status

      Thanks 🙂

      posted in Feature Requests
      0m4r
      0m4r
    • RE: MMM-CovidStats

      [edited]
      Apologies. I read it quickly and did not get you were adv your own module.

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

      I have just released a new version on the master branch of my own fork of this module, it is available here: https://github.com/0m4r/MMM-SoccerLiveScore.

      There are a lot of code cleanups, refactoring, and improvements.
      There are also a few new features:

      • enable the display of the “scorers” for the leagues.
      • tables display a red pulsating dot on the game that are “live” at that moment in time
      • is it possible to only display one of the standings, tables, and scorers
      • headers display more information about (league name and round!)
      • table got faded colors to indicate relevant positions

      As a plus, as it was reported to me already before, the logo of Juventus is not visible! (@Egnos this is for you!)

      https://raw.githubusercontent.com/0m4r/MMM-SoccerLiveScore/master/MMM-SoccerLiveScores-Scorers.png

      https://raw.githubusercontent.com/0m4r/MMM-SoccerLiveScore/master/MMM-SoccerLiveScores-Tables.png

      https://raw.githubusercontent.com/0m4r/MMM-SoccerLiveScore/master/MMM-SoccerLiveScores-Standings.png

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

      I have added a new feature to the module, it is not released yet on the master branch but it is available from a development branch here:
      https://github.com/0m4r/MMM-SoccerLiveScore/tree/feat/match-details

      It is now possible to show the goal scorers within the standings by settings “showDetails: true”.
      The scorers are shown right below the game row and they will scroll from right-to-left.

      Let me know what do you think!

      https://github.com/0m4r/MMM-SoccerLiveScore/blob/b227e43aba9e371af166e78ee1070fa778e134ae/screenhosts/MMM-SoccerLiveScores-Standings+Details.png

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

      @np27np27 Please add “4100” to your leagues to add the Euro 2020 competition!

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

      wow! Version 2.2.1 is released today!
      Fancy new stuff in it as the vertical scroll, so if your module cannot display all the list in the space it has allocated, it scrolls up and down for you to allow see all the details!
      Before the game starts, and whenever possible, the location of the game ad the referee are shown right below the teams’ names, also, scorers, yellow cards, and red cards are shown in real-time and after the game is ended!

      here is the link of my fork: https://github.com/0m4r/MMM-SoccerLiveScore

      Let me know what you think! 😉

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

      @karsten13 this could be one reason (I plan to switch to node-fetch), but I experience the same problem as reported by @np27np27 and I have detected the APIs are responding with errors.

      Unfortunately, there is not much I can do about it 😞

      posted in Sport
      0m4r
      0m4r

    Latest posts made by 0m4r

    • RE: MMM-SoccerLiveScore

      if you are interested into the WM results, add 4100 as a code into the module configuration 😃

      posted in Sport
      0m4r
      0m4r
    • RE: MMM-CovidStats

      [edited]
      Apologies. I read it quickly and did not get you were adv your own module.

      posted in Health
      0m4r
      0m4r
    • 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
      0m4r
      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
      0m4r
      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
      0m4r
      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
      0m4r
      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
      0m4r
      0m4r
    • RE: MMM-SoccerLiveScore

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

      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
      0m4r
      0m4r
    • RE: MMM-SoccerLiveScore

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

      posted in Sport
      0m4r
      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
      0m4r
      0m4r