Ftp problen with Consolewd on Raspberry Pi

Hi

I have a ftp problem with Consolewd on Raspberry Pi (Raspbian + last build of Consolewd):

The clientraw files are well generated on the local directory: /consolewdfiles but on the ftp server (on the same network) nothing, i checked the Proftpd log files, nothing from the Raspberry Pi IP.

My config.txt:

Weather station type=32 // wizard=33,Irox=59,WMR100=232,WMR200=233,WMR968=8,WMR918=3,Davis VP=31,Davis WMMII=4, WH1081=166,2310=60,WXT510=190,3600=61,Davis IP=32, OWWfile=71
OWW file location=
Davis VP IP port=22222                       // Port        for Davis VP IP data logger
Davis VP IP address=192.168.1.6           // IP address   "   "    "  "   "     "
Release VP IP=           // set to Y to release IP data logger every minute to allow davis web site to be updated
latitude=                  /// latitude, e.g -38.375 for southern hemisphere
longitude=                /// e.g -175.456 for east of UTC/London
Station name=Weather Station
Start up daily rain(mm)=0.0
Start up monthly rain(mm)=0.0
Do custom clientraw=N //For updating customclientraw for steel gauges (set to Y for yes, N for no) (every 5 minutes)
Customclientraw update rate=5   //seconds
Do wunderground=N //For updating wunderground.com (set to Y for yes, N for no) (every 5 minutes)
Wunderground username=
Wunderground password=
Wunderground timezone=-5    // e.g 12 for 12 hours ahead of GMT, -12 for - 12 hours
WU realtime=          //set to Y to send to WU real time
timezone=	(to change the local PC hour used)
Direction offset (whole degrees)=0
Barometer offset(hpa)=0
Comport number (e.g 1)=U //For non USB stations (e.g Davis, OS WMR968), use U for ttyUSB0 (i.e usb to serial)
Davis com method=2   // 1 for regular  2 for special davis serial read with USB data logger
Revb Davis VP=Y (Y for Yes (new model (default) ) N for No)
Davis rain gauge=3 (1 for 0.1 inch, 2 for 0.01 inch, 3 for 0.2mm)
Do mysql=N //for mysql updates (see the readme for the table structure), every 5 minutes
Mysql username=
Mysql password=
Mysql server=
Mysql databasename=
Mysql tablename=
Mysql port=
Mysql metric=Y (set N for oF, inches of rain, inches for baro)
Mysql time=300    (time interval between mysql update in seconds from 60 to 10000 sec)
Do CWOP updates=N //every 10 minutes
CWOP station id=
CWOP ham call sign=-1 // -1 is default (you do not have a Ham call sign)
CWOP Latitude=
CWOP Longitude=
Do clientraw FTP=y //(set to Y for yes, N for no)
FTP server=192.168.1.13
FTP username=login
FTP password=password
FTP port=21                                              //default is 21
FTP remote dir=/domains/weather/public_html/test/                             
FTP remote dir wx.html=
FTP use passive=y                                       //(set to Y for yes, N for no)
FTP use remote file rename=                    //Write here the remote name: NOTE that not all FTP servers allow remote file rename"
FTP time interval=60                   //the interval between  upload of the clientraw.txt and customclientraw files 
Save logfile=Y   //to save the .txt logfile (set to N to save on disk space)
Logfile metric=Y
Create custom file=N   //converts the custom tags in a file called wxlocal.html to wx.html
Use this filename instead of wx.html=
Use this filename instead of wx2.html=
Use this filename instead of wx3.html=
Use this filename instead of wx4.html=
Use this filename instead of wx5.html=
FTP the custom file=N    //will FTP the wx.html or filename you set to FTP server specified (clientraw FTP needs to be enabled too)
Units for custom tag file output:
Temp in celsius=Y
Wind in=kts          // options are: mph,kts,kph,m/s (changes the custom tags)
Baro in metric=Y
Rain in metric=Y
run cron files=Y  // set to N to not run the separate cron files
do custom log=y    // set to Y to create an appended logfile from a template (customlog.txt)
custom log out=customlogout.txt
copy clientraw/customclient raw to this directory=/
copy datafiles to this directory=/
copy logfiles to this directory=/
wmr200 data read delay=
create wxnow.txt file=   //set Y or N
wxnow.txt directory output=
update WOW=  //set Y or N
WOW id=
WOW pass=
Modified rain gauge=      //eg 0.9 (i.e 90% )
include units tags=    //set to Y or N (Y is default)
copy custom files to this directory=
update windfinder=   //set to Y or N
windfinder id=
windfinder pass=

I don’t know if it’s critical but I see you have lower case “y” for the two FTP options, and upper case for everything else.

Thanks for your reply, i tried with Y instead of y, the problem is the same…

@meteo.quimper
In your config,txt you specify:
FTP remote dir=/domains/weather/public_html/test/
That path should be exactly the path you have to follow when you logon with a ftp program.
Did you test with a FTP program if this is really the correct folder?
Normally it should be something like
FTP remote dir=/public_html/test/

Success, Wim

The path is good i’ve checked with Filezilla

what is the ftp info showing when you run cronftpreal from a terminal window

I tried with a another directory same problem, the test with conftpreal work:

Time       60 seconds
Remote name  
Port to use 21
login OK to 192.168.1.13
changing to /public_html/test/
upload clientraw.txt to 192.168.1.13 OK

i have the file clientraw.txt to the directory /public_html/test/ but when i launch with sudo ./consolewd nothing is uploaded

Do clientraw FTP=y //(set to Y for yes, N for no)

it is case sensitive…will need to be Y

(you say you have tried that?)

also is there live data arriving?
and also what weather station type?

@meteo.quimper

Please remeber when changing anything in the config.txt file (like y to Y) you have to restart consoleWD.
It reads the config.txt only at startup of the program.

Succes, Wim

I use now Y instead of y

I can see the loop data on the terminal window (connected to the Raspberry Pi with ssh):

Davis Data OK
Current data : Temperature= 5.3 Windspeed =0.0 Gustspeed =0.0 Direction =13 Humidity=96 Barometer=1001.3 Daily Rain=0.0
login OK to 192.168.1.13
changing to /public_html/test/
upload clientraw.txt to 192.168.1.13 OK
Requesting LOOP data from IP
raw vp baro 1001.3
raw vp temp 5.3
Vpsolar = 0

It’s seems to work now: http://www.meteo-quimper.fr/test/