cloudy cloudy

Author Topic: weather34 for WeatherDisplay (clientraw and WDapi)  (Read 15595 times)

0 Members and 1 Guest are viewing this topic.

Offline Tlowe

  • Posts: 116
  • Minneapolis, MN, US
  • OS/Browser:
  • Win NT 10.0
  • Chrome 73.0.3683.86
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #450 on: April 06, 2019, 01:30:05 PM »
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!!!!!!!!!!!!!!!!!

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

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.86
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #451 on: April 11, 2019, 12:52:36 PM »
The April version is online for download at http://wd34.weather-template.com/
And I also added a new topic to post your questions for this release in.

Wim
« Last Edit: April 11, 2019, 12:55:11 PM by wvdkuil »

Offline bitsostring

  • Posts: 733
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #452 on: April 16, 2019, 11:09:52 AM »
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

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

to
Code: [Select]
<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.

It's meant to be fun. . .

Offline bitsostring

  • Posts: 733
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #453 on: April 16, 2019, 01:30:44 PM »
Yes, it needs more as the scripts do not know about the 'sr' language. It is on the f

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!

It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.86
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #454 on: April 16, 2019, 04:28:21 PM »
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

Offline bitsostring

  • Posts: 733
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #455 on: April 16, 2019, 06:28:40 PM »
The allowed languages : $lngsArr array in w34_common.php

Thanks, Wim. Working now  :)
It's meant to be fun. . .

Offline Bunty

  • Posts: 211
  • Stillwater, OK
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Stillwater Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #456 on: April 17, 2019, 08:19:37 AM »
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.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.86
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #457 on: April 17, 2019, 10:00:06 AM »
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

 

cumulus