Need to identify web template in use
Posted: Wed 08 Aug 2018 12:45 pm
Hello, I'd really appreciate this community's help with identifying which web template/script has been used to embed live station data on a client's website.
The data file cumulus/realtimegauge.txt is still being successfully uploaded by Cumulus (v1.9.4) via FTP, but the live gauges stopped working after the website was upgraded from HTTP to HTTPS. This is because the javascript is making an 'AJAX' request to fetch the data from the non-HTTPS website.
The page in question is https://www.ryegolfclub.co.uk/weather/ and the code that loads the gauges is as follows:
The console error in the browser is as follows:
Despite spending some time Googling and checking this forum, I have been unable to work out which of the various web scripts/templates is being used. I was hoping that a member of this forum would recognise the gauges or embed code, and perhaps know how I can re-generate the gauges/script.js with the current (i.e. HTTPS) URL for the data file.
Thanks in advance for any help.
The data file cumulus/realtimegauge.txt is still being successfully uploaded by Cumulus (v1.9.4) via FTP, but the live gauges stopped working after the website was upgraded from HTTP to HTTPS. This is because the javascript is making an 'AJAX' request to fetch the data from the non-HTTPS website.
The page in question is https://www.ryegolfclub.co.uk/weather/ and the code that loads the gauges is as follows:
Code: Select all
<p id="gauges-container"></p>
<script type="text/javascript" src="/files/478/_ftp_/gauges/script.js"></script>
<script type="text/javascript" src="/files/478/_ftp_/gauges/template.js"></script>
If I drop the same code into an entirely different website it still requests data from the old HTTP URL, from which I deduce that the URL of the live data file must be contained in the gauges/script.js file. The code in that javascript file is obfuscated, however, so I cannot simply edit it to fix the problem.Mixed Content: The page at 'https://www.ryegolfclub.co.uk/weather/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.ryegolfclub.co.uk/files/478/ ... 3730644774'. This request has been blocked; the content must be served over HTTPS.
Despite spending some time Googling and checking this forum, I have been unable to work out which of the various web scripts/templates is being used. I was hoping that a member of this forum would recognise the gauges or embed code, and perhaps know how I can re-generate the gauges/script.js with the current (i.e. HTTPS) URL for the data file.
Thanks in advance for any help.