Author Topic: Leuven new installation problems  (Read 10942 times)

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Leuven new installation problems
« on: July 15, 2015, 07:55:40 PM »
I am a new WeatherCat and Leuven user. I am slowly setting up my site with the Leuven template, but I have a couple of problems that I cannot solve.

1. How do I get rid of the
Quote
There is a communication problem. Go directly to the Meteoalarm site
message at the top of the page?

2. In settings, I changed
Quote
$SITE['Support']   = 'V';
to
Quote
$SITE['Support']   = 'H';
expecting the display of social media icons to move to the top of the page. Instead, the icons disappeared, even when I reverted the change.

As soon as I have solved these errors, I can start to set up the rest of the site.

Link: Bracken House Weather

ALAN

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven new installation problems
« Reply #1 on: July 15, 2015, 08:40:23 PM »
I am a new WeatherCat and Leuven user. I am slowly setting up my site with the Leuven template, but I have a couple of problems that I cannot solve.

1. How do I get rid of the
Quote
There is a communication problem. Go directly to the Meteoalarm site
message at the top of the page?

2. In settings, I changed
Quote
$SITE['Support']   = 'V';
to
Quote
$SITE['Support']   = 'H';
expecting the display of social media icons to move to the top of the page. Instead, the icons disappeared, even when I reverted the change.

As soon as I have solved these errors, I can start to set up the rest of the site.

Link: Bracken House Weather

