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

0 Members and 1 Guest are viewing this topic.

Offline Dr Obbins

  • Forecaster
  • *****
  • Posts: 1152
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #100 on: August 18, 2013, 09:22:36 AM »
Two questions:
1.It looks like the background changes from night to day at 8:00am. Where is the setting for this?
2. I would like to use a live webcam for the background during the day and the stock background pics at night. Where is the part of the script that sets the backgrounds? I would like to insert this script.
Website
Code: [Select]
<?php 
// ~15 minutes before sunrise to ~15 minutes after sunset

$cut_off '15';  // cut off time in minutes

$day_image "webcamimage-ih.php";       // filename to use for the day time image
$night_image "webcamimage-ih2.php";   // filename of use for the night time image
$mysunrise_time $sunrise ;          // tag for sunrise
$mysunset_time $sunset ;            // tag for sunset
date_default_timezone_set('America/Chicago');

####   END OF SETTINGS   ####

$cot $cut_off 60;                    // cut off time in seconds
$et date("U");                         // current time in seconds since the Unix Epoch 
$srt strtotime($mysunrise_time)-$cot;  // get time stamp for sunrise minus cut off time
$sst strtotime($mysunset_time)+$cot;   // get time stamp for sunset plus cut off time

$outputImage $night_image;             // set night image as default
if($et >= $srt and $et <= $sst) {        // IF the current time is during day time span
  
$outputImage $day_image;             //   change the image to the day image
}
?>

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #101 on: August 18, 2013, 10:23:34 AM »
Two questions:
1.It looks like the background changes from night to day at 8:00am. Where is the setting for this?
2. I would like to use a live webcam for the background during the day and the stock background pics at night. Where is the part of the script that sets the backgrounds? I would like to insert this script.
Website
Code: [Select]
<?php 
// ~15 minutes before sunrise to ~15 minutes after sunset

$cut_off '15';  // cut off time in minutes

$day_image "webcamimage-ih.php";       // filename to use for the day time image
$night_image "webcamimage-ih2.php";   // filename of use for the night time image
$mysunrise_time $sunrise ;          // tag for sunrise
$mysunset_time $sunset ;            // tag for sunset
date_default_timezone_set('America/Chicago');

####   END OF SETTINGS   ####

$cot $cut_off 60;                    // cut off time in seconds
$et date("U");                         // current time in seconds since the Unix Epoch 
$srt strtotime($mysunrise_time)-$cot;  // get time stamp for sunrise minus cut off time
$sst strtotime($mysunset_time)+$cot;   // get time stamp for sunset plus cut off time

$outputImage $night_image;             // set night image as default
if($et >= $srt and $et <= $sst) {        // IF the current time is during day time span
  
$outputImage $day_image;             //   change the image to the day image
}
?>
The script is weather2/index.php lines 277 --
First in the body-class the default colors are set.
Then if a jpg with the correct name exist that is used as a back-ground picture (sort of).
Code: [Select]
echo '<body class="'.$headerClass.'">'.PHP_EOL;
#-----------------------------------------------------------------------------------------
# Now we set a picture as background based on the  settings
#-----------------------------------------------------------------------------------------
$fileString='img/background-'.$headerClass.'.jpg';
if (file_exists($fileString)) {
echo '<img src="'.$fileString.'" class="bg" alt="" />'.PHP_EOL;
}
The switch from day to night is based on sunset and sunrise time and are not fixed but calculated equivalent to your calcs..
So I think you do not need the first part of your code.
In script wsDataGet.php the lines 53-57 set the description of day or night you could test.
Code: [Select]
if (($nowInt >= $sunriseInt) && ($nowInt <= $sunsetInt)) {
$dayNight = 'daylight';
} else {
$dayNight = 'nighttime';
}
Hope this helps with your idea,
Wim

Offline FinPat

  • Member
  • *
  • Posts: 3
    • Patte's Homepage
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #102 on: September 12, 2013, 11:20:23 AM »
Hello

I do not know if this is correct place to ask for some help.
But i have a problem like this on my website:

.. Notice: Undefined index: lastRainTip in /home2/int47017/public_html/weather2/inc/trends.php on line 250
It is Cumulus driven and what i find in cumulus tags it would be lastRainTipISO, but even if i change to this it wont work still same error.

