Chasing down HTTPS errors

Post Reply
JHoke
Newbie
Newbie
Posts: 8
Joined: Thu Mar 22, 2018 3:56 pm
Location: Albrightsville, PA
Station model: Davis Pro 2
Software: weeWX
Contact:

Chasing down HTTPS errors

Post by JHoke » Mon Apr 16, 2018 6:43 pm

So, I was chasing down a few HTTPS warnings / errors on my site in Chrome this afternoon. All of the issues were related to two blocks (that I use atleast) Figured I'd post this if anyone else was working on similar :)

Nasa Image of the Day : This calls the nasa RSS file via HTTPS, but NASA in their infinite wisdom use HTTP for the links in their RSS feed.... I fixed that issue with

$imgLink = preg_replace("/^http:/i", "https:", $imgLink);

after line 40

The other was in radarUS - I went through and replaced manually all the HTTP with HTTPS for the dropdowns, images, etc. in radarUSBlock.php
Image
Station: Davis Vantage Pro 2
Software: weeWX
Hardware: Raspberry Pi 3
WebSite: https://nepaweather.com/

User avatar
Fraggboy
Forecaster
Forecaster
Posts: 193
Joined: Wed Sep 27, 2017 2:45 pm
Location: Sunny California
Station model: Bloomsky II + Storm
Software: Bloomsky
Contact:

Re: Chasing down HTTPS errors

Post by Fraggboy » Tue Apr 17, 2018 10:18 pm

I do the same thing. I have 1 block (Bloomsky timelapse) that changes back to http. I have a script that scans the file and adds the s to the end.
Image

Post Reply