thejosejorge / futcal-for-scriptable Goto Github PK
View Code? Open in Web Editor NEWFutcal is a football widget for Scriptable.
Futcal is a football widget for Scriptable.
j
Currently if a match is cancelled it will be shown in the Previous match section, with the time and date information.
If a match is cancelled we want that information to be shown in the widget, instead of the match time and date.
FotMob seems to be changing their API structure / data so the widget needs to be adapted to these changes.
One of the impacted areas is the Next / Previous matches.
This applies to the team position in the league table.
This applies to the next match teams information.
Possibility to configure Futcal as a Large widget.
I am using light mode in my ios, but i wanna use black mode for futcal widget. But when i changed background color of light mode in custom settings, i couldn't see texts because there was no custom option for base text color.
The widget is not prepared for URLs with special characters (e.g. "ø" on "fc-københavn").
The URLs will need to be encoded to avoid errors in this scenario.
Hi, probably another change in their api?
greetings
michel
after doing all fixes suggested by @hangoon-p #41 #44 #43 indeed those specific errors were gone but a new error appeared as mentioned in the title.
the marked is the "unexpected" word
Possibility to configure Futcal as a Small widget, with different variants to chose from:
Hi, I followed the instruction give for custom background image. I created a background for the widget, named the file background.png and added it to the folder. But the script is still showing a black background. Is there anything am doing wrong?
Exception Occurred Error on line 166:50: TypeError: undefined is not an object (evaluating 'nextMatch.id‘)
Hello, got this error since today. Season is over so „nextMatch.id“ is kind of empty?
Or futmob has changed something again?
This applies to the next match time information.
Currently the only way to customise the script is by changing the code.
The goal is to have the option to do it in a more user friendly way, for some of the parameters.
Hi,
I found a bug: with "showOnlyOpposition:true" and Bayern Munich (Id: 9823) the display of the "current" opponent is wrong. The widget shows Bayern Munich, but Bayern played against Hoffenheim yesterday. The result is correct.
Screenshot: https://imgur.com/NGThfOG
I think FotMob again changed something in the structure of the API but i can't manage to fix it, would be really helpful if anyone tells us in which line to change what!
Thanks and Regards.
Now Futcal is not working since Fotmob API has slightly changed.
To fix it, you need to follow below steps.
const detailsDateValue = formatDate(new Date((matchDetails.content.matchFacts.infoBox["Match Date"].dateFormatted).replaceAll(".", "")));
addFormattedText(matchInfoDetailsStack, detailsDateValue, Font.regularSystemFont(12), Color.gray(), null, false);
matchInfoDetailsStack.addSpacer(3);
const detailsTimeValue = formatTime(new Date((`${matchDetails.content.matchFacts.infoBox["Match Date"].dateFormatted} ${matchDetails.content.matchFacts.infoBox["Match Date"].timeFormatted}`).replaceAll(".", "")));
const detailsDateValue = formatDate(new Date((matchDetails.content.matchFacts.infoBox["Match Date"].utcTime)));
addFormattedText(matchInfoDetailsStack, detailsDateValue, Font.regularSystemFont(12), Color.gray(), null, false);
matchInfoDetailsStack.addSpacer(3);
const detailsTimeValue = formatTime(new Date((`${matchDetails.content.matchFacts.infoBox["Match Date"].utcTime}`)));
There's nothing difficult.
It's just analyzing returned JSON data.
This applies to the next match team information.
The widget is not prepared for leagues with multiple tables (e.g. "MLS).
For these leagues, since the json structure is different than the expected, there is currently an error.
No more information updated and stuck on last match. The latest version of futcal is installed, and all patches have already been completed.
Some users reported the wrong images are being shown.
In other cases the script is returning the following error:
"Error on line 402:60: Expected value of type Image but got value of type undefined."
This applies to the next match time information.
Hey Guys,
Widget looks absolutely stunning! But i am currently not able to get it working.
Im still on the default setting and copied the futcal.js in the scriptable folder as recommended. When excectuing i get an
"Error: Data could not be read because of wrong format. Trying to read cached data: teamData.json" followed by a "Error: Cannot download the file from ICloud because the file does not exist."
Am i missing something?
Thanks for the help! :)
Can you program such a widget for the German ice hockey league?
Unfortunately, there is currently nothing of this kind for the German ice hockey league. Do you have a way to create such a thing?
I can give you some help with translation in Korean.
Hi, is it possible to include the Playtime when a game is running?
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.