Author Topic: Weather Template and scripts from Leuven/Belgium/Europe  (Read 165991 times)

0 Members and 1 Guest are viewing this topic.

Offline blainec

  • Member
  • *
  • Posts: 44
    • Weather YYC
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #125 on: November 10, 2013, 12:39:26 AM »
I am trying to get the wxreports scripts to work, but I can not get them to work with the template. They will work on their own though.
In the template the data will not display and if I select a different year, it just pushes me to the home page.

Anyone got any ideas?

Stand alone page is here   http://wxcalgary.com/weather2/wxreports/wxbarodetail.php
« Last Edit: November 10, 2013, 12:59:40 AM by blainec »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #126 on: November 10, 2013, 04:54:09 AM »
I am trying to get the wxreports scripts to work, but I can not get them to work with the template. They will work on their own though.
In the template the data will not display and if I select a different year, it just pushes me to the home page.

Anyone got any ideas?

Stand alone page is here   http://wxcalgary.com/weather2/wxreports/wxbarodetail.php
The standalone page works well on its own. It adepts to the wide of the page. The reason for the template startpage to be displayed is in the handling of the form / go button.

For the time being I would advise to use
1. a newpage form the template (weather2/inc/wsNewPage.php)
2. make a copy of it and rename that as wsreportBaro.php
3. put it in the menufile at the place you wish
4. test if an empty page is displayed if you select it in the menu.
===
Now adapt the  wsreportBaro.php page you just copied and use the iFrame example in that page. The other exmple code (HTML and PHP) should be removed.The width of the iFrame can be set to 100%, the hight at 1100 pixels as the wxbarodetail.php page is that now.
It is a fast solution for pages that do not need an integration (of data or other scripts) in the Leuven Template.
Succes, Wim

P.S. After the december release I will download those scripts and if integration of the scripts add value to both, try to integrate them more closely.
 
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline blainec

  • Member
  • *
  • Posts: 44
    • Weather YYC
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #127 on: November 10, 2013, 11:39:56 PM »
I was hoping to integrate them, but the frame option works for now

Offline metaija1

  • Member
  • *
  • Posts: 1
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #128 on: November 26, 2013, 01:08:35 AM »
I have a problem with script AjaxDashboard ( WL is used )  " it's always showing last updated: the date is always   01:01:1970  and time always  01:01 .
Thanks for your help

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #129 on: November 26, 2013, 08:13:21 AM »
I have a problem with script AjaxDashboard ( WL is used )  " it's always showing last updated: the date is always   01:01:1970  and time always  01:01 .
Thanks for your help
This is the page were one can inspect the contents of the tags as uploaded by WeatherLink and processed by the template. http://www.meteovouvry.ch/weather2/index.php?p=93-4/
All your date fields are in error. The date fields are in an unexpected format.
The program expected the fields
<!--stationDate--> <!--stationTime--> in a certain format, the result is normally
12-09-13 16:02
It seems that your Weatherlink is returning the date time fields a different format then I encouterd until now.
12.09.13 16:02 So a point and not a dash.
Please change line 22 in todayTags.htx and ydayTags.htx in your Weatherlink webfiles folder from
Code: [Select]
$from = array ('-',':'); to
Code: [Select]
$from = array ('-',':','.');The uploads after the change will be correctly processed.
I attached an updated version of this script also.

Wim
« Last Edit: November 26, 2013, 08:42:58 AM by wvdkuil »
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #130 on: November 29, 2013, 07:11:43 AM »
A new version of Ken True "Global Mesonet Page" is available.
Discussion: http://www.wxforum.net/index.php?topic=20865.0
For users of the Leuven-Template I adapted the scripts to run nicely inside this template environment including multi-languge support.

Download http://leuven-template.eu/downloads/global_map.zip

Succes, Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4935
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #131 on: November 29, 2013, 02:23:59 PM »
I have downloaded and installed this but must have another mistake somewhere http://www.komokaweather.com/weather2/glo/wxglobal.php
replaced former /glo with new /glo folder.  I have also tried with wxglobal.php in the /weather2 folder but no success.  Should any of the files in /glo be moved up in the /weather2 folder, or other setting changes?

