cloudy cloudy

Author Topic: HWS-template (WD34 / weather34) April release  (Read 674 times)

0 Members and 1 Guest are viewing this topic.

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
HWS-template (WD34 / weather34) April release
« on: April 11, 2019, 12:39:28 PM »
Please post all remarks and questions about the normal April release in this topic.
For ideas about new functionality, use this "wish-list topic"

« Last Edit: April 11, 2019, 12:53:26 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: HWS-template (WD34 / weather34) April release
« Reply #1 on: April 11, 2019, 07:31:21 PM »
Installed the April release, saved easyweathersetup and got the expected message: "Unable to open w34_settings1.php file check file permissions !"

With every version I have had to alter the permission for this file on my server, but this time there is no file called w34_settings1.php?
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: HWS-template (WD34 / weather34) April release
« Reply #2 on: April 11, 2019, 08:08:40 PM »
Installed the April release, saved easyweathersetup and got the expected message: "Unable to open w34_settings1.php file check file permissions !"

With every version I have had to alter the permission for this file on my server, but this time there is no file called w34_settings1.php?
You should definitely not copy scripts from one version to another. Never, until the December version.

Only after the basic scripts all work, you can copy your own scripts to the new version.

The fresh install will start index.php => detect there is no settings1 and will start the easyweather setup.
There is no settings1 file as there are new  / rearranged and renamed settings which need their default values.
If that not works, please post the URL so that i can take a look.

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: HWS-template (WD34 / weather34) April release
« Reply #3 on: April 11, 2019, 09:00:25 PM »
You should definitely not copy scripts from one version to another. Never, until the December version.

I did not copy anything, I just uploaded the whole new unzipped pwsWD directory and went to /pwsWD/index.php.

Quote
The fresh install will start index.php => detect there is no settings1 and will start the easyweather setup.

It did start easyweather. I filled in a few things and tried to save the configuration, which is when I got the error message shown. That is the only reason I was looking for w34_settings1.php.

Quote
There is no settings1 file as there are new  / rearranged and renamed settings which need their default values.

That's what saving the easyweather settings is supposed to do, but I can't save it until I can change the permissions. Catch 22.

Quote
If that not works, please post the URL so that i can take a look.

I'll try again tomorrow and let you know.

EDIT: OK, couldn't wait so I tried again, same result. For URL, go to my existing web page (left) and change /pws to /pwsWD.

« Last Edit: April 11, 2019, 09:42:56 PM by bitsostring »
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: HWS-template (WD34 / weather34) April release
« Reply #4 on: April 12, 2019, 07:01:09 AM »
I did not copy anything, I just uploaded the whole new unzipped pwsWD directory and went to /pwsWD/index.php.

It did start easyweather. I filled in a few things and tried to save the configuration, which is when I got the error message shown. That is the only reason I was looking for w34_settings1.php.

That's what saving the easyweather settings is supposed to do, but I can't save it until I can change the permissions. Catch 22.

I'll try again tomorrow and let you know.

EDIT: OK, couldn't wait so I tried again, same result. For URL, go to my existing web page (left) and change /pws to /pwsWD.
OK, I tried, same result.

Very strange webserver which does not allow Apache to write new files. I wonder if the caching of forecast files will work?
Code: [Select]
        $fp = fopen($sttngs_fl, "w") or die("Unable to open w34_settings1.php file check file permissions !"); https://www.php.net/manual/en/function.fopen.php
Quote
'w'   Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
I attach an un-used w34_settings1.php
Can you please test:
1. Unzip => upload to server/pwsWD/
2. check with your ftp program what the permissions are, and make a note of it
3. go to http://swanston.maui.co.uk/pwsWD/_test.php , this will start the main screen => go to settings use default password
4. do not change anything, only go to the green box and save.

If that not work, make a note of the permissions again and reset the permissions of w34_settings1.php  to 755

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: HWS-template (WD34 / weather34) April release
« Reply #5 on: April 12, 2019, 08:45:18 AM »
OK, I tried, same result.

