Comments (8)
Hi @seanob86,
Thanks for reporting this.
Unfortunately I am not able to reproduce, I am getting the correct time and date on my widget:
Can you add the following on row 201 (immediately after we get the matchDetails) and share the log information? It seems the time and date information is not being properly retrieved.
201 console.log(matchDetails.content.matchFacts.infoBox["Match Date"])
In the end it should look like:
200 const matchDetails = await getData(matchDetailsUrl, matchDetailsOffline);
201 console.log(matchDetails.content.matchFacts.infoBox["Match Date"])
Thanks,
Jose
from futcal-for-scriptable.
Monday, April 12 2021, 5:00 a.m.
Saturday, April 17 2021, 6:00 a.m.
I also copied the script off GitHub and without making any changes I still get the issue.
from futcal-for-scriptable.
Hi @seanob86,
Thanks for the quick feedback!
So that's the problem, for some reason the string format in the API changed and it's causing the date/time to break since "a.m."/"p.m." is not an expected format. I am not seeing this new format (and therefore not reproducing the issue) probably because we are in different time zones. (I assume you are not in the UK since the time for the next Man United match is 6am)
I can make a change to fix this but in order to understand the best way to do it can you please also add the following to the script (immediately after what we previously added) and share the log information?
console.log(match.status.startDateStr)
console.log(match.status.startTimeStr)
Thanks,
Jose
from futcal-for-scriptable.
Friday, April 16 2021, 5:00 a.m.
Fri, 16 Apr
undefined
Monday, April 19 2021, 1:00 a.m.
Mon, 19 Apr
01:00
it’s actually 1AM for my local time zone. It was 6AM for the default settings when I recopied the script off GitHub. My time zone setting
timeZone: "Australia/Melbourne",
from futcal-for-scriptable.
Can you please try again with the latest version?
Apparently FotMob is changing their API structure / data so the widget needs to be adapted to these changes.
from futcal-for-scriptable.
Thank you! It's now working with latest version 👍
from futcal-for-scriptable.
Closed.
from futcal-for-scriptable.
Hey @thejosejorge its me again.
just noticed I’m having issues again with time as NaN:NaN for next match.
I copied the code again and running the code as is works. But as soon as I change team to manutd and Timezone to “Australia/Melbourne” the issue can be seen.
from futcal-for-scriptable.
Related Issues (20)
- Previous / Next matches wrong information HOT 4
- Widget no longer shows data HOT 2
- is there any way to customize base text color HOT 3
- Unfortunately, the widget does not work again HOT 5
- Error caused by tournament data API change HOT 3
- Are other sports possible? HOT 1
- Previous match is showing wrong information HOT 11
- Error caused by table data API change HOT 10
- Error caused by table data API change HOT 10
- Change TeamID with a parameter HOT 1
- Error: Cannot download the file from ICloud because the file does not exist HOT 4
- Futcal is not working HOT 10
- Exception Occurred Error on line 166:50 HOT 3
- h
- No longer working, internet connection required
- TypeError: undefined is not an object 'teamData.table[0].tables.length' HOT 5
- No Games Data HOT 8
- undefined is not an object HOT 4
- error on line 415: SyntaxError: unexpected keyword 'else'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from futcal-for-scriptable.