Read the statement by Michael Teeuw here.
MMM-OlympicGames
-
There doesn’t seem to be an official API. Without one, a website with an up-to-date medal table would have to be called and parsed regularly. There’s at least one API that can be found by reverse engineering, but solutions like these are not really legal (often it’s against the terms of use) and thus can’t/shouldn’t be shared/adviced on a public forum. Even if you get an API, the code that parses the JSON would have to be rewritten - more or less from zero, depending on the differences.
-
@doubleT I just uploaded a new version with a different data source, pls keep in mind that the new data source works with 3 letter country codes in case you want to use the highlight option
[card:fewieden/MMM-OlympicGames]
-
I tried using the new version of the MMM-OlympicGames and the module only shows “Loading”
-
@cbo do you have any errors to report? terminal or electron? I just spinned up the module and got my data
-
@strawberry-3-141Hi, does the module still work?
-
Link to module https://github.com/fewieden/MMM-OlympicGames
[1.1.0]
MagicMirror² version >= 2.15.0 required.
Fixed
- Installation instructions
Added
- Nunjuck template
- Dependency:
node-fetch
- Dependency:
lodash
- Github actions:
build
andchangelog
- Github config files
Changed
- Data source
- Preview image
- Config options
- Country names are now translated with the
Intl
object - Translations
Removed
- Dependency:
request
- Travis-CI integration
[card:fewieden/MMM-OlympicGames]
-
@strawberry-3-141 Thank you for updating this!
-
Hello, great job !!!
I update the module but It’s stay “Loading”
The log0|MagicMirror | [02.02.2022 10:24.38.381] [ERROR]
0|MagicMirror | Error getting olympic game medals FetchError: invalid json response body at https://www.bloomberg.com/tosv2.html?vid=&uuid=eeef6240-8409-11ec-a0ac-73657468704e&url=L2dyYXBoaWNzL2JlaWppbmctMjAyMi1vbHltcGljcy1kYXRhL2N1cnJlbnQuanNvbg== reason: Unexpected token < in JSON at position 0
0|MagicMirror | at /home/pi/MagicMirror/modules/MMM-OlympicGames/node_modules/node-fetch/lib/index.js:273:32
0|MagicMirror | at runMicrotasks (:null:null)
0|MagicMirror | at processTicksAndRejections (internal/process/task_queues.js:93:5)
0|MagicMirror | at Class.getCountryMedals (/home/pi/MagicMirror/modules/MMM-OlympicGames/node_helper.js:54:36)
0|MagicMirror | {
0|MagicMirror | type: ‘invalid-json’
0|MagicMirror | }What I have to do to repair ?
Sorry for my poor English
Mat -
@mlhote Did you run npm install in the MMM-OlympicGames folder?
-
Yes
it’s write on the github