Website location
http://www.pvuorio.net/weather2/index.php?p=61

Trying to understand where all the different indexes comes from. Havent really figured it out yet.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #103 on: September 12, 2013, 11:49:35 AM »
Hello

I do not know if this is correct place to ask for some help.
But i have a problem like this on my website:

.. Notice: Undefined index: lastRainTip in /home2/int47017/public_html/weather2/inc/trends.php on line 250
It is Cumulus driven and what i find in cumulus tags it would be lastRainTipISO, but even if i change to this it wont work still same error.

Website location
http://www.pvuorio.net/weather2/index.php?p=61

I enclose a replacement for tags.txt which includes the needed tags for cumulus

Quote
Trying to understand where all the different indexes comes from. Havent really figured it out yet.
If you mean thiose numbers after index.php like p=61?
Those are the numbers in the menu system which points to the scripts. A description can be found at:
http://www.weerstation-leuven.be/_template2/documentation/menu_en.pdf

Also, for your comfort, change the line in index.php (around line 30) which read
Code: [Select]
$lang = 'nl'; to
Code: [Select]
$lang = 'en';
In a few days (next week) a fresh new version of the template will be available for download.
Those irritating errors should then be gone.

You can also e-mail me if you have more questions.

Wim

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #104 on: September 15, 2013, 05:19:44 AM »
A new version 2.30 is ready to be downloaded.
http://www.weerstation-leuven.be/_template2/template.php?lang=en

The North American test site http://www.weerstation-leuven.be/northam/ runs already with the new version.

Weather programs supported now also include consolewd for the rapsberryPI.

The European and North American version are integrated in one set of scripts.
NOAA is fully supported and all remarks from this topic are taken care of, I think.

As always, send me a message here on the board or an email if you have difficulties implementing or if you find things in error or which should be improved.

Next step is finding the correct information (forecasts and warnings in xml format) for the Canadian users and writing the scripts for that.

Wim

Offline el-rain

  • Member
  • *
  • Posts: 6
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #105 on: September 25, 2013, 08:40:27 AM »
Hi,
I currently test a bit with those Scripts to bring my weather station data on line, but have a problem with the steelseries Gauges, it always show the message that the Tag file is broken.

Setup is a Davia VP connected via Meteohub. I gone multiple times through the install documents to make sure I have no error in the setup but still same problem.
When I compare my realtimeTags file with others which use as well meteohub the only I see is that the UV and Solar values still show the [value_name] which make sense to me as I don't have a UV or Solar sensor installed.

wetter2.dg7yeo.de

I would be happy for any hint what I can check to find out where the error is and how to fix this.

El

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #106 on: September 25, 2013, 09:09:12 AM »
Hi,
I currently test a bit with those Scripts to bring my weather station data on line, but have a problem with the steelseries Gauges, it always show the message that the Tag file is broken.

Setup is a Davia VP connected via Meteohub. I gone multiple times through the install documents to make sure I have no error in the setup but still same problem.
When I compare my realtimeTags file with others which use as well meteohub the only I see is that the UV and Solar values still show the [value_name] which make sense to me as I don't have a UV or Solar sensor installed.

wetter2.dg7yeo.de

I would be happy for any hint what I can check to find out where the error is and how to fix this.

El
I can send you the changed script to get rid of this error.
Please send me an email -adress.
Thanks, Wim

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #107 on: October 06, 2013, 03:56:14 AM »
A new version 2.30 is ready to be downloaded.
http://www.weerstation-leuven.be/_template2/template.php?lang=en

The North American test site http://www.weerstation-leuven.be/northam/ runs already with the new version.

Weather programs supported now also include consolewd for the rapsberryPI.

The European and North American version are integrated in one set of scripts.
NOAA is fully supported and all remarks from this topic are taken care of, I think.

As always, send me a message here on the board or an email if you have difficulties implementing or if you find things in error or which should be improved.

Next step is finding the correct information (forecasts and warnings in xml format) for the Canadian users and writing the scripts for that.

Wim
The Canadian version is operational now at http://www.weerstation-leuven.be/weatherCanada/

