Custom Pages

Post Reply
kd7eir
Advisor
Advisor
Posts: 58
Joined: Sun Aug 20, 2017 2:58 pm
Station model: Ecowitt Wittboy
Software: FOSHKplugin

Custom Pages

Post by kd7eir » Fri Oct 20, 2023 2:43 am

I am trying to create either a custom page or menu item that opens https://www.astrospheric.com/?Latitude= ... c=Forecast

I tried a custom page - I can get a list to display a link, but I would like the menu item or the custom page to automatically show the website. I have an embed for it, but java script is not allowed, so I can't use it.

Any suggestions?
Image

FSC830
Forecaster
Forecaster
Posts: 191
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Custom Pages

Post by FSC830 » Fri Oct 20, 2023 7:57 am

Actually I am not sure if I caught the issue correct.
As an example: if you go to my page and click Weather - Metar Decoder, a new tab is opened.
Is that, what you want to achieve?

Regards
Image

User avatar
lemimi
Forecaster
Forecaster
Posts: 105
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Custom Pages

Post by lemimi » Fri Oct 20, 2023 12:20 pm

Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...

kd7eir
Advisor
Advisor
Posts: 58
Joined: Sun Aug 20, 2017 2:58 pm
Station model: Ecowitt Wittboy
Software: FOSHKplugin

Re: Custom Pages

Post by kd7eir » Fri Oct 20, 2023 2:39 pm

lemimi wrote: Fri Oct 20, 2023 12:20 pm Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
That worked perfectly. Thank you.
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Custom Pages

Post by amonphi » Thu Nov 16, 2023 1:50 pm

lemimi wrote: Fri Oct 20, 2023 12:20 pm Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
Hi @lemimi ,
I'm trying to create the same custom page with the same procedure indicated here but I only get the Namespace of the page I created, the URL I'm interested in viewing is this https://aviationweather.gov/data/metar/ ... ecoded=yes while the html code I inserted is this:

<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf decodificato</h1>
</head>
<body>
<center><object type="text/html" data="https://aviationweather.gov/data/metar/ ... ecoded=yes" width="98%" height="800">
</object>
</center>
</body>
</html>

Can you kindly point out to me where I'm going wrong?

Thank you
Image

alexvanuxem
Forecaster
Forecaster
Posts: 212
Joined: Mon Jan 31, 2022 4:41 pm
Location: Sint-Katelijne-Waver, Belgium
Station model: Davis Vantage Pro 2
Software: Meteobridge
Contact:

Re: Custom Pages

Post by alexvanuxem » Thu Nov 16, 2023 1:58 pm

you can also link that page to a new tab in your menu.

login as admin, in administration page, click on menu,

add a new tab, save, update menu

on the line of the new tab, enter your url and it should work

alex
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Custom Pages

Post by amonphi » Thu Nov 16, 2023 3:09 pm

alexvanuxem wrote: Thu Nov 16, 2023 1:58 pm you can also link that page to a new tab in your menu.

login as admin, in administration page, click on menu,

add a new tab, save, update menu

on the line of the new tab, enter your url and it should work

alex
Hi,
yes yes that is an alternative which, in the end, is also simpler to obtain but, I was interested in understanding the Custom Pages providing HTML code.

Thanks anyway for the suggestion, surely if I can't get the Custom Pages I will adopt that system!
Image

User avatar
lemimi
Forecaster
Forecaster
Posts: 105
Joined: Wed Dec 12, 2018 3:31 pm
Location: France - Normandie
Station model: Brandson 304557
Contact:

Re: Custom Pages

Post by lemimi » Thu Nov 16, 2023 7:16 pm

Hello,
Many sites prohibit their website from opening in an iframe.
Thus, to block the display of a page in a frame or iframe, the HTTP header option (HTTP Header) X-Frame-Options is used.
Four values are possible for X-Frame-Options:
DENY: The page cannot be displayed in a frame, no matter which site tries to load it.
SAMEORIGIN: The page can only be displayed by a site of the same origin.
ALLOW-FROM uri: The page can only be displayed in a frame from the specified origin.
ALLOWALL: The page can be displayed in a frame by all sites. (by default)
Alexvanuxem's solution will open the site in a new tab...
Good evening... Michel

