Read the statement by Michael Teeuw here.
MMM-OlympicGames
-
Great it’s work 1 time !!!
When i reboot MM, i have to click again on the url…
see my config
{
module: ‘MMM-OlympicGames’,
position: ‘top_right’,
disabled: false,
config: {
// all your config options, which are different than their default values
}
},So the trouble is not fix
-
Hello,
I hope you can help me… This is my first time posting in the message board so please excuse any formatting mistakes.
the module is on my MM but just says loading…
Here is the error
[03.02.2022 12:44.24.245] [ERROR] Error getting olympic game medals FetchError: invalid json response body at https://www.bloomberg.com/tosv2.html?vid=&uuid=12216a4d-8532-11ec-99d5-6f52634e6775&url=L2dyYXBoaWNzL2JlaWppbmctMjAyMi1vbHltcGljcy1kYXRhL2N1cnJlbnQuanNvbg== reason: Unexpected token < in JSON at position 0
I have clicked on the link and it takes you to a page that if you hold on the button it unlocks the data. I know someone else was dealing with that so I hope they found and answer
Here is some info about what I have done so far
MM version MagicMirror: v2.15.0
Synology Docker v20.10.3-1239First I cloned the MMM-OlympicGames to my modules folder
then added to my config file (see below)
] ){ module: 'MMM-OlympicGames', position: 'bottom_left', config: { } },
then I ran npm install --production in ~/MagicMirror/modules/MMM-OlympicGames directory.
added Locale to the default settings
locale: "en-US",
then I restarted the MM and it still says loading…
I even tried removing it and staring over step by step this morning and still have loading…
Any ideas to point me in the right direction would be most helpful. I really like this module and would like to use it
Thanks
-
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
-