Author Topic: Leuven-Template now End-Of-Live, but still supported  (Read 107914 times)

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #30 on: November 19, 2014, 07:29:40 AM »
Does anyone know if I can use Google Drive as a web server for the Leuven Template?
Good morning,
The Drive in Google Drive is a "storage device"
Like a disk-drive  or a network drive.
Not more, not less.  The word Google could be translated by "cloud".
So it is a storage space on the internet which behaves like a local or networked drive.

So the answer is: no.
To run any template or script you need a web-server, where the word "server" is the important part.
Not a networked disc.  The least important part in selectiong a webserver is the size of the allowed data of the webserver. 

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

glenwood

  • Gentle Breeze
  • **
  • Posts: 22
    • DW7759
    • KWAGLENW2
    • Glenwood Washington Weather
  • Station Details: macOS Monterey 12.6.8 Davis Vantage Pro2: WeatherCat
Re: Leuven-Template available for WeatherCat
« Reply #31 on: November 19, 2014, 03:08:48 PM »
OK.  Thanks :)

By the way....my grandmother was Flemish and my grandfather Walloon.  They immigrated to the U.S. in 1923 and they did not get along with each other so well.  Which I guess is not uncommon with those two?

awilltx

  • Guest
Re: Leuven-Template available for WeatherCat and WeatherCat 2.10 beta 2
« Reply #32 on: February 16, 2015, 12:40:00 PM »
Greetings,

I have the following line of code in my tag file which is causing a problem after processing:

Code: [Select]
if ($ws['gustAct'] <= $ws['windAct']) {$ws['gustAct'] = $ws['windAct'];}
The '<=' is being replaced with '&lt;=' and causing a PHP error with an unexpected ';' on my site. The current beta for WeatherCat 2.10 (beta 2) includes the following change:

2. Custom web - occurrences of '<=' and '>=' are now replaced with '&lt;=' and '&gt;='

I've commented out this line for now to keep running, but don't really have a workaround.

Thanks for help or suggestions.

Alan

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat and WeatherCat 2.10 beta 2
« Reply #33 on: February 16, 2015, 12:42:28 PM »
Greetings,

I have the following line of code in my tag file which is causing a problem after processing:

Code: [Select]
if ($ws['gustAct'] <= $ws['windAct']) {$ws['gustAct'] = $ws['windAct'];}
The '<=' is being replaced with '&lt;=' and causing a PHP error with an unexpected ';' on my site. The current beta for WeatherCat 2.10 (beta 2) includes the following change:

2. Custom web - occurrences of '<=' and '>=' are now replaced with '&lt;=' and '&gt;='

I've commented out this line for now to keep running, but don't really have a workaround.

Thanks for help or suggestions.

Alan
Then there will be a lot of errors when processing PHP custom web pages.
So do the developers want us to go back to plain html of txt files?

===

I will try to find a workaround until release 3 of the template.

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

awilltx

  • Guest
Re: Leuven-Template available for WeatherCat
« Reply #34 on: February 16, 2015, 01:34:07 PM »
Quote
hen there will be a lot of errors when processing PHP custom web pages.
So do the developers want us to go back to plain html of txt files?

Wim,

This change only affects the tag file processed by WeatherCat (wsTagsWC.php) - all other PHP files should be fine. So far, the error mentioned above is the only one I have on my site.

Alan

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #35 on: February 16, 2015, 01:51:27 PM »
Quote
hen there will be a lot of errors when processing PHP custom web pages.
So do the developers want us to go back to plain html of txt files?

Wim,

This change only affects the tag file processed by WeatherCat (wsTagsWC.php) - all other PHP files should be fine. So far, the error mentioned above is the only one I have on my site.

Alan
Can you uncomment the gust line and change it to less than (  <  ) as the calculated result is the same.
Code: [Select]
if ($ws['gustAct'] <   $ws['windAct']) {$ws['gustAct'] = $ws['windAct'];}
There are multiple lines in the file with a single  <  or >, and they all should be untouched, I hope.
Could you, please ZIP a copy of wsTagsWC.php and post it (or mail it)?
So I can check the file.

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

awilltx

  • Guest
Re: Leuven-Template available for WeatherCat
« Reply #36 on: February 16, 2015, 02:44:31 PM »
Quote
Could you, please ZIP a copy of wsTagsWC.php and post it (or mail it)?
So I can check the file.

There is only one instance of '<=' or '>=' but here is the file just in case.

Alan

awilltx

  • Guest
Re: Leuven-Template available for WeatherCat
« Reply #37 on: February 16, 2015, 02:51:37 PM »
Quote
Can you uncomment the gust line and change it to less than (  <  ) as the calculated result is the same.

Done and seems to be working fine.

Alan

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #38 on: February 16, 2015, 02:55:24 PM »
Quote
Could you, please ZIP a copy of wsTagsWC.php and post it (or mail it)?
So I can check the file.

There is only one instance of '<=' or '>=' but here is the file just in case.

