cloudy cloudy

Author Topic: HWS-template (WD34) July version available  (Read 3754 times)

hcorrin and 1 Guest are viewing this topic.

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #120 on: July 10, 2019, 03:08:02 PM »
Problem at EU or on your webserver?

Wim, I'm so sorry - I forgot that I need to add CURLOPT_PROXY to the script, as discussed back in April  #-o

That was such a long time ago. . . :?
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • iOS 12.3.1
  • Safari 12.1.1
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #121 on: July 10, 2019, 03:11:30 PM »
Wim, I'm so sorry - I forgot that I need to add CURLOPT_PROXY to the script, as discussed back in April  #-o

That was such a long time ago. . . :?
Oh, those good old times,  I vaguely remember them,
Have fun,
Wim

Offline ktuley

  • Posts: 8
  • Albuquerque, NM USA
  • OS/Browser:
  • Mac OS X 10.15
  • Safari 13.0
    • Tuley Weather
Re: HWS-template (WD34) July version available
« Reply #122 on: July 10, 2019, 03:39:41 PM »
I think there is a far bigger problem.
...
There is a field 1:17 PM  which has a space in its data and therefor counts as two fields.
It should read 13:17 without a space and all fields would be aligned correctly.
In your file there are 6 time fields with an extra space before the am/pm which makes a lot of values invalid.
You have 64 fields in the file, other WeatherCat users have only 57.


I believe you're correct. I manually edited the data file (realtime.txt), and all values look correct on display.
now to find a way to get WeatherCat to report the times without the space or in 24 hour format. 

I'll continue to look as well..

Thanks!

Ken

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #123 on: July 10, 2019, 03:52:16 PM »
I believe you're correct. I manually edited the data file (realtime.txt), and all values look correct on display.
now to find a way to get WeatherCat to report the times without the space or in 24 hour format. 
I'll continue to look as well.. Thanks!
Ken

I changed the script and tested it with your data, all look OK.
Please check this post https://www.weather-watch.com/smf/index.php/topic,68132.msg548342.html#msg548342

There are more weather-programs which can do  "am pm time" or using a "comma" as a decimal.
So the livedata script will be adapted every time we  find something new. But your "am pm"-problem should be gone when you use the livedata from that message.
Please test it,

Wim 

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #124 on: July 10, 2019, 09:23:12 PM »
Earthquake magnitudes to 2 decimal places are not centred. . .

I've replaced $magnitude with round($magnitude,1) in line 144 of earthquake_c_block.php, think that should work.
It's meant to be fun. . .

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #125 on: July 10, 2019, 10:02:27 PM »
Yes, but I changed the [wrnWarningEU.php] script so it can cope with it.

Working fine now, and working even better since I changed the timezone in line 47 from Europe/Brussels to Europe/London. Now the alarms come in BST instead of CET  :)
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #126 on: July 11, 2019, 07:24:36 AM »
I believe you're correct. I manually edited the data file (realtime.txt), and all values look correct on display.
now to find a way to get WeatherCat to report the times without the space or in 24 hour format. 

I'll continue to look as well..

Thanks!

Ken
You got a PM
Wim

Offline ktuley

  • Posts: 8
  • Albuquerque, NM USA
  • OS/Browser:
  • Mac OS X 10.15
  • Safari 13.0
    • Tuley Weather
Re: HWS-template (WD34) July version available
« Reply #127 on: July 11, 2019, 01:44:47 PM »
1. It seems there is no setting for the time$ format in Weathercat, at least I could not find it. It simply uses the time-format as set on your Mac.
2. I adapted the w34_livedata script to replace the space between "hh:mm" and "AM" or "PM" with a html space character " " When processing the "space separated" realtime.txt it does not split the time fields.

Attached the changed version of livedata.php, can you please test it?

Wim

YES!!! It works!  Thanks for the quick fix.... sorry I was delayed in getting it up and running.

Ken

Offline lstrip

  • Posts: 117
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.100
    • VanCam Weather
Re: HWS-template (WD34) July version available
« Reply #128 on: July 11, 2019, 07:56:51 PM »
Hello
I have the latest July version running at https://vancamweather.com/pwsWD/
All seems well except the current conditions block.
The sky conditions are current with KPDX metar however, I can't figure out where the other data
within the block comes from and how to correct it.
Thanks
Larry

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #129 on: July 11, 2019, 08:14:21 PM »
Hello
I have the latest July version running at https://vancamweather.com/pwsWD/

That pwsWD  is not the July release. Seems to be the April release.
Always do a full install for the new releases, at least until the December release.
Quote
All seems well except the current conditions block.
The sky conditions are current with KPDX metar however, I can't figure out where the other data
within the block comes from and how to correct it.
Thanks
Larry

The current conditions you selected are from your METAR.
The other part of the information comes from the 1 hour DarkSky forecast
As there is no API key the old cached information is shown. And that is in Dutch.
Start easyweather-settings.
Enter a DarkSky API-key
Set the DarkSky language to your language
And the DarkSky forecast will be available for the current conditions block.

If all is OK:
Download the latest version from  http://wd34.weather-template.com/
Rename your current pwsWD website folder to pwsOLD
Upload the newly unzipped pwsWD folder
Copy the w34-settings1.php from pwsOLD to pwsWD
First run pwsWD/easyweathersetup.php  and check all default values, they are blue

Succes, Wim


Offline lstrip

  • Posts: 117
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.100
    • VanCam Weather
Re: HWS-template (WD34) July version available
« Reply #130 on: July 11, 2019, 10:11:34 PM »
Wim
Thanks for the help.
Updated to current version.
2 minor issues.
When I click on "nearby" under current conditions, it shows
EBBR instead of KPDX.
When I click on webcam, the larger display is blank.
Thanks
Larry
https://vancamweather.com/pwsWD/index.php

Offline bitsostring

  • Posts: 935
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #131 on: July 11, 2019, 10:44:58 PM »
When I click on "nearby" under current conditions, it shows
EBBR instead of KPDX.

Showing KPDX now. . . maybe EBBR was cached.
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #132 on: July 12, 2019, 06:29:45 AM »
Wim
. . . shortened . . .
When I click on webcam, the larger display is blank.
ThanksLarry
https://vancamweather.com/pwsWD/index.php
I attach a working version , it stretches the image to use the whole area.
You can customise to either stretch the image or keep height/width ratio

Wim

Offline meteosa

  • Posts: 51
  • Italy
  • OS/Browser:
  • Win NT 10.0
  • Firefox 68.0
    • MeteoSantAngelo.it
Re: HWS-template (WD34) July version available
« Reply #133 on: July 14, 2019, 08:14:15 AM »
Hello,
I noticed this problem with the UV block, with the translation coming out of the rectangle, can something be done?
Thank you
site: https://stazione.meteosantangelo.it/pws07/


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,291
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #134 on: July 14, 2019, 09:13:10 AM »
Hello,
I noticed this problem with the UV block, with the translation coming out of the rectangle, can something be done?
Thank you
site: https://stazione.meteosantangelo.it/pws07/
Although the problems are minimized in this version, there will always be translation texts which do not fit. Weather-texts are often more compact in English then in other languages.  In this block the room for that text is nearly at its maximum.

If you do not want to change the php script yourself, you should change the translated text and remove the word solare
It is for the visitor clear what the values are anyway.

Wim
« Last Edit: July 14, 2019, 09:16:27 AM by wvdkuil »