Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: WouterK on January 31, 2019, 01:27:58 PM

Title: Weather34 template
Post by: WouterK on January 31, 2019, 01:27:58 PM
Hi,

For anyone who want to use the weather34 template with Weathercat, you can use the Cumules version of the weather34 template:
https://cumuluswiki.wxforum.net/a/HomeWeatherStationTemplate
To make this work I made a WCT_Realtime.txt file which has to be uploaded (by Weathercat) to a location where the template has access to (configuration within the template).

Wouter
Title: Re: Weather34 template
Post by: wvdkuil on January 31, 2019, 02:39:19 PM
Hi,

For anyone who want to use the weather34 template with Weathercat, you can use the Cumules version of the weather34 template:
https://cumuluswiki.wxforum.net/a/HomeWeatherStationTemplate
To make this work I made a WCT_Realtime.txt file which has to be uploaded (by Weathercat) to a location where the template has access to (configuration within the template).

Wouter
Thank you very much.
I assume that it is allowed to use this file also for the user in this topic http://athena.trixology.com/index.php?topic=2900.msg28131#msg28131
He wants to continue to use the HWS-template for WD when he is witching to Weathercat.

I will test it and report back.

Thanks for the good work,
Wim
Title: Re: Weather34 template
Post by: Blicj11 on January 31, 2019, 03:42:08 PM
WouterK:

First, thank you for sharing this with the WeatherCat community. The templates shared here are very helpful, and this is a nice addition to the choices available to WeatherCatters.

Second, although you joined us a couple of months ago, as this is your first post, a sincere welcome to the forum.
Title: Re: Weather34 template
Post by: nowait on January 31, 2019, 11:37:34 PM
Is it possible to have web 2 pages using the WCT Realtime.txt.. One using Saratoga and one using the weather 34 template on another page?  If so , how?
weather 34 is very cool looking?

Thanks,

nowait
Title: Re: Weather34 template
Post by: saratogaWX on February 01, 2019, 05:02:57 AM
You can unpack the weather34 template in a subdirectory on your site, then in the easyweathersetup.php, set the WCT_Realtime.txt link to be with a relative file address like

../WCT_Realtime.txt