Download: The download will be ready from 2013-10-23, the upcoming two weeks will be used for changes to the documentation and some more testing of the EC-warnings (if there are any) and a one week vacation to beautiful Quebec, CA.

Additions on top of the needed localization of maps a.s.o.:
1. The Environment Canada forecast and warnings (using the xml feed)
2. The Air Quality Health Index on the front page (no xml so the html pages are scanned)

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0.

Please let me know if you find things in error or which should be improved.

Wim

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5530
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #108 on: October 06, 2013, 11:18:48 AM »
Hi Wim,
Very well done.  I look forward to downloading and giving it a try.

and enjoy your vacation,

Paul

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #109 on: October 22, 2013, 09:59:15 AM »
The updated 2.31 release now contains the Canadian forecast and warning scripts.
Also a AQHI (air quality health index) is added.
Downloads as usual from www.weerstation-leuven.be
Succes, Wim

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5530
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #110 on: October 22, 2013, 10:57:49 PM »
Hi Wim,
I have downloaded and tried to unzip but that failed with an Error 0x80070057 "The parameter is incorrect".  It stops during the unzip at "mobi" and a Retry then continues, but fails again later on with the similar file, and continues with another Retry and then at the end can't complete the unzip. Appears to be mobi file.  I have tried 3 separate times and each time the same Errors and failure.

Paul

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #111 on: October 23, 2013, 01:40:29 AM »
Hi Wim,
I have downloaded and tried to unzip but that failed with an Error 0x80070057 "The parameter is incorrect".  It stops during the unzip at "mobi" and a Retry then continues, but fails again later on with the similar file, and continues with another Retry and then at the end can't complete the unzip. Appears to be mobi file.  I have tried 3 separate times and each time the same Errors and failure.

Paul
I assume something went wrong with the upload or download to your PC/Mac.
Discard the current zip and the unpacked folder.
Do the download again and try the unzip.
The files are stored at GoDaddy which seems to be very busy when it is day-time/evening for the Amaricans.

I uploaded/downloaded this morning the zip again and as tested:
1. it can be unzipped without errors, albeit on a Mac. Test it later today on a Windows PC.  
2. The file size before unzip is: 38.541.381 bytes (38,5 MB op schijf)
3. The unzipped folder: 50.490.199 bytes (73,2 MB op schijf) voor 3.990 onderdelen
       This description is copied from the finder and is in Dutch: onderdelen == parts  schijf == disc
4. No differences can be found between the downloaded/unzipped one and the orginal folder
       50.490.199 bytes (73,2 MB op schijf) voor 3.990 onderdelen
I will in the future make and supply a md5 hash so users can check the validity of the downloaded file.
Wim


SORRY: this zip is not downloadable under windows 7 at this moment  2013-okt-23  09:00 CET.

One can skip the two files in error but i will first test today why there is a difference between Mac and PC during the unzip.
« Last Edit: October 23, 2013, 03:04:56 AM by wvdkuil »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #112 on: October 23, 2013, 05:25:30 AM »
Hi Wim,
I have downloaded and tried to unzip but that failed with an Error 0x80070057 "The parameter is incorrect".  It stops during the unzip at "mobi" and a Retry then continues, but fails again later on with the similar file, and continues with another Retry and then at the end can't complete the unzip. Appears to be mobi file.  I have tried 3 separate times and each time the same Errors and failure.

Paul
OK I uploaded a new zip file, same name.
I downloaded, unzipped and put it at Leuven test site.
http://www.weerstation-leuven.be/canada2/
It seems to work OK.
zip: 36.271.536 bytes both mac and win 7  (36,3 MB op schijf)
unzipped: 49.532.562 bytes (57,7 MB op schijf) voor 3.988 onderdelen  on a mac
The size and number of files is lower at a Win7 machine as the Mac is inserting all kinds of read-only files (.DS store) where it saves desktop and icon info.

MD5 hash of the zip:   AC3EB684286096B07AEC4087E3A2EC0E

Succes, Wim

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5530
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #113 on: October 23, 2013, 06:04:33 PM »
Thanks Wim,
I had actually downloaded 3 separate times after the failure to unzip and removed the full download from my PC each time.  Your new zip downloaded and unzipped fine and is 34.5 MB zipped and 81.8 MB unzipped with 3,907 files and 118 folders.

