This shows the screen immediately after the graph is retrieved and is displaying 6 hours, as set-up.
If I now click the refresh button in the top left the timescale changes to ‘1 Week’ as this is what is listed.
Is this the expected behaviour, or should the default timescale be automatically restored with the graph?
The interval updates ok for me here, but the time window selector e.g “1 week” does not update to reflect the saved graph. Is that what you are seeing?
Earlier today I added another value to the Data Viewer period (3 hours) in embed.php, but am struggling to get the new version displayed.
What do I need to do to refresh the web pages, a reboot doesn’t seem to be enough.
(I’m posting this question here as I came across this thread while looking in the forum for an answer, and have now also included the patch to embed.php that fixes this problem!)
Thanks Tim, that’s the change that I made; unfortunately I still can’t see the updated drop-down.
I’ve tried refreshing the page, clearing the cache and have even used another browser and PC.
I’ve also checked that the file on the Pi is definitely the updated one.
Does anyone have another suggestion to force the updated file to be picked up and used?
‘Caching problem’ solved - the clue is in the title of this thread.
The file I actually needed to change was view.php, rather than embed.php
This also means that the fix for my original query needs to be reworked for view.php - I’ll give it a go when I have a bit more time.