@matze86 said in MMM-soccer v2:
I think the api also does Not give the Information about the time of Match?
It does.
Usually APIs work with timestamps or date strings including date and time.
My module is set to only show the time at the day of match. It does not show date AND time due to limited space.
if (match.status == "SCHEDULED" || match.status == "POSTPONED") {
match.state = (moment(match.utcDate).diff(moment(), 'days') > 7) ? moment(match.utcDate).format("D.MM.") : (moment(match.utcDate).startOf('day') > moment()) ? moment(match.utcDate).format("dd") : moment(match.utcDate).format("LT");