Page 1 of 2
Dual Language website
Posted: Sat 20 Feb 2010 3:55 pm
by Synewave
Hi,
I have created a website for my weather station located at my property in France.
The site is in english, and I have created a link that points to the French translated version of the index.htm file (for my french neighbours to also enjoy!).
I have downloaded the French version .htm files from the wiki and installed them into the /Cumulus/French directory.
In the Internet settings in Cumulus, I have added these files (in the additional files section) and named the remote file as indexfr.htm for example. I have also ticked the Process and FTP boxes. Standard files is also ticked.
Now, when I press webupdate, Cumulus successfully processes the French files and uploads them, but the standard files won't upload. If I untick FTP the French files, the standard files will upload OK.
Can anyone help?
Paul
Re: Dual Language website
Posted: Sat 20 Feb 2010 4:13 pm
by steve
It's possible that there is an error processing the French files, such that the standard ones don't then get done, but I can't see why that would be. Could you turn on ftp logging, please, and upload the ftplog.txt file?
Re: Dual Language website
Posted: Sat 20 Feb 2010 4:31 pm
by Synewave
Hi Steve,
Many thanks for a super-fast response.
I just enabled ftp logging and tried the web update again. This time I noticed in the FTP progress window that the standard files
had been successfully uploaded after the additional files.
I've checked the website
http://www.lehamel.eu and both the English and French pages are 'synchronised'.
Previously, when doing the webupdate, I didn't see any messages to do with uploading standard files.
I had noticed though that I was previously experiencing slow FTP transfers (outside of Cumulus), so could have been problems with my ISP or webhost earlier.
Many thanks again,
Paul
Re: Dual Language website
Posted: Sat 20 Feb 2010 4:41 pm
by Synewave
I think I replied too soon!
It's just started failing again.
Here's the FTPLOG:
Re: Dual Language website
Posted: Sat 20 Feb 2010 4:58 pm
by steve
It looks like it's timing out - no response for 15 seconds. Unfortunately the ftp logging isn't always a great deal of help, it's hard to say any more than that.
17:37:25:328 TWSocket will connect to 213.171.193.5:43294
17:37:25:406 ! Data Session opened (Put)
17:37:25:406 010817F0 TriggerDataSent 848
17:37:25:406 010810E0 TriggerDataSent 832
17:37:41:187 ! Aborting
17:37:41:187 ! HighLevelAsync 0
17:37:41:187 ! Abort detected
17:37:41:187 ! HighLevelAsync done
17:37:41:187 010817F0 TCustomWSocket.Shutdown 1 848
17:37:41:187 ! Data Session closed
Re: Dual Language website
Posted: Sat 20 Feb 2010 5:01 pm
by Synewave
Thanks for looking Steve.
I also think it is an FTP timeout issue, as I mentioned before either my ISP or webhosting provider is playing up today.
Paul
Re: Dual Language website
Posted: Mon 22 Feb 2010 7:25 pm
by Synewave
Hi Steve,
The problem seems to have developed further. After my last post the timeouts stopped and the standard and additional files were being uploaded fine.
But at some point today it all seemed to stop working - manual webupdate works fine, but timed update doesn't
So, I removed the additional files from the internet settings, restarted the computer (and Cumulus of course), waited for the five min interval to pass, and nothing was being uploaded to the website. If I clicked on webupdate it works fine.
So I reinstalled Cumulus (over the top), tried again and still nothing from auto update.
I've now enabled FTPLOGGING, but the timestamp for that file is not updating, unless I click webupdate.
It seems that the autoupdate has stopped for some reason.
I have two systems running, one a Vista system updating 15mins to
http://www.greatcollegestreet.co.uk , and the other an XP system updating to
http://www.lehamel.eu (which is failing to auto update).
Here is an extract from cumulus.ini
[FTP site]
Host=ftp.synewave.co.uk
Port=21
Username=synewave.co.uk
Password=removed for obvious reasons
Directory=/htdocs/LeHamelWeather
AutoUpdate=1
ActiveFTP=1
EnableRealtime=0
RealtimeInterval=10000
UpdateInterval=5
IncludeSTD=1
IncludeSTDImages=1
FTPRename=0
DeleteBeforeUpload=0
ResizeGraphs=0
GraphHeight=300
GraphWidth=750
ImageFolder=
ImageCopyRealtime=0
ExtraLocal0=C:\Program Files\Cumulus\web\indexfrT.htm
ExtraRemote0=htdocs/lehamelweather/indexfr.htm
ExtraProcess0=1
ExtraBinary0=0
ExtraRealtime0=0
ExtraFTP0=1
Any ideas why autoupdate has stopped?
Re: Dual Language website
Posted: Mon 22 Feb 2010 7:48 pm
by steve
The code for the auto update is the same as that for the manual update, so it's very odd that one works and the other doesn't. You could try turning on the debug log as soon as Cumulus starts, and see if any errors get logged to that, and also look in the latest diags file to see if there are any errors in there. But the fact that manual update works suggests that there won't be any errors logged.
If you turn on the ftp logging as soon as Cumulus starts, and don't do a manual update, nothing at all gets written to the ftp log?
Re: Dual Language website
Posted: Mon 22 Feb 2010 7:51 pm
by steve
By the way, I notice you're using active ftp mode - have you found that you need that to be set for it to work at all?
Re: Dual Language website
Posted: Mon 22 Feb 2010 8:13 pm
by Synewave
OK, restarted Cumulus enabled Debugging and FTPLogging, just waited for the 5mins to pass, didn't press manual update.
My observations are:
FTPLOG file hasn't been updated
DEBUG only contains repeated lines of 0000.000 : **** Logging Disabled
Latest diags shows:
22/02/2010 20:56:32.468 : Cumulus 1.8.9 Build 918 startup
=============================== OS version info =================================
Platform : Windows NT, Windows 2000, Windows XP, or Windows Server 2003 family.
OS Name : Windows XP (Service Pack 3)( (Personal))
(Major Version[ 5 ] Minor Version[ 1 ] Build Number[ 2600 ] Platform ID[ 2 ])
===================================================================================
22/02/2010 20:56:32.578 : Looking for strings file: C:\Program Files\Cumulus\strings.ini
22/02/2010 20:56:32.593 : Station type: Fine Offset
22/02/2010 20:56:32.593 : Short date format: 22/02/2010
22/02/2010 20:56:32.593 : Long date format: 22 February 2010
22/02/2010 20:56:32.812 : Loading all time records file C:\Program Files\Cumulus\data\alltime.rec
22/02/2010 20:56:32.812 : Showing main form
22/02/2010 20:56:32.890 : Looking for C:\Program Files\Cumulus\data\today.ini
22/02/2010 20:56:32.890 : Today.ini exists
22/02/2010 20:56:32.890 : Read today file: Date = 12/01/2010, LastUpdateTime = 12/01/2010 10:30:00
22/02/2010 20:56:32.890 : Todayfileraindaystart = 25.5
22/02/2010 20:56:32.890 : Todayfile is for today
22/02/2010 20:56:32.906 : ReadTodayfile: set notraininit false
22/02/2010 20:56:32.906 : Finding raintoday from logfile C:\Program Files\Cumulus\data\Jan10log.txt
22/02/2010 20:56:32.953 : Setting raintoday from logfile = 0
22/02/2010 20:56:32.953 : Setting uncalibrated raintotal = 25.5
22/02/2010 20:56:32.953 : Midnight rain not found, using raindaystart
22/02/2010 20:56:32.953 : Read yesterday file: Date = 12/01/2010
22/02/2010 20:56:32.953 : Rainthismonth from dayfile.txt: 0
22/02/2010 20:56:32.953 : Rainthisyear from dayfile.txt: 3.89999985694885
22/02/2010 20:56:33.187 : Diary log file = C:\Program Files\Cumulus\data\log.xml
22/02/2010 20:56:33.500 : 20:56:33 EWUSB Form Create
22/02/2010 20:56:33.578 : 20:56:33 EWUSB: HidControl Arrival
22/02/2010 20:56:33.578 : 20:56:33 EWUSB: HidControl Arrival
22/02/2010 20:56:33.578 : 20:56:33 EWUSB: HidControl DeviceChange
22/02/2010 20:56:35.500 : 20:56:35 EWUSB: Initialising EW USB
22/02/2010 20:56:35.500 : 20:56:35 USB device, VID = 0461 PID = 4D62
22/02/2010 20:56:35.500 : 20:56:35 USB device, VID = 0461 PID = 4D62
22/02/2010 20:56:35.609 : Logging switched
22/02/2010 21:13:13.921 : Logging switched
Website hasn't been updated.
Also, yes, I found the Active FTP seemed to help with the timeout problems over the weekend.
BTW, there is no weather station actually connected to the computer running Cumulus, but as you can see these web updates have worked previously.
Paul
Re: Dual Language website
Posted: Mon 22 Feb 2010 8:31 pm
by Synewave
Another BTW, the computer with the problem is running on French time (an hour ahead of UK time) just to make the logs a bit clearer.
Re: Dual Language website
Posted: Mon 22 Feb 2010 8:46 pm
by steve
Synewave wrote:BTW, there is no weather station actually connected to the computer running Cumulus
It doesn't start the timers unless it actually finds a weather station.
Re: Dual Language website
Posted: Mon 22 Feb 2010 8:52 pm
by Synewave
Hi Steve,
Thanks for a quick response.
That's very interesting, as it has worked OK for a short while before.
I'll stop worrying about it now with that valuable information and wait until the station is actually connected. There was me about to reinstall the O/S with Vista instead of XP as my Vista machine seems to work OK.
Thanks again,
Paul
Re: Dual Language website
Posted: Mon 22 Feb 2010 9:01 pm
by steve
Synewave wrote:That's very interesting, as it has worked OK for a short while before.
It starts the internet timers if you change the internet settings.
Re: Dual Language website
Posted: Mon 22 Feb 2010 9:06 pm
by Synewave
That's it, I understand now, all is explained.
Many thanks Steve.
Paul