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 . 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 etceteraa. 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.cssd. 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#53 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=10So you can compare your results with that page.
Succes, Wim