currentUS block data source change

Post Reply
User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

currentUS block data source change

Post by dmgould » Tue Dec 18, 2018 6:11 pm

My currentUS block has quit working. I think it's a data source change from http to https.
Dave G
Image

User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

Re: currentUS block data source change

Post by dmgould » Tue Dec 18, 2018 11:59 pm

In line 52 of currentUSBlock.php change http to https

currentUS.JPG
currentUS.JPG (13.52 KiB) Viewed 9175 times
Dave G
Image

User avatar
Ken Good
Advisor
Advisor
Posts: 62
Joined: Thu Dec 28, 2017 4:10 am
Location: Tyler, Texas
Station model: Davis Vantage Pro 2 Plus
Software: Meteobridge
Contact:

Re: currentUS block data source change

Post by Ken Good » Wed Dec 19, 2018 11:22 am

This fix worked for me.
Ken
Image

cw3beck
Observer
Observer
Posts: 33
Joined: Sun Aug 20, 2017 5:48 pm
Location: Huntsville, AL
Station model: Davis Pro 2
Software: Weather Display
Contact:

Re: currentUS block data source change

Post by cw3beck » Fri Dec 28, 2018 6:08 pm

dmgould wrote: Tue Dec 18, 2018 11:59 pm In line 52 of currentUSBlock.php change http to https


currentUS.JPG
I've made the recommended changes but am still unable to pull in any data for the 5X sites. I've cleared the cache and made some changes to the cache times but still not working. Any other suggestions?

User avatar
dmgould
Forecaster
Forecaster
Posts: 173
Joined: Sat Aug 26, 2017 2:43 am
Location: Divide, Colorado, USA
Station model: Davis Pro 2 Plus Wireless
Software: Meteobridge
Contact:

Re: currentUS block data source change

Post by dmgould » Fri Dec 28, 2018 9:45 pm

Did you just add an s to http? That's the only change needed. Are you certain you uploaded the new file to the correct directory? The only other thing that comes to mind is saving the file back after you changed it with a program not designed for saving code. A plain word processor or even the standard notepad will embed characters that change the code. I use Notepad++ which is a free download. Maybe download the file again from Meteotemplate and try again.
Dave G
Image

cw3beck
Observer
Observer
Posts: 33
Joined: Sun Aug 20, 2017 5:48 pm
Location: Huntsville, AL
Station model: Davis Pro 2
Software: Weather Display
Contact:

Re: currentUS block data source change

Post by cw3beck » Sun Dec 30, 2018 3:56 pm

dmgould wrote: Fri Dec 28, 2018 9:45 pm Did you just add an s to http? That's the only change needed. Are you certain you uploaded the new file to the correct directory? The only other thing that comes to mind is saving the file back after you changed it with a program not designed for saving code. A plain word processor or even the standard notepad will embed characters that change the code. I use Notepad++ which is a free download. Maybe download the file again from Meteotemplate and try again.
So I took your recommendations and re-downloaded the block, modified the line via Notepad++ and added back into the template with no resolution. I host my own website and live outside the US so not sure if any of this is relevent or not. Will continue to look for other things to consider but am always looking for others' insight as well. Thanks.

User avatar
John B
Forecaster
Forecaster
Posts: 211
Joined: Sun Aug 20, 2017 11:59 pm
Location: Blaxland, N.S.W., Australia
Station model: La Crosse WS2355
Software: Weather Display
Contact:

Re: currentUS block data source change

Post by John B » Tue Jan 01, 2019 12:36 am

Our Rhineland friend,

I cannot see a situation where a server outside the US of A should affect the workings of your site.

Still, if you'd like me to check it, I'll put the block on my own site (admin view only) and see if it works for me.

Let me know here - Jáchym's system will advise me of your response.

Regards,

John

User avatar
John B
Forecaster
Forecaster
Posts: 211
Joined: Sun Aug 20, 2017 11:59 pm
Location: Blaxland, N.S.W., Australia
Station model: La Crosse WS2355
Software: Weather Display
Contact:

Re: currentUS block data source change

Post by John B » Wed Jan 02, 2019 1:26 am

Purely for the information of others who have struck this problem:

I downloaded and installed the currentUS block. It didn't work initially. Rather than try to re-invent the wheel I used dmgould's advice (see above) and edited the currentUSBlock.php file off-line (via Notepad ++) and then uploaded it to my web site. It worked. Please note that I used only the three default ICAO designations. I shall leave it up to others to experiment with different airport ICAO identifiers.

Post Reply