Alan
Hello Alan,
The file you zipped is the INPUT file for WeatherCat. It is not processed and contains all lines with WeatherCat tags
Code: [Select]
$ws['tempMaxTodayTime'] = wdDate('STAT$TEMPERATURE:MAX:TODAY:TIME$');

What I want to check is the file after being processed by WeatherCat, just to make sure there are no other changes. There are multiple different webservers around so an extra check of the contents after processing can do no harm.

The problem is that it is impossible to look into a php file on a webserver directly as the webserver and / or the browser will process and so change the file.
Example: http://www.eastdallasweather.com/weather2/printSite.php?tags&pw=
All characters seem to be OK, but that is because the &lt; is displayed as a < in a browser

And as you can see in the link to your tags file, there are at least two other errors to take care off.

Wim

Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

awilltx

  • Guest
Re: Leuven-Template available for WeatherCat
« Reply #39 on: February 16, 2015, 03:04:43 PM »
Quote
What I want to check is the file after being processed by WeatherCat, just to make sure there are no other changes. There are multiple different webservers around so an extra check of the contents after processing can do no harm.

Ok, here is the processed file from my webserver.

Alan

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2911
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Leuven-Template available for WeatherCat
« Reply #40 on: February 16, 2015, 05:00:23 PM »
This is a bug in beta 2 - see http://athena.trixology.com/index.php?topic=1592.msg13408#msg13408 - go back to beta 1 for now and I'll get it fixed in the next build.

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #41 on: March 20, 2015, 08:07:19 AM »
HELP needed

I am stuck finding a solution for tags with dates. This is what I have in my tag files:
Code: [Select]
   45 | $ws['tempMinMonthTime'] = date('YmdHis',strtotime('STAT$TEMPERATURE:MIN:THISMONTH:TIME$'));
   46 | $ws['tempMinYearTime'] = date('YmdHis',strtotime('STAT$TEMPERATURE:MIN:THISYEAR:TIME$'));
It is translated  by  WeatherCat into
Code: [Select]
   45 |   45 | $ws['tempMinMonthTime'] = date('YmdHis',strtotime('5 mars 2015 05:43'));
   46 | $ws['tempMinYearTime'] = date('YmdHis',strtotime('1 janv. 2015 07:04'));
Than  translated by the php parser into
Code: [Select]
$ws['tempMinMonthTime'] = '19700101010000';
$ws['tempMinYearTime'] = '19700101010000';

The php scripts expect  "English" month name as in
Code: [Select]
   45 | $ws['tempMinMonthTime'] = date('YmdHis',strtotime('12 Sep 2014 07:00'));translated to
Code: [Select]
$ws['tempMinMonthTime'] = '20140912070000';
I understand that the date-format with the "French" month names comes from the localized settings on the Mac.

QUESTION: Is there a way to instruct WeatherCat to generate dates in either a different format or with English month names?
Without messing up the other WeatherCat output to the users window which should remeain in his/her own language?

I tried to scan the forum and my WeatherCat docs, but as English is not my native language I seem to be overlooking the obvious.

If there is a solution, does it work for the previous release also? A template has to support the latest and previous release of the WeatherProgram.

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
May need some help from Stu. (Re: Leuven-Template available for WeatherCat)
« Reply #42 on: March 20, 2015, 10:55:14 PM »
Dear Wim and WeatherCat tinkerers,

I am stuck finding a solution for tags with dates. This is what I have in my tag files:

. . . . . .


QUESTION: Is there a way to instruct WeatherCat to generate dates in either a different format or with English month names?

Unfortunately, this problem has occurred from time to time.  Apple is very thorough about localization, but that leads to problems when you create extensions to WeatherCat that need to be in another programming environment.

Try sending Stu (Stuart Ball, WeatherCat developer) and email and see if he might have an idea on how to get around the problem within WeatherCat itself.  You can find the emails on this web page:

http://trixology.com/contact-us/

Cheers, Edouard

WCDev

  • WeatherCat Developer
  • Administrator
  • Storm
  • *****
  • Posts: 2911
    • CW9739
    • ISCOTLAN25
    • Trixology
  • Station Details: Main Station: Vantage Pro-2, 24hr fars, solar, soil/leaf station, extra temp stations, no U.V. WeatherLink IP.
Re: Leuven-Template available for WeatherCat
« Reply #43 on: March 21, 2015, 09:01:21 AM »
Theres a tag (ISO8601DATES$) which will cause all dates in STAT$ type tags to output in ISO8601 format - put this somewhere in your file then all dates/times in STAT$ tags will be of the format YYYY-MM-DDThh:mm:ss (thus removing any localisation).

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven-Template available for WeatherCat
« Reply #44 on: March 21, 2015, 09:13:24 AM »
Theres a tag (ISO8601DATES$) which will cause all dates in STAT$ type tags to output in ISO8601 format - put this somewhere in your file then all dates/times in STAT$ tags will be of the format YYYY-MM-DDThh:mm:ss (thus removing any localisation).
Thank you VERY much.
I was not aware of this very usefull tag.

Tested it and all dates (and times) are now "standardized" and ready for clean PHP processing.

I can now remove the extra code for the French users i did put in to circumvent the "problem"

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/