***closed*** weather34 for WeatherDisplay (clientraw and WDapi)

Most “icons” are svg-scripts.

Some are coded as external links

<img style="vertical-align: bottom; width : 60px;" rel="prefetch" src="w34_icons/mc_day.svg" alt="Mostly cloudy">

Other icons are copied as text when a script is run. Most of those svg blocks are in the w34_shared.php script.

 <?php echo $info;?>

Some other grpahs/icons are in the scripts themselves and will be moved to either an icon folder or the shared script in the upcoming releases.
Wim

Anyone know how to set up NWS weather alerts in US.

I’m getting a “Wind Advisory” and the correct alert should be “Flooding”

If I leave blank I get same alert.

http://discourse.weather-watch.com/p/526062
The standard curly/nws scripts are used as downloaded from KenTrue/Saratoga.
I did not modify anything. You do not have to modify the scripts either. You should only set the areas you want the warnings
http://wd34.weather-template.com/beta.php =>
For users from the USA, you have to modify your Curly/NWS weatherwarnings in the pwsTEST/nws-alerts-142/ folder

That is something for the new documentation.

Wim

Ok, I read that. Did not understand. I will look into further on my own.

Ok I got NWS alerts working but when I click on the alert I get this error message:

[i][b]Forbidden
You don’t have permission to access /pws2/nws-alerts-142/nws-summary.php on this server.
Server unable to read htaccess file, denying access to be safe

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.[/b][/i]

I have all permissions set correctly. I run several site from this domain and I haven’t seen this error anywhere else.
Also is there a better thread to post this issue on? I’ve searched the entire forum but not sure best area for this.

With almost all website-providers, the permissions and the owner for the folders and scripts are set correctly when you upload the complete pws folder.

But in your case: https://www.loweprofile.com/pws2/nws-alerts-142/NWS-alerts_read_me.html => not allowed to display either!
That is an html file. So this is a permission error.

  • check the date of the files in that folder. Are they newly created? Or still the ones from the download? The scripts need execution permission.
  • change the permissions of that readme file and see what permission works.
  • check the permissions of the pws2/nws-alerts-142/ with your ftp program and set the permissions for the folder AND the contents to 755.

Success,
Wim

Maybe the moon ring should be the same width as the sun ring - or vice versa?

Thanks Wim, I had tried permissions at 755 on the file mentioned in the error, but not all. I set the folder and all contents to 755, and it works, maps an all.

Thanks!!!

The April version is online for download at http://wd34.weather-template.com/
And I also added a [size=116][b]new topic[/b][/size] to post your questions for this release in.

Wim

Found a Serbian flag sr.svg file (in an old version of w34) to replace the current sr.png. Unzip, add it to /img/flags/ directory and change line 149 of w34_menu.php from


<a href="index.php?lang=sr"><img src="img/flags/sr.png"  title="Serbian"      width="25px" height="15px"></a>&nbsp;

to


<a href="index.php?lang=sr"><img src="img/flags/sr.svg"  title="Serbian"      width="25px" height="25px"></a>&nbsp;

I presume this (or something similar) would work in beta and the new release.

Want to add Torjan’s Norwegian translation to my original version. I’ve added the translation file lang_no.txt to /languages, and the flag link to w34_menu.php, but how many/which other scripts need changing?

This is not an important project, so if you tell me it’s difficult I won’t bother!

The allowed languages : $lngsArr array in w34_common.php

Wim

Thanks, Wim. Working now :slight_smile:

Mine works but with some problems. It does not load when using https://stillwaterweather.com/pwsWD Instead this error page come up which reads: Not Found, The requested URL /pwsWD/.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

But it does load when using https://stillwaterweather.com/pwsWD/index.php

Another thing, in menu, I can’t select between dark and light theme without getting the same error. Same with the C button in the upper right corner.

That message is a standard “Apache” message
It is not normal that Apache is trying to load a " .php" script.

Check your cPanel settings or check with your provider.
Normally Apache loads index.php or index.html or index.htm when no script or file is mentioned.

Wim

Does this version of W34 support the extra charts page? It was named “wxcharts.php” in the original W34. I have searched but can’t find any info on the previous extra page of charts.

There has been numerous extra pages and scripts. Some are added. such as WXSIM.

Please add your “requests for enhancements” to the “wish-list” topic, and include some sort of screenshot.
I am fairly new to these scripts and have no history of all extra’s from the past.
Wim

http://www.weather-display.com/downloadfiles/wxcharts.zip

Hi,

Having a problem with my April rain popup date. Today is saying it is Friday the 24th, when it is Tues. How can this be fixed? Thanks.


Do you have a link / URL to your pwsWD site? I need to access the site to check what the problem could be.

I attach the current version of the script, just to test if it removes the problem.

  1. make a copy of your website version of w34_graph_xx.php
  2. unzip attachment
  3. upload the un-zipped version of w34_graph_xx.php replacing the one with the problem.

Wim


w34_graph_xx.php.zip (6.24 KB)