(assuming you're uploading the WCT_Realtime.txt to a directory one above the directory containing the weather34 template.

The master for the Cumulus version of the Home Weather Station template is at https://github.com/ktrue/CU-HWS
Title: Re: Weather34 template
Post by: jennajon on February 02, 2019, 12:38:02 PM
WouterK:

First, thank you for sharing this with the WeatherCat community. The templates shared here are very helpful, and this is a nice addition to the choices available to WeatherCatters.

Second, although you joined us a couple of months ago, as this is your first post, a sincere welcome to the forum.

WouterK:  Completely ditto what Blicj11 said....thank you for the template AND welcome to the forums!!!   [woohoo]
Title: Re: Weather34 template
Post by: nowait on February 04, 2019, 01:10:46 AM
Still trying to find the correct weather34 template software to download.  I have yet to find a tar ball/zip file of the software.  I must be looking at the wrong download links.....

Thanks for any additional links or explanation.
nowait
Title: Re: Weather34 template
Post by: jennajon on February 05, 2019, 12:09:21 PM
Still trying to find the correct weather34 template software to download.  I have yet to find a tar ball/zip file of the software.  I must be looking at the wrong download links.....

Thanks for any additional links or explanation.
nowait

I think this is what you are looking for, nowait?

https://cumuluswiki.wxforum.net/a/HomeWeatherStationTemplate

Under the photo...it is the Cumulus version that you are looking for.

Hope this helps?

Jenna [coffee]
Title: Re: Weather34 template
Post by: saratogaWX on February 05, 2019, 07:46:01 PM
Yes, the Cumulus version at https://github.com/ktrue/CU-HWS now supports both WeatherCat and WeeWX in addition to Cumulus.

WeatherCat just needs the Cumulus-like WCT_Realtime.txt file be processed and uploaded by WeatherCat.  You can select WeatherCat in the easyweathersetup.php (and set the livedata file to be WCT_Realtime.txt on your site).  It will even show the 'cat' logo in place of the Cumulus logo on the index.php page when you do that.  There are four of us providing updates to the CU-HWS master distribution at this time.
Title: Re: Weather34 template
Post by: WCDev on February 09, 2019, 09:59:42 PM
Great stuff  [cheer]
Title: Re: Weather34 template
Post by: Tman on February 11, 2019, 06:56:49 AM
Thank you for great template !

I installed it successfully last night. Looks very modern indeed.

Few small observations so far.
* in metric Scandic mode, temperature is rounded bit oddly, high and low are correct but temperature is rounded downwards to xxx.0 (even if correct is xxx.4 or xxx.8 e.g.)
* Daily rain, might have the same issue. Monthly and yearly rain is ok with one digit, but daily is showing data similar manner to temperature.

link to site
https://veikkola-weather.com/weather34/

for comparison
https://veikkola-weather.com

Regards
-Timo
Title: Re: Weather34 template-Issues encountered
Post by: jennajon on February 11, 2019, 04:20:18 PM
Love this template, but currently experiencing issues that are being addressed by KenH (Saratoga):
 
Temperature (F) is NOT correct. I have checked the addon script *WCT_Realtime.txt* and information is both being captured and uploaded.
Incorrect temperature that IS showing (C) matches with current correct F temperature.

DarkSky is reporting in Imperial measurements EXCEPT for snow predictions showing in cm.

Wind Gust data is missing completely; but is showing correctly in Wind Gust section lower on the template.

Temperature Max/Min is incorrect and corresponds to the incorrect temperature data.

Screen shot attached.

Jenna

Title: Re: Weather34 template
Post by: saratogaWX on February 11, 2019, 05:13:05 PM
The temperature problems seem to be caused by the WCT_Realtime.txt template file which has
Code: [Select]
WINDSPEEDUNITS$ C PRESSUREUNITS$ RAINUNITS$ in it which says the temperatures are always in C (even if WeatherCat is using F).

That should be changed to
Code: [Select]
WINDSPEEDUNITS$ TEMPUNITS$ PRESSUREUNITS$ RAINUNITS$ so the units will display correctly.

I've attached the updated WCT_Realtime.txt template file with this correction.

Edit: sorry.. should be TEMPUNITS$ .. corrected.

Edit again.. Also a change to livedata.php is needed as TEMPUNITS$ returns a UTF-8 degree sign in front of the C or F and the template expects only a C or F character.
I've attached that fixed livedata.php (and updated the master distribution)
Title: Re: Weather34 template
Post by: jennajon on February 11, 2019, 05:28:52 PM
I used the new txt file and no changes at all.
So I tested using F instead of C, that did capture the temperatures, but
completely mucked up the Barometric pressures and UV/Solar, Rainfall and Temperatures Max/Min.
So, I will sit back and see if there is another fix from WouterK who is the original creator of the text file.

Many thanks for your kind effort! [cheers1]
Title: Re: Weather34 template
Post by: wvdkuil on February 11, 2019, 06:07:47 PM
I used the new txt file and no changes at all.
So I tested using F instead of C, that did capture the temperatures, but
completely mucked up the Barometric pressures and UV/Solar, Rainfall and Temperatures Max/Min.
So, I will sit back and see if there is another fix from WouterK who is the original creator of the text file.
Many thanks for your kind effort! [cheers1]
Do you have a link to your weather34/ page? And preferably to the uploaded realtime file?
Then I can test your realtime file with a different version of the template: http://wd34.weather-template.com/pwsTEST/?theme=dark
Wim
Title: Re: Weather34 template
Post by: saratogaWX on February 11, 2019, 06:22:05 PM
I used the new txt file and no changes at all.
So I tested using F instead of C, that did capture the temperatures, but
completely mucked up the Barometric pressures and UV/Solar, Rainfall and Temperatures Max/Min.
So, I will sit back and see if there is another fix from WouterK who is the original creator of the text file.

Many thanks for your kind effort! [cheers1]

It really requires two changes.  One to WCT_Realtime.txt (for TEMPUNITS$) and one to livedata.php (to handle the WeatherCat format and remove the UTF-8 degree sign before the C or F.  I've amended the posting above with both fixes.
Title: Re: Weather34 template
Post by: jennajon on February 11, 2019, 06:47:16 PM
 [woohoo] [woohoo]

ITS ALIVE!!!! AND WORKING!!!!

You Sir, are the best ever. Many thanks for your help... [headbang]

Jenna
Title: Re: Weather34 template
Post by: wurzelmac on February 12, 2019, 08:39:27 PM
So, ....

I tried it - I liked it - and finally I used it.

Another nice addition for the live areas of my weathersite (https://wetter.unterwurzacher.at/meteo/pages/station/bulletin.php). Thanks to all people making this possible.

Cheers,
Title: Re: Weather34 template
Post by: Tman on February 12, 2019, 08:40:34 PM
I changed WCT_realtime and livedata.php as advised but still same issue remains. In WCT_realtime temperature is correct but wrongly displayed. Files/snapshot appended. Wonder what am I missing here...

Thanks.

https://veikkola-weather.com/weather34/

-Timo
Title: Re: Weather34 template
Post by: wurzelmac on February 12, 2019, 08:47:21 PM
I changed WCT_realtime and livedata.php as advised but still same issue remains. In WCT_realtime temperature is correct but wrongly displayed. Files/snapshot appended. Wonder what am I missing here...

I am experiencing the same issue. Temp after comma is not displayed correctly.
Title: Re: Weather34 template
Post by: saratogaWX on February 12, 2019, 08:53:07 PM
It appears that your WCT_Realtime.txt is using comma-decimal and not period-decimal numbers.

Code: [Select]
12/02/19 22:45:37 -4,7 92 -5,8 0,0 0 331 0,0 0,0 1011,5 331 0 m/s °C hPa mm 102435,00 0,4 52,8 119,8 3,2 21,2 33 -4,7 -1,4 0,7 01:00 -4,8 22:45 2,68 11:12 8 04:46 1011,5 22:41 994,9 00:02 0 0 1 -4,7 -8.1 0,0 0 0 331 0,0 0 0 0 331 134 Metres -7.4 0 0 0
When Brian (weather34) built the template, I don't think he anticipated comma-decimal formats in the raw-data files, so the livedata.php script doesn't currently handle that.  Some of the displays just use the values in the realtime file .. others are processed by PHP and/or JavaScript to do calculations, and AFAIK, the default is to process numbers only with period-decimal notation.

I'll have to look at the scripts to see if there's an easy fix to allow comma-decimal notation to be used throughout the HWS.
Title: Re: Weather34 template
Post by: Tman on February 12, 2019, 08:58:16 PM
ooo, Finnish number notation with comma. I'll check fast easy fix with Mac terminal.

Thanks !

EDIT: solved, changed terminal separator from , to .

-Timo

PS. I'll provide Finnish translation a bit later, being translated.
Title: Re: Weather34 template
Post by: saratogaWX on February 12, 2019, 09:13:48 PM
I have a fix I'd like you to try to livedata.php

Change
Code: [Select]
if (
($livedataFormat == 'cumulus' ||
$livedataFormat == 'meteobridge' ||
$livedataFormat == 'weewx' ||
$livedataFormat == 'weathercat') && $livedata) {
$file_live = file_get_contents($livedata);
$cumulus = explode(" ", $file_live);
to
Code: [Select]
if (
($livedataFormat == 'cumulus' ||
$livedataFormat == 'meteobridge' ||
$livedataFormat == 'weewx' ||
$livedataFormat == 'weathercat') && $livedata) {
$file_live = file_get_contents($livedata);
if(preg_match('| \d+,\d+ |',$file_live) ) {
// found decimal commas.. replace with decimal periods for math
$file_live = preg_replace('| ([-\+\d]+),(\d+)|is'," $1.$2",$file_live);
}
$cumulus = explode(" ", $file_live);
This is just a cheap way of decimalizing the numbers .. it doesn't address representing the numbers on the page with comma-decimal format (which is a much bigger task).
Title: Re: Weather34 template
Post by: Tman on February 12, 2019, 09:26:16 PM
 [woohoo]

Works like a charm.

-Timo
Title: Re: Weather34 template
Post by: saratogaWX on February 12, 2019, 09:44:43 PM
Great!  I'll push that to the master distribution.  I'll also add in an enhancement request for comma-decimal presentation display formatting to the to-do list.   Please do send along your Suomi translation update :)
Title: Re: Weather34 template
Post by: Tman on February 12, 2019, 09:55:53 PM
Here you go - not perfect but pretty good start. (BTW, in temperature.php windchill, wetbulb and trend are not translated even they have $lang['XXX'] syntax)

-Timo
Title: Re: Weather34 template
Post by: saratogaWX on February 12, 2019, 10:17:57 PM
Thanks!

A slightly longer-term project is to replace the translation structure with one like I use in the Saratoga templates (and Wim uses in the WD-HWS template) -- thats a lot of changes, but I think worth it in the long run.  Much easier to add/change translations as they come along.
Title: Re: Weather34 template - the storm hits...
Post by: nowait on February 13, 2019, 02:42:19 AM
So as I was working to get the cumulus template info into place... I hear a ticka ticka ticka.... crap that's from my hard drive! I quick start a copy of my weather cat drive to my external drive.  Whew!  Unfortunately, I must not have gotten it all....  Looks like I'm missing some of the forecasting info on my site.  I am using the SaratogaWX templates... I think I got most if not all the data copied to my website but evidently not everything as you can see...  http://nowaitweather.com

Suggestions of what is missing/messed up would be a great help.

Next adventure will be to get the Cumulus software installed as a secondary (or primary) page.  One thing at a time.

Thanks in advance for any ideas.

NoWait
Title: Re: Weather34 template
Post by: wurzelmac on February 13, 2019, 07:05:32 AM
I have a fix I'd like you to try to livedata.php

Working - thanks a lot!
Title: Re: Weather34 template - the storm hits...
Post by: saratogaWX on February 13, 2019, 04:37:32 PM
So as I was working to get the cumulus template info into place... I hear a ticka ticka ticka.... crap that's from my hard drive! I quick start a copy of my weather cat drive to my external drive.  Whew!  Unfortunately, I must not have gotten it all....  Looks like I'm missing some of the forecasting info on my site.  I am using the SaratogaWX templates... I think I got most if not all the data copied to my website but evidently not everything as you can see...  http://nowaitweather.com

Suggestions of what is missing/messed up would be a great help.

Next adventure will be to get the Cumulus software installed as a secondary (or primary) page.  One thing at a time.

Thanks in advance for any ideas.

NoWait
Looks like the majority of the Saratoga template is there and operational.  Use http://nowaitweather.com/check-fetch-times.php?show=versions to show what updates are needed to fix remaining issues.

You can always save off copies of Settings.php and flyout-menu.xml, download the Base-USA, WCT-plugin distributions, upload them, then put back the saved copies of Settings.php and flyout-menu.xml and your site will be 'refreshed'.
Title: Re: Weather34 template
Post by: xairbusdriver on February 14, 2019, 01:01:48 AM
Not sure I understand your predicament. Does the Template you use and all it?s files not reside on you local drive(s)?
Title: Re: Weather34 template
Post by: nowait on February 14, 2019, 03:18:06 AM
I downloaded a backup copy of all the software on my Website to a local drive for safe keeping.  I downloaded the updated files based on date from the Saratoga web site so I have files to replace/repair as suggested by saratogaWX.  All I have time for tonight.

Thanks for the help and patience.  Hopefully I can make the updates described by saratogaWX later this week/weekend.

Thanks again everyone.  You're a great bunch.

NoWait
Title: Re: Weather34 template
Post by: xairbusdriver on February 14, 2019, 07:15:27 PM
Quote
downloaded a backup copy of all the software on my Website to a local drive for safe keeping.
And I must assume (hope) you have at least two external drives for backups. One for Time Machine and one for Carbon Copy Cloner or maybe Super Duper. Whatever is on your web space is purely secondary and not to be counted on, in my humble opinion. We have two other computers in the house and they all have copies of my web site and they also have external back up drives connected to them. ThU5:-) You can't have too many backups! [lol]
Title: Re: Weather34 template
Post by: nowait on February 14, 2019, 08:52:56 PM
Backups are crucial.  I'm also saving my pennies for a new iMac :)  I currently have a mac mini (Late 2009) running my WeatherCat site.

Thanks for the pep talk. :)

NoWait
Title: Re: Weather34 template
Post by: nowait on February 15, 2019, 10:04:46 PM
So I've recovered 97% or better of my website.  I really seem to have just 1 item left to repair.
It is the :"unable to load KOFF data RC=302 Object Moved" error that shows up in the "Summary/Temperature section" on the main webpage....

Can someone point me in the right way?

Thanks,

NoWait
Title: Re: Weather34 template
Post by: saratogaWX on February 16, 2019, 03:41:32 AM
So I've recovered 97% or better of my website.  I really seem to have just 1 item left to repair.
It is the :"unable to load KOFF data RC=302 Object Moved" error that shows up in the "Summary/Temperature section" on the main webpage....

Can someone point me in the right way?

Thanks,

NoWait
A bit off topic.. your site is not a weather34-based one, it's a Saratoga template.  But.. run check-fetch-times.php?show=versions on your site.. you have multiple scripts that need updating, including the get-metar-conditions-inc.php which would support the new https-only access to tgftp.nws.noaa.gov that went into effect last week.
Do the updates.. you'll be happier :)