Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

http to https problem (Resolved)

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
itsfine
Posts: 4
Joined: Fri 06 Mar 2020 7:18 pm
Weather Station: Davis
Operating System: windows7

http to https problem (Resolved)

Post by itsfine »

Hi, I have been using SSG for years without any problems but have now changed to https. I have checked all files and changed to https but cannot get it working. Obviously I am missing something basic but just can't see it. Any help would be appreciated.

The site is www.itsfine.uk and the SSG page is https://itsfine.uk/wx1/steel/web_server/gauges-ss1.php
Data from WD is in folder wx1.

Thanks
Last edited by itsfine on Sun 08 Mar 2020 12:05 pm, edited 1 time in total.
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: http to https problem

Post by Mapantz »

http://www.itsfine.uk/wx1/customclientraw.txt

The gauges are reading that URL.
Image
itsfine
Posts: 4
Joined: Fri 06 Mar 2020 7:18 pm
Weather Station: Davis
Operating System: windows7

Re: http to https problem

Post by itsfine »

Thanks Mapantz, they are reading the file but not displaying any info.
Mapantz
Posts: 1775
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: http to https problem

Post by Mapantz »

In gauges.js

Try changing this line:

Code: Select all

realTimeURL_WD     : 'http://www.itsfine.uk/wx1/customclientraw.txt',    //*** WD Users: Change to your location of the ccr file ***
to either:

Code: Select all

realTimeURL_WD     : 'wx1/customclientraw.txt',    //*** WD Users: Change to your location of the ccr file ***
or:

Code: Select all

realTimeURL_WD     : 'customclientraw.txt',    //*** WD Users: Change to your location of the ccr file ***
Image
itsfine
Posts: 4
Joined: Fri 06 Mar 2020 7:18 pm
Weather Station: Davis
Operating System: windows7

Re: http to https problem

Post by itsfine »

Tried both options plus various alternatives using ../ to go back a level and the full url with http and https but still no change.
It's got me beat!
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: http to https problem

Post by mcrossley »

It's definitely your client raw file causing the problem. It is trying to load...
http://www.itsfine.uk/wx1/customclientraw.txt

Which isn't allowed as that is mixed content. Changing it to...
/wx1/customclientraw.txt

fixes it for me. Btw, you also have a statistics counter script giving mixed content errors as well.
itsfine
Posts: 4
Joined: Fri 06 Mar 2020 7:18 pm
Weather Station: Davis
Operating System: windows7

Re: http to https problem

Post by itsfine »

Thanks Mark. I've struggled with this for ages. Made the changes and removed the counter as well.
Everything is back to normal - hooray!
Post Reply