ALAN
Earlier today (16:18 CET) I already sent you a message using your contact page.
Quote
Please change line 81 in wsUserSettings.php from
if ($SITE['region'] ==   'europe') {
to
if ($SITE['region'] ==   'america') {

This will remove a lot of problems.
Check the WiKi http://leuven-template.eu/dokuwiki27/doku.php?id=en:php#if

You changed some lines in the settings file which should not be changed.
Please only change the lines step by step as described in the WiKi. Randomly changing lines without the description leeds to unknown errors.
At the moment you are using partly "region - america"  and partly "region - europe" settings mixed together.

I you click on that message
Quote
There is a communication problem. Go directly to the Meteoalarm site : www.meteoalarm.eu and check the Weather-warnings there .

you arrive at
http://www.meteoalarm.eu/en_UK/0/0/CTC009.html?lang=en
and CTC009 is an american area code, not a european one.

Quote
2. In settings, I changed $SITE['Support']   = 'V'; to $SITE['Support']   = 'H';

There is no such setting as $SITE['Support']. You made that yourself. The original line reads
Code: [Select]
$SITE['socialSiteSupport'] = 'V';  // ##### ' ' no support; "H"orizontal or "V"ertical  display of facebook icons and othersWiKi describes it in detail, I think:
http://wiki.leuven-template.eu/doku.php?id=en:check_these_first#social_site_buttons

As described MULTIPLE times, please only change the value AFTER the single "=" sign and only when instructed so.
Please follow the WiKi first time, later you can go randomly through the settings.
A template  is written in PHP, not HTML. And PHP  is a programming language so change slowly and do a lot of testing,

Succes, 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/

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #2 on: July 15, 2015, 09:00:51 PM »
Thanks for your reply Wim.

Sorry, I didn't get your message through my contacts page as I had an incorrect email address. It is correct now.

I did follow the wiki, but they say that you can't teach an old dog new tricks. At 62 years old, that is certainly the case with me. Not only am I having to learn your template, I am also new to WeatherCat, having spent six years with Weather Display on Windows. I've corrected the two errors and the site is now looking good.

I am now about to start the task of adapting the pages from my old site to the new template. I may have more questions later.

ALAN.

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven new installation problems
« Reply #3 on: July 16, 2015, 11:03:28 AM »
Thanks for your reply Wim.

Sorry, I didn't get your message through my contacts page as I had an incorrect email address. It is correct now.

I did follow the wiki, but they say that you can't teach an old dog new tricks. At 62 years old, that is certainly the case with me. Not only am I having to learn your template, I am also new to WeatherCat, having spent six years with Weather Display on Windows. I've corrected the two errors and the site is now looking good.

I am now about to start the task of adapting the pages from my old site to the new template. I may have more questions later.

ALAN.
Just checked the progress and if the errors are gone or maybe new ones popped up..

1. Your small globe below your avatar on the left of your postings, point to a non-existent website
http://www.brackenhouse.net/weather/msindex.php

2. The pages look Ok but sometimes the fonts are  large.
http://www.brackenhouse.net/weather27/index.php?p=10&lang=en
100% in the dashboard "Temperature" , 130%  a little lower for "Precipitation"

I will look into that, or is it on purpose?

Succes, 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/

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #4 on: July 16, 2015, 11:15:03 AM »
Hi Wim,

I have been experimenting with the css files to get the site looking how I want it. I will be making some changes today.

Thanks for checking back.

ALAN

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #5 on: July 16, 2015, 01:40:21 PM »
Wim,

The large font and the link to the home page in my profile have now been corrected.

A quick question for you - on my home page, under temperature, the high and low for last year, records/today and normals/today are incorrect. Where is the template picking these settings from, and how do I correct it?

ALAN.

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven new installation problems
« Reply #6 on: July 16, 2015, 06:43:43 PM »
Wim,

The large font and the link to the home page in my profile have now been corrected.

A quick question for you - on my home page, under temperature, the high and low for last year, records/today and normals/today are incorrect. Where is the template picking these settings from, and how do I correct it?

ALAN.
Last year comes from your data at WU.
Records and normals come from the almanac data for your latitude-longitude also from WU.

Please delete the almanac file in the cache and see if it improves things.
I will check tomorrow with the files themselves,

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/

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #7 on: July 16, 2015, 08:18:59 PM »
I've deleted the relevant file from the cache. Nothing seems to have changed. I found it strange that the page was reporting records from 2001 and 2003 when I didn't have a weather station until 2009. If they are genuine records from my locality, then I can live with the figures.

I'm progressing nicely with the template now, and I hope to have the site fully functional over the weekend. Thanks for your help so far.

ALAN

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #8 on: July 20, 2015, 11:09:53 AM »
How do I hide the link to 'Other Stuff / Partnerships' on my site? When I delete it or set show="no", I get the following error ...

Quote
Notice: Undefined index: wsPartners in /home/alanrowley3/public_html/weather27/_my_texts/partners.php

I'm stumped.

ALAN.

UPDATE: Quote edited to correct the error message.

awilltx

  • Guest
Re: Leuven new installation problems
« Reply #9 on: July 20, 2015, 02:16:39 PM »
How do I hide the link to 'Other Stuff / Partnerships' on my site? When I delete it or set show="no", I get the following error ...

/home/alanrowley3/public_html/weather27/_my_texts/partners.php


This sounds like a bug in the templates. I would submit a question on the Leuven site. I have downloaded the new v2.7 and will begin testing so maybe I can find something that will work.

Cheers and good luck,
Alan

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #10 on: July 20, 2015, 06:25:16 PM »
The correct error message I get is ...

Quote
Notice: Undefined index: wsPartners in /home/alanrowley3/public_html/weather27/_my_texts/partners.php

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven new installation problems
« Reply #11 on: July 20, 2015, 06:52:30 PM »
How do I hide the link to 'Other Stuff / Partnerships' on my site? When I delete it or set show="no", I get the following error ...

Quote
/home/alanrowley3/public_html/weather27/_my_texts/partners.php

I'm stumped.

ALAN.
1. If you want to display information about the "partners" (WU  WOW and others) is set in wsUserSettings.php line
Code: [Select]
221 | $SITE['partners'] = 'V';// ##### show other websites (partners)  with your weatherdata side('V') or bottom('B') or not ('')You set it to display "V" which means vertical in the side area.
2. You set for each partner, if you are using that partner and what your ID is, lines 416-440
Code: [Select]
  416 | #---------------------------------------------------------------------------
  417 | # IMPORTANT     Partner information:
  418 | #---------------------------------------------------------------------------
  419 | # your id's for weather sites, mostly used to display logo and make a link to your weatherdata on their site
  420 | # set to false if you do not cooperate with them
  421 | #
  422 | # WU  settings for your data at wunderground site  IVLAAMSG47
  423 | #
  424 | $SITE['wuId'] = true;
  425 | $SITE['wuId'] = 'INOTTING15'; // ##### the ID of your personal weather station at the Wunderground site or false if you are not a member
  426 | $SITE['wuStart'] = '01-10-2009'; // #####  Stations first day of operation at wunderground format dd-mm-yyyy for wu history pages
  427 | #
  428 | # other sites where your data is shown
  429 | #
  430 | $SITE['hwaID'] = false; // ##### Example  $SITE[hwaID'] = 'abcdefg';
  431 | $SITE['wowID'] = 6099914; // ##### Example  $SITE['wowID']        = 1234567;
  432 | $SITE['awekasID'] = false; // ##### Example  $SITE['awekasID'] = 1234;
  433 | $SITE['wcloud']         = 'd0163319505'; // example $SITE['wcloud']         = 'd1686817653';
  434 | $SITE['anWeID'] = false; // ##### Example  $SITE['anWeID'] = '1234567';
  435 | $SITE['pwsID'] = 'SELSTON'; // ##### Example  $SITE['pwsID'] = 'abcd99';
  436 | $SITE['cwopId'] = 'DW3696'; // ##### Example  $SITE['cwopId']       = 'C6440';
  437 | $SITE['weatherlinkID'] = ''; // ##### Example  $SITE['weatherlinkID']= 'abcdefgh';
  438 | $SITE['wp24ID'] = false;    // ##### true or false
  439 | $SITE['uswg'] = false;    // ##### true or false
  440 | #---------------------------------------------------------------------------
That is all.  Deleting other scripts will result in errors.

Where do these errors come from:
Code: [Select]
Notice: Undefined index: wsPartners in /home/alanrowley3/public_html/weather27/_my_texts/partners.php3. If you do not want a page to display, first set it to "hide" in the menu file.
Do not comment or remove to quickly all kind of pages WITHOUT slowly moving AND testing a lot.
Also do not remove whole groups if you think you do not need those pages.

The partners page is essential and wanted by you as you are member of multiple partners.
That partner page is used to display your information at that site inside the template.
So set the group again to show and the errors will be gone.
Code: [Select]
<item caption="Other Stuff" show="no">
4.  Some examples at the demo site:
http://weather-template.nl/weather27/   => click on the logo of weathercloud and
http://weather-template.nl/weather27/index.php?p=82&s=wcloud&lang=en#data-area  is displayed, inside the template, you are not loosing a visitor.
Clicking on the WOW log and again another partner page is displayed inside your own website.

But all those pages are displayed using wsPartners =>  p=82.

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/

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #12 on: July 20, 2015, 08:57:00 PM »
Thanks for your help, Wim.

I have adapted the 'partnerships' page and I am now using it in the 'other stuff' section.
I have also solved the problem of the UV Index Forecast icons and they now show at their actual size.

The website is now looking almost how I want it. I have a few more minor adjustments to make before I start copying pages from my old weather site.

Thanks for the support, and your excellent templates.

ALAN

Bracken House Weather (old site) | Bracken House Weather (new site)

Alan Rowley

  • Strong Breeze
  • ***
  • Posts: 150
  • It is far better to wear out than to rust away.
    • D3696
    • INOTTING15
    • Selston Weather
  • Station Details: Weather station: Davis Vantage Pro2. Software: WeatherCat. Computer: Mac Mini, High Sierra OS
Re: Leuven new installation problems
« Reply #13 on: July 28, 2015, 05:03:03 PM »
Hello again,

I have run into another problem that has me stumped, this time on my trends page. If you look at the page, you will see that it is returning two errors ...

Quote
Notice: Undefined variable: wsTrends in /home/alanrowley3/public_html/weather27/inc/trends.php on line 418

Notice: Undefined index: rainHour in /home/alanrowley3/public_html/weather27/inc/trends.php on line 449

I've made lots of changes to the template, as you can see, but I hadn't made any changes to this page before the errors appeared.

Can anyone help?

ALAN.

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: Leuven new installation problems
« Reply #14 on: July 28, 2015, 05:31:02 PM »
Hello again,

I have run into another problem that has me stumped, this time on my trends page. If you look at the page, you will see that it is returning two errors ...

Quote
Notice: Undefined variable: wsTrends in /home/alanrowley3/public_html/weather27/inc/trends.php on line 418

Notice: Undefined index: rainHour in /home/alanrowley3/public_html/weather27/inc/trends.php on line 449

I've made lots of changes to the template, as you can see, but I hadn't made any changes to this page before the errors appeared.

Can anyone help?

ALAN.
The trends page is normaly not available for WeatherCat users and should not appear in your menu as there are no "trend" values for Wc users.
And the errors are there because the script can not find the trend values, at least I can not find values like 5min ago - 10 min ago and so on.

WiKi http://wiki.leuven-template.eu/doku.php?id=en:facts

This is the demo site for release 2.7 -> WeatherCat  http://weather-template.nl/weather27/index.php?p=10&wp=WC
The menu does not contain the trends page.
I made another page with historical data  http://weather-template.nl/weather27/index.php?p=61-1&lang=en&wp=WC#data-area

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/