I will now try to understand the templates and get them working.

Paul

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5530
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #114 on: October 25, 2013, 11:11:13 PM »
Hi Wim,
I have it installed and in test www.komokaweather.com/weather2/index.php
Wow, a lot of information included in the template set =D&gt;.  I have done a line-by-line review/change in the settings and settings-weather.php files and a few other files but still some settings to find and change.

Can you give me some quick pointers on -
1. How to fix the aqhiCanada.php notices on the home page.  I have checked that file but can not see what I should change.
2. YoWindow doesn't look to be using my local data nor time.
3. On the Other Sites links it seems to want a numerical ID but my PWS is KOMOKA and my CWOP is DW3930 so these do not work.
4. Can the background image be removed and/or replaced.
5. Can I remove the Donate button.

Thanks,
Paul


Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #115 on: October 26, 2013, 04:21:13 AM »
Hi Wim,
I have it installed and in test www.komokaweather.com/weather2/index.php
Wow, a lot of information included in the template set =D&gt;.  I have done a line-by-line review/change in the settings and settings-weather.php files and a few other files but still some settings to find and change.
Can you give me some quick pointers on -
1. How to fix the aqhiCanada.php notices on the home page.  I have checked that file but can not see what I should change.
2. YoWindow doesn't look to be using my local data nor time.
3. On the Other Sites links it seems to want a numerical ID but my PWS is KOMOKA and my CWOP is DW3930 so these do not work.
4. Can the background image be removed and/or replaced.
5. Can I remove the Donate button.
Thanks,
Paul
Some answers:

All line numbers are approximately as they change with every release

5. donate button:

script weather2/wsSideColom.php
line: 30  
$SITE['donateButton'] = false;


4 background images colors etcetera
a. You can choose which fixed color set you want or a background who changes with the current weather
   script weather2/wsSettings.php line 93

$SITE['colorNumber']   = 0;   // #####    this number is the default key which color and style your website will be using
$SITE['colorStyles']   = array ('weather adapted', 'green','blue','pastel','red','orange','none','clouds','cloudsn','mist','moon','pclouds','rain','snowx','storm','sun','thunder');

b. You can test the different colors and weatherconditions with menu choice "Customize"

c. You can adapt CSS for every color scheme in script  weather2/styleMood20.css

d. If you want a different picture, for instance of your own city, store that picture in the folder weather2/img/
   For instance a different picture for the color-scheme "clouds" would be weather2/img/headClouds.jpg
   Please compress the image so that it is not to big
   Browse the weather2/img folder to see the different backgrounds. For certain schemes multiple backgrounds are there

See also the Q&A at http://www.weerstation-leuven.be/_template2/template.php?lang=en#5

3 Other Sites links at lines 462 - 474 in weather2/wsSettings.php

The links are either false or a value which is used to acces the current page.
So at my site some of these  are:
$SITE['hwaID']         = 'wilsele';                               // #####
A string is needed for that site
$SITE['ewnID']         = true;                               // #####
A simple false or true needed for this one
$SITE['pwsID']         = 'WILS01';                              // #####
Again a string, so in your case 'KOMOKA'
$SITE['cwopId']         = 'D8113';                              // #####
Yours would be 'DW3930'  I think.
But be aware that CWOP works differently outside NortAmerica so please warn me if there are errors in the scripts  or URL. I could not test them here in Europe as extensively as should have been.

2. YoWindow doesnt look to be using my local data nor time.
   Yowindow needs  3 differtent things to be fully functional.
a.   a crossdomain.xml in the ROOT of your website.
   http://yowindow.com/widget_and_pws.php
   A zz_crossdomain.xml is in your download and uploaded in step 1.2 of
   http://www.weerstation-leuven.be/_template2/documentation/__readMeFirst_en.pdf
   You have to rename that to crossdomain.xml

b.  a correct location_id which is set in line 381 in weather2/wsSettings.php
   On line 379 you find in the comments the url http://yowindow.com/id where can find the id for almost every large or smalll city
   So change that line to
   $SITE['YoWindowPlaceID']='6182962';
   as that is the correct id for windsor ontario