kd7eir
Advisor
Advisor
Posts: 58
Joined: Sun Aug 20, 2017 2:58 pm
Station model: Ecowitt Wittboy
Software: FOSHKplugin

Re: Custom Pages

Post by kd7eir » Thu Nov 16, 2023 9:55 pm

I had the same issue - the page I wanted to link prohibits opening in an iframe. I had to make the URL a menu entry under my Astronomy menu. The link then opens in a new tab.

>>>
>>
#default(moonPhase)
#default(astroCalendar)
#default(sunTimes)
#plugin(sunMoon)
#default(solsticeEquinox)
>>>
>>
#default(dayNight)
#plugin(eclipses)
#plugin(solarSystem)
>>>
>>
#plugin(spaceWeather)
#plugin(nightSky)
Astrospheric Seeing Forecast | https://www.astrospheric.com/?Latitude= ... c=Forecast | mticon-logo | blank



amonphi wrote: Thu Nov 16, 2023 1:50 pm
lemimi wrote: Fri Oct 20, 2023 12:20 pm Hello,
Or perhaps this:
https://lemimi.fr/template/custom/custo ... cod%C3%A9s
If it is this, open your control panel,
Click “Create new custom page”.
Then "New page". In the frame that appears, I enter the following code:
<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf décodés</h1>
</head>
<body>
<center><object type="text/html" data="https://www.metar.lemimi.fr/wx7.php" width="98%" height="800">
</object>
</center>
</body>
</html>
You just have to replace the URL...
Hi @lemimi ,
I'm trying to create the same custom page with the same procedure indicated here but I only get the Namespace of the page I created, the URL I'm interested in viewing is this https://aviationweather.gov/data/metar/ ... ecoded=yes while the html code I inserted is this:

<!DOCTYPE html>
<html>
<head>
<h1>Metar Taf decodificato</h1>
</head>
<body>
<center><object type="text/html" data="https://aviationweather.gov/data/metar/ ... ecoded=yes" width="98%" height="800">
</object>
</center>
</body>
</html>

Can you kindly point out to me where I'm going wrong?

Thank you
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Custom Pages

Post by amonphi » Fri Nov 17, 2023 7:14 am

lemimi wrote: Thu Nov 16, 2023 7:16 pm Hello,
Many sites prohibit their website from opening in an iframe.
Thus, to block the display of a page in a frame or iframe, the HTTP header option (HTTP Header) X-Frame-Options is used.
Four values are possible for X-Frame-Options:
DENY: The page cannot be displayed in a frame, no matter which site tries to load it.
SAMEORIGIN: The page can only be displayed by a site of the same origin.
ALLOW-FROM uri: The page can only be displayed in a frame from the specified origin.
ALLOWALL: The page can be displayed in a frame by all sites. (by default)
Alexvanuxem's solution will open the site in a new tab...
Good evening... Michel
Hi,
thanks for the explanation, unfortunately not knowing the various programming codes and the related problems, often caused by external sources, I thought it was just my problem, but no.

I will follow the alternative solution indicated then.

Thanks again for the confirmation

Pierluigi
Image

User avatar
amonphi
Advisor
Advisor
Posts: 64
Joined: Mon Sep 10, 2018 12:52 pm
Location: Italy
Station model: Ecowitt GW1003
Software: WU
Contact:

Re: Custom Pages

Post by amonphi » Fri Nov 17, 2023 7:42 am

kd7eir wrote: Thu Nov 16, 2023 9:55 pm I had the same issue - the page I wanted to link prohibits opening in an iframe. I had to make the URL a menu entry under my Astronomy menu. The link then opens in a new tab.
Hi,
i understood that the custom page with the indicated code worked for you.

No problem anyway, I use a link via the menu.

Thank you

Pierluigi
Image

Post Reply