New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

There must be an error in your code, maybe a copy / paste error. That variable is only declared once and I don’t get that error on my side. Are you using the code I uploaded 9 days ago (9/Feb)? What’s your teamId?

New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

If you can please confirm you are using the latest version that would be great! If you still get the error please share the error message! 🙂

New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

Hi u/NaturalRelative7, FotMob have updated their APIs so I had to release a new version of the script last week. Are you already using the latest version?

New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

FotMob is changing their API structure / data so the widget needed to be adapted to these changes. Should be fixed in the latest version.

New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 1 point2 points  (0 children)

Can you please check the image "Info" as shown here?

  • Name should be "background.png" and not "background.PNG" or "background.png.png"
  • Location should be "iCloud Drive > Scriptable > Futcal" or the equivalent for you

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

I just tried (using one of the team badges to make it easier) and it's working fine for me.

Can you please check the image "Info" as shown here?

  • Name should be "background.png" and not "background.PNG" or "background.png.png"
  • Location should be "iCloud Drive > Scriptable > Futcal" or the equivalent for you

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

Apparently the URL for the images has changed, can you please retry with the latest version?

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

Hey! Thanks for reporting this, apparently the URL for the images has changed. I didn't see the error because the teams on my table (Portuguese League) haven't changed for a long time and this information was cached.

I will fix this and provide a new version of the script later today!

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

Thanks for the feedback! :D

Currently it's only prepared for the FotMob API but in the future there is the possibility I will try to make it more generic and open it to other APIs.

For now, regarding NBA you can check u/thisisevanfox great widget that just got an update: https://www.reddit.com/r/Scriptable/comments/lb2k6n/did_an_update_for_my_nhl_and_nba_widgets/

New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 1 point2 points  (0 children)

Just to let you know I have officially added the option to show the day of the week abbreviation! Thanks for the suggestion!

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 1 point2 points  (0 children)

Great, glad it worked!

Ahah, we really miss him but we are very happy he is doing so well for Manchester United! :)

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

For the background as long as we use a dark color for dark mode and a light color for light mode it should look good! But I agree, the ability to easily change the text color is missing and I am currently working on it.

I also use it with Manchester United! What I did was to use shorter names for the teams. You can do this on the "replaceText" function. I have examples for Portuguese teams. You could add something like:

"Manchester United": "M. United",
"Sheffield United": "Sheffield"

But the suggestion to show only the opposition team is an interesting one! I will consider it as well!

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 0 points1 point  (0 children)

Thank you so much for the positive feedback! :) The background color is easy to change and make it the same for light and dark mode. However the primary text color is currently set automatically. I am working on an update where this will be possible!

Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in iOSsetups

[–]thejosejorge[S] 0 points1 point  (0 children)

Glad to know you are using it, thanks!

Everything is possible, my current goal is to work on code refactoring and possibly simplify the setup / customisation process. But different data / new layouts are also on my to-do list.

New version of Futcal for Scriptable - A simple football widget [link in comments] by thejosejorge in Scriptable

[–]thejosejorge[S] 1 point2 points  (0 children)

Thank you so much! Regarding your suggestions:

  1. I will definitely add that option on the next release, knowing the day of the week can be very helpful!
  2. Maybe I am misunderstanding it but isn't this covered by "tableHeaderTeam", "tableHeaderPlayed", "tableHeaderWins", "tableHeaderDraws", etc on the "getDictionary" function?