Page 1 of 1

Website setup

Posted: Thu 05 Aug 2010 7:42 am
by alan2605
I am trying to setup a web page to show my weather. I am using Cumulus 1.9.0 and have tried to follow the instructions found at http://wiki.sandaysoft.com/a/Simple_Website_setup to set up my page. I have configured the 'Internet' section in various ways but when I check the ftplog it keeps coming up with 'Access is denied' against all the htm files.

I don't know if this is relevant but I run the weather station and my own web site on the same PC.

Any help appreciated.

Re: Website setup

Posted: Thu 05 Aug 2010 7:52 am
by steve
Can you tell whether the log is saying that access to the local or remote file is denied? It sounds like a simple permissions problem with the ftp account, but if you're running your own web server I guess you know what you're doing!

With the web server being on the same machine as Cumulus, you don't need to use ftp at all, you could get Cumulus to copy the files over to your web folder instead. Don't specify a host name, and on the 'files' tab, turn off 'include standard files' and 'include standard images'; list the web pages in the boxes, making sure not to tick 'ftp?', and specify a folder for the images to be copied to. I think that's about it, but maybe someone who actually does it this way could confirm.

Re: Website setup

Posted: Thu 05 Aug 2010 8:34 am
by alan2605
Thanks Steve for your reply. I am new to weather stations although I have run a web site from home in the past. Could you tell me what files that is in the Cumulus directory need to be copied to the website/weather directory as my reading the original setup instruction did not seem simple to me.

As everything is on the same PC what setup needs to be set on the 'Site/Options' tab for the Web Site if I remove ftp.

I am also looking to run Cumulus Realtime and appreciate help with which files etc. are needed and where they are to be put. Are they added to a seperate directory or are they put on the 'weather' directory? Do the image files (hum, humsm, intemp, etc.) need to by copied to the website as well, as if they do then how do I do that as there is only room for 10 files to be put under the 'files' tab.

Sorry for sounding a bit thick but since I was diagnosed with cancer my mind cannot cope with understanding too much at one time so an idiots guide will be appreciated.

Re: Website setup

Posted: Thu 05 Aug 2010 9:46 am
by steve
alan2605 wrote:Thanks Steve for your reply. I am new to weather stations although I have run a web site from home in the past. Could you tell me what files that is in the Cumulus directory need to be copied to the website/weather directory as my reading the original setup instruction did not seem simple to me.
From the wiki:
With your FTP tool, locate the ‘webfiles’ folder within the Cumulus folder on your PC. Upload the following to your webspace (using FTP)

* weatherstyle.css
* wz_jsgraphics.js
* CumulusRealtime.swf
* dbimages (this is a folder, so upload it and all of it’s files will also be uploaded)

now create a folder ‘images’ This must be in lowercase, with no quotes.

upload picture.jpg to the images folder
So you need two folders within your weather site's 'root' folder, images and dbimages. Copy the picture.jpg file to images, and the contents of dbimages to dbimages. Copy those other three files listed to your 'root' folder. The structure you should end up with is shown in the Cumulus help file under 'setting up your web site'.
As everything is on the same PC what setup needs to be set on the 'Site/Options' tab for the Web Site if I remove ftp.
You don't need anything in 'web site'. In 'web settings' you need autoupdate ticked and an interval.
I am also looking to run Cumulus Realtime and appreciate help with which files etc. are needed and where they are to be put. Are they added to a seperate directory or are they put on the 'weather' directory? Do the image files (hum, humsm, intemp, etc.) need to by copied to the website as well, as if they do then how do I do that as there is only room for 10 files to be put under the 'files' tab.
There are two version of Cumulus Realtime, which is slightly confusing. The earlier, simpler version is just two Flash gauges showing wind speed and direction, on the 'gauges' page. That's the swf file above. The later version is a Silverlight application which is a separate download from the downloads page, and has instructions with it - there are three files you ned to upload.

Those image files you've listed are the 'graph' files. You don't need to list them separately, they all get copied to the folder you specify in the "copy images to folder" box on the files setup page. Normally this will correspond to the 'images' folder that you created as described above.

Re: Website setup

Posted: Thu 05 Aug 2010 2:24 pm
by alan2605
I have deleted everything and started again. I have attached files showing the weather, images and dbimages folders as I think they should be.

Putting http://xxx.xx.xx/weather into the address bar shows the message Directory Listing Denied with This Virtual Directory does not allow contents to be listed.

I have also tried http://xxx.xx.xx/weather/CumulusRealtime.html and that is showing the gauges with the loading data prompt which just hangs there.

I'm sure I'm missing something simple but just can't see it.

Any help appreciated.

Re: Website setup

Posted: Thu 05 Aug 2010 2:38 pm
by steve
That all looks fine so far, but it looks like you've only told Cumulus to copy the images and not the html pages. There is no 'easy' way for this as there is with the images (this whole 'copy instead of ftp' thing was something of an afterthought when someone requested it). You have to list the six template files in the left hand set of boxes and the destination html files in the right hand set of boxes, with full paths to show where they should go.

So the left hand boxes need to have: indexT.htm, recordsT.htm, gaugesT.htm etc (all from the Cumulus 'web' folder, six in total) and the right hand set of boxes need to have index.htm, records.htm, gauges.htm etc, with full paths in all boxes.

Cumulus Realtime also needs realtime.txt copying, so you'll also need to add that to the list, but with 'realtime' ticked.

Re: Website setup

Posted: Thu 05 Aug 2010 3:36 pm
by alan2605
Well I have done that and the attached is what apprears.

The templates have appeared but no data although the realtime text file is updating.

At the moment the site can be seen at http://hardwicks.homeip.net/weather and the realtime page at http://hardwicks.homeip.net/weather/Cum ... ltime.html if that helps you at all.

Re: Website setup

Posted: Thu 05 Aug 2010 4:05 pm
by Synewave
Alan,

When the above webpage is showing variables such as <#dawn> it means Cumulus hasn't processed the file and replaced the variables with the real weather station values.

It looks like you haven't processed the indexT.htm etc files. On the Cumulus Internet Configuration screen where you have specified the 'copies', you also need to have Process? ticked.

Re: Website setup

Posted: Thu 05 Aug 2010 4:06 pm
by steve
alan2605 wrote:The templates have appeared but no data
You need to tick the 'process' box for each file to get Cumulus to process the files to replace the web tags with actual data.
the realtime page at http://hardwicks.homeip.net/weather/Cum ... ltime.html if that helps you at all.
Your XML file has http://www.hardwicks.co.uk/weather/realtime.txt for your realtime URL, but your page is at hardwicks.homeip.net so you are trying to do cross-domain calls with Silverlight - the instructions tell you what to do, but here's the link the instructions send you to: https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=1495

Re: Website setup

Posted: Thu 05 Aug 2010 6:27 pm
by alan2605
Thanks for the info. At least the general weather is working OK now. Just need to look at the Realtime part another day which stills seems to be freezing up on loading data.

Re: Website setup

Posted: Thu 05 Aug 2010 6:34 pm
by steve
alan2605 wrote:Just need to look at the Realtime part another day which stills seems to be freezing up on loading data.
Typo in your XML config file:

http://hardwicks.hpmeip.net/weather/realtime.txt

Re: Website setup

Posted: Thu 05 Aug 2010 6:49 pm
by alan2605
Thanks for that Steve. Works a treat now.

Have just sent a donation for all your help.

Will sort out changing the URL to my own URL when I have time. I will remember to change the XML file when I do that.

Thanks again

Alan