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 

wviewftpd.conf
Goto page 1, 2  Next
 
Post new topic   Reply to topic    wviewweather.com Forum Index -> FTP
View previous topic :: View next topic  
Author Message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 2:36 am    Post subject: wviewftpd.conf Reply with quote

Regarding the Remote Transfer Directory in the wviewftpd.conf file , how should it be please?

# Remote Transfer Directory
# (relative to the ftp login directory, no leading '/')
# Uncomment to activate...

#directory public_html

Or
# Remote Transfer Directory
# (relative to the ftp login directory, no leading '/')
# Uncomment to activate...
img/
#directory public_html

Or and other way??

Thanks
JP
Back to top
View user's profile Send private message Visit poster's website
bodemory



Joined: 06 Dec 2005
Posts: 43

PostPosted: Fri Feb 17, 2006 3:59 am    Post subject: Reply with quote

The way it is indicated :
Code:
# Remote Transfer Directory
# (relative to the ftp login directory, no leading '/')
# Uncomment to activate...

directory httpdocs


/img is the default directory (relative to the login dir) where wview will upload data. So in my case, it'll upload in : /httpdocs/img

HTH,
Brice
Back to top
View user's profile Send private message Visit poster's website
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 6:26 am    Post subject: Reply with quote

I am not too sure on what is the loging directory...
I take it that it is probably the root of my web site directory.
Therefore, following your advise, I changed wviewftpd.conf to:

# Hostname Definition
#
host ftp.vol-libre-cadurcien.net
# Username
#
user myusername

# Password
#
pass mypassword
# Remote Transfer Directory
# (relative to the ftp login directory, no leading '/')
# Uncomment to activate...

directory MeteoFontanes

The MeteoFontanes directory is on the root of my website and into it I put an img folder.
In this img folder I put all the files that are in /var/wview/img/
All this through Windows/Dreamweaver (Thanks...)
Once all this was done I started again wview and checked if an index.htm file was at last transfered from my PC to my ISP web server into the img folder.
Not so unfortunately... And not anywhere else either...
Back to the start line.
What can I do Brice?
JP
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Fri Feb 17, 2006 7:14 am    Post subject: Reply with quote

Hi Jean-Paul

Just to confirm, are you using tnftp which is the ftp client specified in the wview user manual?

Cheers

Jon
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 9:21 am    Post subject: Reply with quote

Yes Jon, I have set up tnftp just like the User Manual says.
Any idea how to upload automatically with this tnftp the /var/wview/img/index.htm file to my ISP web server ftp.vol-libre-cadurcien.net in the /MeteoFontanes/img/ folder?

