Read the statement by Michael Teeuw here.
MMM-OlympicGames
-
I also had the “invalid json response” problem. After I upgraded node-fetch to 3.x, it works fine.
-
In the beginning, I had the same issues with the invalid response. But I never had to click the link in order to fix it, I just started using the fake user agent in the module. Every time I restart the mirror it’s loading the data for me.
The module is not using an official API. Everything else I found is charging money for it or does not return data.
I was hoping once the games are starting that some other APIs start spitting out some data, so I could potentially switch.
I’m open to links from free JSON APIs that would solve your issues.
-
Most sport news sites including the official olympic games website still show 0 medals.
-
@kristjanesperanto Couldyou explain how to upgrade ?
-
@mlhote In the meantime it works also with node-fetch v2 for me, so an upgrade seems not to be necessary.
One assumption is that this occurs when you restart the mirror several times. Then the API is often queried in a short time and therefore you are blocked.
-
Link to module https://github.com/fewieden/MMM-OlympicGames
[1.2.0]
Added
- Added another data source, see new config option
provider
.
Changed
- Countries with same medals share the same rank
[card:fewieden/MMM-OlympicGames]
- Added another data source, see new config option
-
I’ve specified the en-US locale but the country names seem to be in Catalan.
Here is my config file
{ module: "MMM-OlympicGames", position: "top_left", config: { // all your config options, which are different$ locale: "en_US", highlight: "CA", maxRows: "10", reloadInterval: "3600000", provider: "nbc" } } ```Edited to fix locale typo
-
-
@sdetweil Just saw that after posting and made the correction. Unfortunaly I get the same result with the typo corrected.
-
@sirfm
locale
has to be direcly under config not in the module config: https://github.com/fewieden/MMM-OlympicGames/blob/master/.github/global.png