Paul

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #132 on: November 29, 2013, 02:40:31 PM »
I have downloaded and installed this but must have another mistake somewhere http://www.komokaweather.com/weather2/glo/wxglobal.php
replaced former /glo with new /glo folder.  I have also tried with wxglobal.php in the /weather2 folder but no success.  Should any of the files in /glo be moved up in the /weather2 folder, or other setting changes?

Paul
the template works with a menu.
http://www.komokaweather.com/weather2/

If you select the page in the menu => mesonets => global
You go to page
http://www.komokaweather.com/weather2/index.php?p=33
Which displays the global map correctly.
============
The saratoga template works with scriptnames, the Leuven-Template with numbers.

Succes, wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline jerbo

  • Davis Vantage Pro2 with 24 Hour FARS located in the West End of Punxsutawney, PA - The Weather Capital of the World.
  • Member
  • *
  • Posts: 31
    • Punxsutawney West End Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #133 on: November 29, 2013, 02:54:00 PM »
wim,
 
 I have installed your new version Global Mesonet Page at http://www.weatheranmore.com/weather/index.php?p=32.
It is working, but two things I noticed were, the img src for the cluster marker at the bottom is from your website.
I had to change the wxglobal.html file to my source to show the image. Also, the w3.org html5 validator has two errors.
Bad value Pragma for attribute http-equiv on element meta. <meta http-equiv="Pragma" content="no-cache" />
Bad value Cache-Control for attribute http-equiv on element meta. <meta http-equiv="Cache-Control" content="no-cache" />
 
                                                 Jerbo

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4935
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #134 on: November 29, 2013, 02:54:41 PM »
Thanks again Wim, so it has been there all along :oops:

Now to fix the little image problem.
Paul

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #135 on: November 29, 2013, 03:42:32 PM »
. . .
Now to fix the little image problem.
Paul
wim,  I have installed your new version Global Mesonet Page at http://www.weatheranmore.com/weather/index.php?p=32.
It is working, but two things I noticed were, the img src for the cluster marker at the bottom is from your website.
I had to change the wxglobal.html file to my source to show the image. Also, the w3.org html5 validator has two errors.
Bad value Pragma for attribute http-equiv on element meta. <meta http-equiv="Pragma" content="no-cache" />
Bad value Cache-Control for attribute http-equiv on element meta. <meta http-equiv="Cache-Control" content="no-cache" />
 Jerbo
Can you please do a new download and replace the scripts in the glo folder.
There appaeared to be two errors: 1 the image has an incorrect address and the cache is not correctly read.
These two errors are solved in the current version.
I will look tomorrow (as my timezone is CET) into the  w3.org html5 validator .
I forgot to do that. So thanks Jerbo for testing it.
Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4935
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #136 on: November 29, 2013, 05:55:39 PM »
I have replaced with the new download and the image issue is gone.

Thanks,
Paul

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #137 on: December 04, 2013, 09:46:07 AM »
The beta version for the Dec 31 release is online for:
Whats New:
1.  Adaptable startpage. In the current release the startpage (menu choice "current weather") is adaptable on a few points such as which forecaster, yes or no soil info, and an extra YoWindow gadget.

Release 2.40 offers more and different components that can be selected and put in any order om the startpage.
The menu choice to view current available components is the second one on both demo sites.

2.  WiKi. The documentation is no longer included in the download. All current release pdf-documents could already be read on-line. I am nearly finished rewriting everything and putting it in a  WiKI: http://wiki.leuven-template.eu/doku.php   And yes, it is draft typing. But before the end of December I have everything spell-checked. And as Dutch is my native language please be kind about the English version as long as it is understandable.  In future releases the WiKi can be downloaded also. It does not need SQL. 

3.  Test of support ticketing system.On the demo- and WiKi-sites a pop-up support form is available if things are still unclear. Also the http://leuven-template.eu/?lang=en website is created to improve the response times and gather all  support type activities in one place . It also uses a different provider as the one for the demo-sites.

====

For those who want to start testing the Leuven-Template, the download is "finished". So better use the 2.4b release if you start from scratch.

In January I will wite a conversion doc for current 2.3x users.

Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2224
    • http://www.cnyweather.com
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #138 on: December 05, 2013, 07:32:27 AM »
I cant seem to get either of those beta example links to open Wim
Tony




Offline PaulMy

  • Forecaster
  • *****
  • Posts: 4935
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #139 on: December 05, 2013, 08:53:51 AM »
I can open them both and from home and at work computers.