c. a xml file to be uploaded by the weather program with the current conditions, see documentation
   http://www.weerstation-leuven.be/_template2/documentation/uploads_en_CU.pdf
   A file with that name is present at
   http://www.komokaweather.com/weather2/uploadCU/yowindow.xml
   but that is the old file for testing from the download.
   So it seems the file is not uploaded or to a different location.

1. How to fix the aqhiCanada.php notices on the home page.
   The settings are very precise, see also the csv files mentioned in the docs.
             http://dd.weather.gc.ca/citypage_weather/docs/site_list_en.csv
   For you it should be:
   $SITE['caProvince']   = 'ON';         // #####
   $SITE['aqhiArea']      =  'Windsor';   // #####    
   $SITE['caCityCode']   = 's0000646';   // #####    
====
I tested most of these settings in http://www.weerstation-leuven.be/canada2/index.php?p=10
So you can compare your results with that page.

Succes, Wim
« Last Edit: October 26, 2013, 05:29:52 AM by wvdkuil »

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5530
    • KomokaWeather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #116 on: October 26, 2013, 11:55:29 AM »
Thank you Wim,
I have fixed these except will need to still do the YoWidow.  The CWOP does work (had an initial problem that it couldn't connect to the url but later on it did so likely a temporary cwop issue).

Still need to work on -
    getting the precipitation radar from the west coast to Southern Ontario,
    change the Mesonet links from Alaska and Western Canada to our area,
    fix the WU forecast and World Weather forecast details
    fix the WU History graphs errors
    fix by webcam image
    and how to get the world map, nearby buoys and temperature worldwide pages to have the marker on North America instead of Europe
but have done pretty good so far.

And another observation, my AWEKAS page comes up in Flemish

And oh, how would I add my Sunrecorder images on the home page?

I am really amazed with what you have done with these templates and the support documentation included with them, and what you have given here, awesome!

Paul

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #117 on: October 26, 2013, 12:16:40 PM »
Thank you Wim,
I have fixed these except will need to still do the YoWidow.  The CWOP does work (had an initial problem that it couldn't connect to the url but later on it did so likely a temporary cwop issue).

Still need to work on -
    getting the precipitation radar from the west coast to Southern Ontario,
    change the Mesonet links from Alaska and Western Canada to our area,
    fix the WU forecast and World Weather forecast details
    fix the WU History graphs errors
    fix by webcam image
    and how to get the world map, nearby buoys and temperature worldwide pages to have the marker on North America instead of Europe
but have done pretty good so far.

And another observation, my AWEKAS page comes up in Flemish

And oh, how would I add my Sunrecorder images on the home page?

I am really amazed with what you have done with these templates and the support documentation included with them, and what you have given here, awesome!
Paul
Hello Paul,
1. WU  webcam
http://www.wunderground.com/webcams/PaulMy/1/show.html
Your camera id seems to be PaulMy
So change $SITE['webcamID'] => PaulMyCAM1
It could be there are still errors with WU, but at the moment this seems to be your webcamID.

2. WU  forecast
$SITE['wuId']     => IONTARIO226     seems ok
$SITE['wuFctId']  => PWS:IONTARIO226IONTARIO226   ???? strange

WU now supports forecasts using lat lon so I tested that to remove the errors as on
http://www.komokaweather.com/weather2/index.php?p=50-3
If they persist after correcting $SITE['wuFctId'] I will post a changed script.

It would still not work if you do not have your own WU-API-key to use.
But for testing remove the first x from the string at  $SITE['wuKey']

We are using for all forecasts the xml feeds but sometimes (WU and WW) they need a extra signup and a key.

3. WW forecasts
Same issue with $SITE['worldKey'], remove the x and if finished request your own key at their site and replace this setting with yours
WorldWeather already was working with latitude/longitude as city-location-ID

Important
If it looks if changes in the settings have no effect on the website:
PLEASE look into the weather2/cache/ folder and remove the old cache files if you are changing things with forecasts and so on.
====
Will look into the other remarks when the small guests (grand-children) are in bed.
====
Please be aware that you have to get your own hiStats account (it is free) so that the red bar at the bottom is more usefull to you.
Succes, Wim

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #118 on: October 26, 2013, 03:19:16 PM »
Thank you Wim,
...
Still need to work on -
...
    fix the WU History graphs errors
 ...
Paul
Hello Paul,
I downloaded the latest version and put it into the template download.
I wrote the scripts to integrate them nicely in the template, I think.
Then i forgot to write a how to install wxwugraphs.
That is in the download description at   http://pocasi.hovnet.cz/wxwug.php?lang=en
But I did the download and put in the right place already, so one can skip those things.

Well there are two things one should do now:
1. run the configurator www.yoursite.com/wxwugraphs/configurator.php
password = ****  (see mail)
2. Test if everything is OK  www.yoursite.com/wxwugraphs/WUG-test.php
same password.

Be aware that you can not use the hourly graphs as they need clientrawhourly.txt which is uploaded by WD/CW/MH/MB but not by Cumulus, which you are using.
So set that setting correctly.
====
If everything seems wrong simply remove the settings.php from the weahter2/wxwugrpahs/  folder and start again.
And do not forget to change the password.
Succes,  Wim

Offline blainec

  • Senior Member
  • **
  • Posts: 71
    • Weather YYC
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #119 on: November 03, 2013, 02:51:52 PM »
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0.

Wim


There is a set of png icons on Ken True's site

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #120 on: November 03, 2013, 02:56:46 PM »
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0.

Wim


There is a set of png icons on Ken True's site

Yes I know and they are very nice.
But the copyright notice does not allow redistribution, I think so.

So a template user is allowed to download and use them on their site.

But I should not include them in my own downloads.

Wim


Offline blainec

  • Senior Member
  • **
  • Posts: 71
    • Weather YYC
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #121 on: November 03, 2013, 10:16:02 PM »
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0.

Wim


There is a set of png icons on Ken True's site

Yes I know and they are very nice.
But the copyright notice does not allow redistribution, I think so.

So a template user is allowed to download and use them on their site.

But I should not include them in my own downloads.

Wim



I have tried to implement them but they don't seem to display

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1990
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #122 on: November 04, 2013, 10:05:43 AM »
Quote

Transparent Environment Canada Icons:  I prefer to use transparent icons because of  the coloured backgrounds. I did not find a free set to be included in the downloads. So if there are sets available, please send me a message so I can include them.  As always you can specify which icon-sets will be used. Example: the EC icons are used on the front-page  and the default icons on the full page EC forecast http://www.weerstation-leuven.be/weatherCanada/index.php?p=50-0.

Wim


There is a set of png icons on Ken True's site

Yes I know and they are very nice.
But the copyright notice does not allow redistribution, I think so.

So a template user is allowed to download and use them on their site.

But I should not include them in my own downloads.

Wim



I have tried to implement them but they don't seem to display

The current EC icons are located in weather2/canada/ec-icons/

To use another set of icons one has to follow these steps:
1. download / unzip
2. copy every icon without a precip number (01.png) and name that copy 01p00.png
That means use this icon when PoP = 00
There are 45 icons in an EC set so you have to copy 45 times and rename that copy 45 times.
Seems a lot, but you have far more beautiful icons after that to display.

3. Put them somewhere on your web-server, example: weather2/canada/other-ec-icons/

4. change lines 28-29 in weather2/canada/ecSettings.php
from
Code: [Select]
$ecIconsLoc = 'canada/ec-icons/';
$ecIconsExt = '.gif';
$SITE['ecIconsOwn'] = false;
$showPoP = true;
to
Code: [Select]
$ecIconsLoc = 'canada/other-ec-icons/';
$ecIconsExt = '.png';
$SITE['ecIconsOwn'] = true;
$showPoP = true;
if you did not copy and renamed those p00 icons, set $showPoP to true, if you copied them set to false.

Succes, Wim
« Last Edit: November 04, 2013, 10:07:53 AM by wvdkuil »

Offline blainec

  • Senior Member
  • **
  • Posts: 71
    • Weather YYC
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #123 on: November 08, 2013, 02:16:51 PM »
I have a set with the POP icons.
I skipped the copying and renaming because of that. Changed the setting, but only 1 icon displays.

Take a look

Offline blainec

  • Senior Member
  • **
  • Posts: 71
    • Weather YYC
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #124 on: November 08, 2013, 06:00:56 PM »
Got it worked out now