I attach an un-used w34_settings1.php

No attachment?
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: HWS-template (WD34 / weather34) April release
« Reply #6 on: April 12, 2019, 08:57:45 AM »

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: HWS-template (WD34 / weather34) April release
« Reply #7 on: April 12, 2019, 09:10:32 AM »
:oops:

Thanks. I doubt if the first test will work because the server is not allowed to write to any file that I upload until the permissions are changed. . . but I will follow instructions and report back  :)
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: HWS-template (WD34 / weather34) April release
« Reply #8 on: April 12, 2019, 09:12:50 AM »
Thanks. I doubt if the first test will work because the server is not allowed to write to any file that I upload until the permissions are changed. . . but I will follow instructions and report back  :)
Sorry, but what kind of server is that?
Who is your provider?

Wim

Offline bitsostring

  • Posts: 733
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 73.0.3683.103
    • Home Weather Station
Re: HWS-template (WD34 / weather34) April release
« Reply #9 on: April 12, 2019, 11:12:41 AM »
Who is your provider?

He's family, and I have to do what I'm told  :)

Anyway, first test failed as expected so I have changed the permissions for w34_settings1.php and that seems fine. Now I just have to add a curlopt_proxy line to w34_load_files.php and I should be good to go.

Do I need to check anything re forecast caches?

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: HWS-template (WD34 / weather34) April release
« Reply #10 on: April 12, 2019, 11:21:16 AM »
He's family, and I have to do what I'm told  :)

Anyway, first test failed as expected so I have changed the permissions for w34_settings1.php and that seems fine. Now I just have to add a curlopt_proxy line to w34_load_files.php and I should be good to go.

Do I need to check anything re forecast caches?
All retrieved data from WU (graphs) Darksky (forecast)  metoalarm (weatheralarms) and so on are stored in the jsondata/ and charswudata/ folder.
It is not known on forehand what the filenames are as sometimes a code or a language is inside the name of the file.
Examples: wufct_en_s.txt   warningNL014 

With normal providers one can give the "folder and its contents" the permission "to be written".

succes, 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: HWS-template (WD34 / weather34) April release
« Reply #11 on: April 12, 2019, 06:20:20 PM »
Now I just have to add a curlopt_proxy line to w34_load_files.php and I should be good to go.

Well, that didn't work: none of the outside files are being loaded. Guess I'll have to ask my provider again. . .

EDIT: But changing the permissions for /chartswudata and /jsondata did  :D

Files were loaded but couldn't be saved. All seems OK now. Thanks for the advice, Wim.
« Last Edit: April 12, 2019, 08:55:59 PM by bitsostring »
It's meant to be fun. . .

Offline SandhurstWX

  • Ian
  • Posts: 393
  • Another satisfied WD user!
  • Royal County of Berkshire, UK
  • OS/Browser:
  • Android 6.0
  • Chrome 73.0.3683.90
    • Sandhurst Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #12 on: April 12, 2019, 09:00:21 PM »
All working okay for me, https://www.sandhurstweather.org.uk/pwsWD/index.php.

Thanks Win.

Offline drparker151

  • Posts: 18
  • Chicago Area
  • OS/Browser:
  • Win NT 10.0
  • Chrome 73.0.3683.103
    • Display Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #13 on: April 13, 2019, 05:48:50 AM »
Wow I love this thanks for putting together.

I've got one question and wonder what I'm doing wrong.  I get a 24 hour clock displayed even though I've picked 12 hour in the display and set times to g:i:s a.

In the attached screen shot you can see 24 hour time in the clock box, however the temp box is picking up the correct format.


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: HWS-template (WD34 / weather34) April release
« Reply #14 on: April 13, 2019, 09:43:32 AM »
I get a 24 hour clock displayed even though I've picked 12 hour in the display and set times to g:i:s a.

See here: https://www.weather-watch.com/smf/index.php/topic,67675.msg544892.html#msg544892
It's meant to be fun. . .

 

cumulus