Hope to test it on the weekend.

Paul


Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2224
    • http://www.cnyweather.com
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #140 on: December 05, 2013, 11:13:33 AM »
Hmmm.

I get a Resolving Host in the taskbar. Just tried at work too. Maybe a Time Warner thing?  ](*,)
Tony




Offline BfdWx

  • WxElement panel
  • Senior Contributor
  • *****
  • Posts: 230
    • http://southernctwx.com
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #141 on: December 05, 2013, 11:39:04 AM »
No problem here either Tony! Take a look at my site, I have the template running, it's about 90% complete. The new version is running under the Test Page tab, although currently our local radar is down for maintenance.


Offline CNYWeather

  • Forecaster
  • *****
  • Posts: 2224
    • http://www.cnyweather.com
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #142 on: December 05, 2013, 12:34:54 PM »
WOW, that really looks good. I've been thinking of a change. Wonder if I could squeeze the Alternative Dashboard in there?

I have a project now.  :grin:


I even tried with IE (YUK) and couldnt get to those beta pages either.
Tony




Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #143 on: December 05, 2013, 03:21:22 PM »
WOW, that really looks good. I've been thinking of a change. Wonder if I could squeeze the Alternative Dashboard in there?

I have a project now.  :grin:


I even tried with IE (YUK) and couldnt get to those beta pages either.
i am in NYC myself at the moment and i can not reach them myself. Of three different hosters two are not reachable. There is a storm, but how that can influence my sites, ?
The wiki can be reached. Leuven-template.eu

But not my test sites at www.weerstation-leuven.be. And not my and my daughters production sites.
I hope things clear out soon,
Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline BfdWx

  • WxElement panel
  • Senior Contributor
  • *****
  • Posts: 230
    • http://southernctwx.com
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #144 on: December 05, 2013, 03:33:31 PM »
Quote
i am in NYC myself

Only about an hour away from me Wim.....are you enjoying the fog?

Jack

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #145 on: December 06, 2013, 09:03:17 AM »
Quote
i am in NYC myself

Only about an hour away from me Wim.....are you enjoying the fog?

Jack
the problems yesterday were caused by a DDOS attack on the DNS server were i bought my .be domains. Thats why my websites at two unrelated providers could not be reached. The attack has stopped and everything is working again.
@jack. The weather was forecasted to be cold and dry, so it was quit a surprise landing with 14 degrees C. Especially as we had only warm winter clothes with us.  But that is why the weather is such a nice hobby,
Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline stewart45

  • Contributor
  • ***
  • Posts: 123
    • Newlands Weather Station
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #146 on: December 14, 2013, 12:16:36 PM »
excellent website templates, slowly getting my head around everything and still in the experimental stage have a small problem with a error message appearing on the main screen my knowledge of programming is a bit basic so if anybody can help would be appreciated

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1793
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #147 on: December 14, 2013, 12:21:15 PM »
excellent website templates, slowly getting my head around everything and still in the experimental stage have a small problem with a error message appearing on the main screen my knowledge of programming is a bit basic so if anybody can help would be appreciated

Two helpfull remarks (I hope):
1. This is a warning which should disappear as you are finished with testing and setting debug mode off.
2. If you go to the line number mentioned and replace the word split  with explode the warning will disappear also.

The latest releases of PHP do not like the split function anymore. But the old (as in a few years) scripts sometimes still contain this instruction.

If you run into any problem, let me know and I will post a adapted version of this script.
Succes, Wim
Support for Leuven-Template & Scripts  at this forum via https://support.leuven-template.eu/
Support for the PWS_Dashboard  pwsdashboard.com

Offline stewart45

  • Contributor
  • ***
  • Posts: 123
    • Newlands Weather Station
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #148 on: December 14, 2013, 01:11:13 PM »
excellent problem solved, another small one I just noticed, yowindow has the current time ( to the right of Live) shown as 1 hour ahead of what we are, where would it be picking this up from, thanks for the quick response

Offline George Richardson

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 1391
    • Smith Mountain Lake Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #149 on: December 14, 2013, 03:35:00 PM »
"yowindow has the current time ( to the right of Live) shown as 1 hour ahead of what we are, where would it be picking this up from,"

Possibly from Wxsim still having Daylight Savings Time checked.

FWIW

George

 

anything