Author Topic: PWS - non meteobridge cumulus - pop up no longer display data after SSL  (Read 2201 times)

0 Members and 1 Guest are viewing this topic.

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
I've been using the template without problem with non-ssl. Yesterday after adding Let's encrypt SSL to make it secured. Everything works fine, except all pop-up displays do not show any data. I specify SSL = yes in the setting page too.

My website: https://bthofen.com/pws

 [ You are not allowed to view attachments ]
« Last Edit: January 28, 2020, 09:14:06 PM by bthoven »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #1 on: January 28, 2020, 10:36:57 PM »
Your webserver is including the directive
Code: [Select]
X-Frame-Options: DENY in the response headers .. this prevents the popup windows from showing the content.  Turn that off in your cPanel and your graph and other windows should show up again.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #2 on: January 28, 2020, 11:29:40 PM »
Thanks a lot. I do not have cPanel. Any other way to set it? (Ubuntu/Apache) What exact command I have to add and add to what file in Apache directory?

update: ok. I found it. I have to amend the content of  /etc/apache2/conf-enabled/ssl-params.conf:
Code: [Select]
# Header always set X-Frame-Options DENY
Header always set X-Frame-Options sameorigin

Thanks a lot.
« Last Edit: January 29, 2020, 12:35:33 AM by bthoven »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #3 on: January 29, 2020, 12:32:15 AM »
Sure, look in httpd.conf file for your Apache server.  It's likely in /etc/httpd/conf directory

Find
Code: [Select]
Header always append X-Frame-Options DENY and replace with
Code: [Select]
Header always append X-Frame-Options SAMEORIGINthen restart the Apache server.

That should allow iframe from your site only if the iframe-page comes from your site.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #4 on: January 29, 2020, 12:36:42 AM »
I found it. As the problem happens only after I implement ssl, I have to amend the content of  /etc/apache2/conf-enabled/ssl-params.conf:
Code: [Select]
# Header always set X-Frame-Options DENY
Header always set X-Frame-Options sameorigin

Thanks a lot.
« Last Edit: January 29, 2020, 12:42:55 AM by bthoven »

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #5 on: January 29, 2020, 12:42:56 AM »
You're welcome, glad to assist.  It looks like most of the framed popups now come up and display.

The charts for temperature, wind, barometer and rain all show no charts because of 404-Not Found on the data files.  Have you set-up a WU/TWC API key to get the data needed?

The CU-HWS template uses only WU for graph data.  If you're running WeeWX, you should use that specific template instead as it can use WeeWX data for the graphs.  https://github.com/steepleian/weewx-Weather34
« Last Edit: January 29, 2020, 12:50:31 AM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #6 on: January 29, 2020, 01:19:18 AM »
I did put WU api key there; but I know WU no longer supports it. I have no idea about WU/TWC api key.

Just know we now have a specific Weather34 weewx extension. Interested in trying it.

Thanks again.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #7 on: January 29, 2020, 12:03:59 PM »
If you had an old WU API key, that stopped working last year.  You have to have a new WU/TWC API key to use with the current api.weather.com API.

How to get a WU/TWC API Key

    Use your browser to open https://www.wunderground.com/member/api-keys

    If you are not logged in, you will be asked to. The system will also verify that you have a PWS uploading to the system.
    You will then see a blank box below “Your API keys”.

    Agree to the new Terms and Conditions by clicking in the small box next to “I agree”, click on the blue “GENERATE” box, and your new key will be created.

    The key will be masked on the screen, but you can use the “Show” link below the box to see it.
    There is also another blue box, which, when clicked, copies the key to your clipboard.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #8 on: January 30, 2020, 03:30:46 AM »
Thanks. I actually did get the new WU API key earlier and put in the setting.

I've also installed the weather34 extension to my Weewx, copied and pasted one by one setting  from my old/standalone installation. It is working fine except following problems:

1.  Darksky Forecast and current Conditions do not show any data
2.  Purple Air Quality do not show any data

By inspecting the web source, there are a lot of files not found in the weather34 folders. It seems the source files are not completed.

All the above data display fine with the old/standalone installation

Template generated by Weewx (have the above problem):
https://bthofen.com/weather34

Standalone template which works fine, except no graphs:
https://bthofen.com/pws

Update 5 Feb 2020: the template had been updated to solve the problem...thanks
« Last Edit: March 03, 2020, 02:12:40 AM by bthoven »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #9 on: February 02, 2020, 09:34:28 AM »
Standalone template which works fine, except no graphs:
https://bthofen.com/pws
The graph https://bthofen.com/pws/chartswu/monthlytemperature.php  gets 404 errors
Failed to load resource: the server responded with a status of 404 (Not Found) => https://bthofen.com/pws/chartswudata/022020.txt?_=1580653579143

That file indeed does not exists, as the only files in that directory are form 2019: https://bthofen.com/pws/chartswudata/
Code: [Select]
[PARENTDIR] Parent Directory -
[TXT] 01012019.txt 2019-04-14 06:12 26K
[TXT] 012019.txt 2019-04-14 06:12 1.2K
[TXT] 02012019.txt 2019-04-14 06:12 16K
[TXT] 03012019.txt 2019-04-14 06:12 26K
[TXT] 042019.txt 2019-04-26 18:16 2.2K
[TXT] 2019.txt 2019-04-26 18:16 8.6K
[TXT] 13012019.txt 2019-04-14 06:12 19K
[TXT] 14012019.txt 2019-04-14 06:12 4.4K
[TXT] 26042019.txt 2019-04-26 18:16 23K

Wim

Offline bthoven

  • Senior Member
  • **
  • Posts: 91
    • Europa Cafe' Private Observatory
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #10 on: February 04, 2020, 10:10:30 PM »
Thanks. The weewx/weather34 template has been updated to fully function now.
https://github.com/steepleian/weewx-Weather34

Offline LimySoul

  • Member
  • *
  • Posts: 2
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #11 on: October 19, 2022, 04:44:46 AM »
Maybe you don't need to add this then

Offline MourtFenal

  • Member
  • *
  • Posts: 1
Re: PWS - non meteobridge cumulus - pop up no longer display data after SSL
« Reply #12 on: October 19, 2022, 05:02:30 AM »
That’s strange. I did the same to my popup, and it works properly. I suggest you remove this popup if it doesn’t show the data. Otherwise, the site may seem strange and unreliable to clients, who see popups without any data. Or if you need this popup badly, you could use a template from the internet. When making the Abandonment prevention popup, I couldn’t find the right design and create it the way I wanted. That’s why I just took one template from the internet, which now looks great. The activity on my site jumped up after I created the registration popup. I suggest you all guys trying this thing to improve the activity.
« Last Edit: October 19, 2022, 09:34:39 AM by MourtFenal »

 

anything