Open smalers opened 2 years ago
Found the issue:
The page displays and contains the dates when it was initially loaded. I have now set up the app-config.json
file to accept a refreshTime property, which takes an array of arrays. Each separate array contains 3 digits representing the hours, minutes, and seconds in military time that the pages needs to refresh. The following example is what the property contains as a value to refresh the page at 8:30am and 2:00pm:
{
"refreshTime": [
[8, 0, 0],
[13, 30, 0]
]
}
This does not solve the issue of a someone using it between midnight and the first refresh however. Using SNODAS between those times will fetch the current day, but the data aren't updated until around 8:00am.
I could put in logic to check the time of the current day, and if it's earlier than 8:00am, use yesterday's date instead. I feel like that's confusing to a user though. Maybe some kind of info popup that let's them know the data won't be updated until 8? I'll discuss with Steve.
There is a case where the animation will not work, as follows:
If what is required is to refresh the page because it does not show the current day, then a warning can be shown to do that.