wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

htm file generation/updates

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation
View previous topic :: View next topic  
Author Message
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Fri Sep 16, 2005 4:59 am    Post subject: htm file generation/updates Reply with quote

Mark:

Where should I be focussing my efforts to find out why .html files are not being generated/updated, but image files are?! I'm leaving tomorrow for two weeks and would love to be able to check our website for weather updates.

Thanks,

Paul
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Sep 16, 2005 5:44 am    Post subject: Reply with quote

html-templates.conf

Are they not being generated or not being transferred via FTP?

Have you looked in /var/wview/img to see if they are there? If they are, it is an FTP issue. If they are not, then you need to add them to html-templates.conf or even better, copy the example file from the distribution.

Also be sure you realize everything is transferred to the img directory on the remote server by the FTP daemon.

Also, the log file is your friend here again, should say something like "generated 20 images and 8 htmls" or similar...

They were being generated before so you must have changed something.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Fri Sep 16, 2005 5:55 am    Post subject: Reply with quote

The html-templates.conf file is as follows (yes I tried to change it to take advantage of my Vantage Pro Plus:

#
# html-templates.conf - define the HTML template files to use for HTML
# generation
#

# File Format
#
# 1) lines beginning with '#' or <blank> are ignored
#

# Column Format
#
# 1) template file name (must be in /etc/wview/html)
#

### Use these for Vantage Pro Plus Extended Data
### Remember to rename "index_Plus.htx" to "index.htx" in the /etc/wview/html
### directory for UV and ET display on the home page and URL references to
### these pages...
Current_Conditions_Plus.htx
Daily_Vantage_Pro_Plus.htx
Monthly_Vantage_Pro_Plus.htx
Yearly_Vantage_Pro_Plus.htx

# Home Page template, do not remove unless you are using the day/night
# alternative below
index.htx

# Daytime/Nighttime Home Pages - if you want a different homepage template
# based on day or night, uncomment these and copy your templates to
# /etc/wview/html/index-day.htx and /etc/wview/html/index-night.htx respectively
# index-day.htx
# index-night.htx


# Add, remove or modify as needed
Current_Conditions.htx
almanac.htx
# Daily_Vantage_Pro.htx
# Monthly_Vantage_Pro.htx
# Yearly_Vantage_Pro.htx



Things did work before, but no html files are created locally. The System Log file is quit after start-up. No indication if anything is running or not. The Terminal app, just gives the same error command at each connect.

Thx
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Sep 16, 2005 6:04 am    Post subject: Reply with quote

Then you have disabled log messages in wview.conf - re-enable them.
The html-templates.conf looks fine, but you have to copy index-Plus.htx to index.htx so the home page references are to the "_Plus" files you have enabled in the html-templates.conf file. No htm files are generated? Having a hard time believing that...

This is all in the UM...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Fri Sep 16, 2005 6:24 am    Post subject: Reply with quote

mteel wrote:
Then you have disabled log messages in wview.conf - re-enable them.
The html-templates.conf looks fine, but you have to copy index-Plus.htx to index.htx so the home page references are to the "_Plus" files you have enabled in the html-templates.conf file. No htm files are generated? Having a hard time believing that...

This is all in the UM...


From wview.conf:
# Produce more and verbose diagnostic log messages?
VERBOSE_MSGS=1

There is no "messages.log" anywhere and I can't find any system.log where this info may be.

I did copy all the _Plus files and index_plus.htx files as described in the UM. Following is some of the content of index.htx:

<tr>
<td width="20%" align="center" valign="top"> <input name="button2" type="button"
onClick="openURL('almanac.htm')" value=" Almanac "></td>
<td width="20%" align="center" valign="top"> <input name="button2" type="button"
onClick="openURL('Daily_Vantage_Pro_Plus.htm')" value=" Last 24 Hours "></td>
<td width="20%" align="center" valign="top">
<input type="button" value=" Last 28 Days "
onclick="openURL('Monthly_Vantage_Pro_Plus.htm')">
</td>
<td width="20%" align="center" valign="top">
<input name="button" type="button"
onClick="openURL('Yearly_Vantage_Pro_Plus.htm')" value=" Last 365 Days ">
</td>
<td width="20%" align="center" valign="top">
<input type="button" value=" Forecast "
onClick="openURL('http://www.srh.noaa.gov/data/forecasts/GUZ001.php')">
</td>
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Sep 16, 2005 6:29 am    Post subject: Reply with quote

Paul,

You posted "0 rules added" for FTP yesterday - that was from the /var/log/System.log file - have you forgotten that already?
That is where all wview log messages are posted - it is still there, same as yesterday.

Mac uses the filename System.log instead of messages.log - just to be even more irritating...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Fri Sep 16, 2005 6:38 am    Post subject: Reply with quote

This is all that I get from the System.log (2-hours since restart):

Sep 16 20:48:57 G5-Tower sudo: paul : TTY=ttyp1 ; PWD=/ ; USER=root ; COMMAND=/sbin/SystemStarter start wview
Sep 16 20:48:57 G5-Tower wviewd[1619]: <1586305634> : station interface: serial ...
Sep 16 20:48:58 G5-Tower wvalarmd[1624]: <1586306641> : /etc/wview/wvalarm.conf does not exist - exiting...

Sep 16 20:48:58 G5-Tower wvcwopd[1626]: <1586306647> : /etc/wview/wvcwop.conf does not exist - exiting...

Sep 16 20:48:58 G5-Tower wviewftpd[1628]: <1586306660> : FTP: 4 rules added
Sep 16 20:48:58 G5-Tower wviewftpd[1628]: <1586306661> : starting ftp timer for 2 mins 17 secs
Sep 16 20:48:58 G5-Tower wviewsshd[1630]: <1586306662> : /etc/wview/wviewssh.conf does not exist - exiting...

Sorry, Mark. I'm sure this is as frustrating to you as it is to me.
Back to top
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Sep 16, 2005 6:45 am    Post subject: Reply with quote

I would guess you have a bunch of versions of wview daemons running from multiple starts and not stopping them. That shows no htmlgend being started, wviewd not getting very far, etc. The UM has an example output to the log file for a good startup, this is not one.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Fri Sep 16, 2005 7:03 am    Post subject: Reply with quote

From the "console:"

1629 wviewftpd 0.0% 0:00.00 1 8 21 56K 1.09M 164K 27.4M
1628 wviewftpd 0.0% 0:00.18 1 10 22 52K 1.09M 304K 27.4M
1625 htmlgend 0.0% 0:00.00 1 8 38 64K 2.04M 176K 30.9M
1623 htmlgend 0.0% 0:16.25 1 10 39 576K 2.04M 1.00M 30.9M
1621 wviewd 0.0% 0:00.00 1 8 22 56K 1.16M 164K 27.6M
1619 wviewd 0.0% 0:01.13 1 10 24 84K 1.16M 380K 27.6M

htmlgend seems to be working (and it is updating the image files, which are being ftp-ed to http://www.pcrguam.com/img)

I need some sleep ...
Back to top
View user's profile Send private message Visit poster's website
IslandLife



Joined: 30 Jul 2005
Posts: 58
Location: Guam (USA)

PostPosted: Fri Sep 16, 2005 5:05 pm    Post subject: Reply with quote

I just discovered that the index file that is being generated is called index.html not index.htm, which excluded it from being uploaded under wviewftp.conf "img/*.htm I've changed the ftp conf to:
Code:
5   img/*.png
5   img/*.htm
5   img/*.html
5   img/*.txt
and all seems well.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> wview Installation All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group