0m4r / mmm-euro2024 Goto Github PK
View Code? Open in Web Editor NEWa Magic Mirror Module to display Euro 2020 fixtures and standings
a Magic Mirror Module to display Euro 2020 fixtures and standings
Hi guys, I got this error:
[07.06.2024 21:57.59.661] [ERROR] Whoops! There was an uncaught exception...
[07.06.2024 21:57.59.682] [ERROR] /opt/magic_mirror/modules/MMM-euro2024/node_helper.js:138
const matches = fixtures?.matches || []
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at loadModule (/opt/magic_mirror/js/app.js:126:19)
at loadNextModule (/opt/magic_mirror/js/app.js:164:5)
at /opt/magic_mirror/js/app.js:166:6
[07.06.2024 21:57.59.687] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
my config looks like this:
{
disabled: false,
module: "MMM-euro2024",
position: "center",
header: "Euro 2024",
config: {
updateInterval: 60 * 1000,
token: "b1e67..myToken..67c8c5",
}
},
I get a black screen when I activate the module?
Original Config as in description and token available.
Dear @0m4r
thank you for your great module!
after installing it at getting a API key, the module seems not to fetch the results :
In the confirmation mail from API-key for football-data.org, where I can check the key, it really looks like that no retrieve of the data have been performed.
Are you encoutering the same problem ?
Thanks for your interest and you help.
Kind regards,
Cédric
Hi there,
results are not getting displayed due to an error in your scripts:
Line 92:
tr.appendChild(buildTD(m.score.fullTime.homeTeam, 'MMM-euro2024-score'));
This should be:
tr.appendChild(buildTD(m.score.fullTime.home, 'MMM-euro2024-score'));
Same for the away team.
Else: nice work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.