Note: I have been uploading/downloading files to this web server for the past 3 years through the same ADSL modem/firewall/router from a Windows PC.
And when I uploaded manually the /var/wview/img/*.* files with
/usr/bin/ftp -AiV -u ftp://remote_username:remote_password@remote_host/ img/*.*
it did work.

Cheers
JP
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 Feb 17, 2006 11:27 am    Post subject: Reply with quote

The ftp login directory is exactly that: the remote directory you are in when executing a simple ftp command to the remote host using the same username and password. On most ftp servers, this is something like ~username (or /home/username).

So if you specify "directory public_html" in the wviewftp.conf file, the wview files will be transfered to: ~username/public_html/img (or /home/username/public_html/img).

What I do is create a link in my apache document root directory to the actual img location, i.e: "ln -s /home/username/public_html/img /usr/local/www/weather", where /usr/local/www is my apache document root.

Of course, if you have a different location for your default ftp login directory on your web server, the paths will be different, but the approach the same.

HTH,
Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Fri Feb 17, 2006 11:28 am    Post subject: Reply with quote

OK.

Can you do a completely manual login and make sure that MeteoFontanes is accessible from your login directory? i.e.

ftp ftp.vol-libre-cadurcien.net
name:
password:

pwd
/
cd MeteoFontanes

cd img

pwd


If you can make a note of any responses and post them on here we should have more of a clue.
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 11:39 am    Post subject: Reply with quote

Hi bhnb
I did what you said and here is the result (without my user name and password).

ftp ftp.vol-libre-cadurcien.net
Connected to judith.nfrance.com.
220 judith.nfrance.com FTP server (Version 6.00LS) ready.
Name (ftp.vol-libre-cadurcien.net:jean-paul): xxxxxxxxxx
331 Password required for xxxxxxxxxx.
Password:xxxxxxxxx
230 User xxxxxxxxx logged in, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
Remote directory: /
ftp> cd MeteoFontanes
250 CWD command successful.
ftp> cd img
250 CWD command successful.
ftp> exit
221 Goodbye.

What does that tells you please?
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Fri Feb 17, 2006 12:25 pm    Post subject: Reply with quote

It looks like everything should be OK.

Next guess is that there could be some garbage in your conf file. Could you try
cat -v /etc/wview/wviewftpd.conf
and check that there's nothing like ^M or ^@ or any other ^ characters in the output?
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 12:52 pm    Post subject: Reply with quote

I do not have an wviewftpd.conf file but may be you mean wviewftp.conf and here it is

###############################################################################
# wviewftp.conf
# wview FTP configuration file
#
# Notes:
# 1) files are transmitted at 15 seconds past the top of minute
# 2) Order of definitions in this file is mandatory
# 3) transmit interval starts at 1 minute past a five minute mark
# 4) the number of rules in this file should be minimized (< 10)
# 5) the files will be placed in the "img" directory under the ftp login
# directory on the remote host
#
###############################################################################


# Hostname Definition
#
host ftp.vol-libre-cadurcien.net


# Username
#
user xxxxxxxxx


# Password
#
pass xxxxxxxxx


# Remote Transfer Directory
# (relative to the ftp login directory, no leading '/')
# Uncomment to activate...

directory MeteoFontanes


#
# Transfer File Definitions
# Column Format:
# 1) transmit interval (mins)
# 2) source file (relative to /var/wview)
#

# current conditions every minute
#
#1 img/Current_Conditions.htm


# images, htmls, and NOAA every 5 minutes
#
5 img/*.png
5 img/*.htm
5 img/*.html
5 img/*.xml
5 img/*.txt

Thanks to check if you see anything wrong.
Back to top
View user's profile Send private message Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Fri Feb 17, 2006 2:58 pm    Post subject: Reply with quote

Hmmm.

I've just had a look at your site, and although I can't get to index.html, I can get to some of the other files, which appear to be up to date, e.g.
http://www.vol-libre-cadurcien.net/MeteoFontanes/img/Current.htm

It looks like the process is basically working and your ftp setup is fine but for some reason not all of the expected files are being transferred.

In /var/log/messages does htmlgend tell you how many files are being created? Something like:

Feb 17 20:57:12 (none) user.info htmlgend1[3144]: <2043498583> : Generated: 1746 ms: 18 images, 19 html/xml files
Back to top
View user's profile Send private message
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 3:10 pm    Post subject: Reply with quote

As you say hmmm......
Anyway I get the following messages:

tail /var/log/messages
Feb 17 22:00:04 localhost wviewd[6517]: <2043671552> : storing record for 2006-02-17 22:00
Feb 17 22:00:05 localhost htmlgend[6524]: <2043671573> : Adding 30 minute sample...
Feb 17 22:00:05 localhost htmlgend[6524]: <2043671573> : Adding hour sample...
Feb 17 22:00:10 localhost htmlgend[6524]: <2043677273> : Generated: 439 ms: 34 images, 7 html/xml files
Feb 17 22:01:00 localhost CROND[7394]: (root) CMD (nice -n 19 run-parts --report /etc/cron.hourly)
Feb 17 22:01:10 localhost htmlgend[6524]: <2043736937> : Generated: 126 ms: 17 images, 7 html/xml files
Feb 17 22:02:10 localhost htmlgend[6524]: <2043796956> : Generated: 144 ms: 17 images, 7 html/xml files
Feb 17 22:03:10 localhost htmlgend[6524]: <2043856937> : Generated: 125 ms: 17 images, 7 html/xml files
Feb 17 22:04:10 localhost htmlgend[6524]: <2043916936> : Generated: 124 ms: 17 images, 7 html/xml files
Feb 17 22:05:10 localhost htmlgend[6524]: <2043976934> : Generated: 122 ms: 17 images, 7 html/xml files

Puzzling isn't it?
I do know that index.htm is regularly updated in /var/wview/img/ because I watch it locally and data is uptodate.

??????
Back to top
View user's profile Send private message Visit poster's website
Jean-Paul SEVESTRE



Joined: 09 Feb 2006
Posts: 30
Location: Fontanes, France

PostPosted: Fri Feb 17, 2006 3:42 pm    Post subject: Reply with quote

Hey! Jon, if your eagle eye found the current.html file updated, then the problem could come from "index.htm" file name. May be the web server does not accept any other index.htm file other than the opening page. In other terms only one index file accepted for one web site even though it is not in the same folder. Does that sound realistic? Unfortunately my cheap ISP will not give me any support and I can just assume.
Then is it possible do name this index file differently? If so what does that implies? i.e. Which conf files and others to modify?
I'll look into that tomorrow.
Bye for now
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 Feb 17, 2006 3:58 pm    Post subject: Reply with quote

It better be index.html being updated. For index.htx only, wview generates an "html" extension instead of "htm".

Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bhnb



Joined: 28 Nov 2005
Posts: 127

PostPosted: Fri Feb 17, 2006 5:04 pm    Post subject: Reply with quote

It's not just index.htm which is missing.
http://www.vol-libre-cadurcien.net/MeteoFontanes/img/tempdaycomp.png exists, but it's from earlier today (maybe when you did a manual upload?), and for some reason some of the png addresses just return a url, e.g. http://www.vol-libre-cadurcien.net/MeteoFontanes/img/netRainDay.png

As far as I can tell, in a default installation all of the png files are uploaded first, then htm, then html, then xml and finally txt (the same order as they are listed in wviewftp.conf). Given that, I don't understand why Current.htm is being updated but tempdaycomp.png isn't. It seems to be skipping files rather than just failing and stopping.

What else could be happening? Permissions? Times? To run tnftp with verbose output, can you try this and see what happens?

cd /var/wview
/usr/bin/ftp -Aiv -u ftp://remote_username:remote_password@remote_host/MeteoFontanes img/*.*

(note this uses -Aiv not -AiV as in the manual)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> FTP All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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