Sandaysoft

Support forum for Cumulus weather station software
It is currently Sun May 19, 2013 1:24 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Sending Data to 2 web servers
PostPosted: Fri Jan 27, 2012 6:31 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
This is probably a crazy question but would it be possible to send data from Cumulus to 2 different web servers and run 2 php websites while using the Saratoga Templates?? eg server A is hosting waterfordcityweather.com while server B hosts waterfordweather.com

Cheers

Mike

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Fri Jan 27, 2012 9:03 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17548
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Cumulus only supports uploading web pages to one ftp server. But you could use a 'batch' file run as an external command to ftp the files to another server, as described here: http://wiki.sandaysoft.com/a/SFTP. WinSCP does 'normal' FTP as well as SFTP.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Fri Jan 27, 2012 12:53 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
steve wrote:
Cumulus only supports uploading web pages to one ftp server. But you could use a 'batch' file run as an external command to ftp the files to another server, as described here: http://wiki.sandaysoft.com/a/SFTP. WinSCP does 'normal' FTP as well as SFTP.


Thanks Steve

Will look into that.

Mike

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Fri Jan 27, 2012 1:23 pm 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1845
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
You should be able to ftp to your 'prime' site and the 'source' the wxCUdata for the 'secondary' from the 'prime'. ;)

I think ......

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Fri Jan 27, 2012 2:51 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
beteljuice wrote:
You should be able to ftp to your 'prime' site and the 'source' the wxCUdata for the 'secondary' from the 'prime'. ;)

I think ......


Would i use the software mentioned by Steve to do this or do you know of another method?

Edit: Also which files would i need to use to get the Saratoga Scripts to work.

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Fri Jan 27, 2012 7:05 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
Are the two site on different hosting servers or are they both on the same hosting server but under different directories or sub-directories?


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Sat Jan 28, 2012 12:59 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
mickopla wrote:
beteljuice wrote:
You should be able to ftp to your 'prime' site and the 'source' the wxCUdata for the 'secondary' from the 'prime'. ;)

I think ......


Would i use the software mentioned by Steve to do this or do you know of another method?

Edit: Also which files would i need to use to get the Saratoga Scripts to work.

The 2 sites are on different servers.

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Sat Jan 28, 2012 2:05 am 
Offline
User avatar

Joined: Tue Dec 09, 2008 1:37 pm
Posts: 1845
Location: Dudley, West Midlands, UK
Weather Station: None !
Operating System: XP SP3
As well as the main data file for the 'base' pages, there are other reports / files which may be required for extended information. Whilst do-able by scripting it would beter to find a dual ftp solution.

The example you quote suggests the same (mirrored) site ?

_________________
Image
......................Imagine, what you will KNOW tomorrow !


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Sat Jan 28, 2012 2:38 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
beteljuice wrote:
As well as the main data file for the 'base' pages, there are other reports / files which may be required for extended information. Whilst do-able by scripting it would beter to find a dual ftp solution.

The example you quote suggests the same (mirrored) site ?


Yes basically the address for my php site now is www.waterfordcityweather.com/index.php which is long so i decided to purchase www.waterfordweather.com which is shorter and might get improved search results in google. I want to keep the non php website www.waterfordcityweather.com as is because its a more basic site and the base template is from Cumulus but i have modified the page.

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Mon Jan 30, 2012 4:10 am 
Offline
User avatar

Joined: Wed Jun 11, 2008 7:36 pm
Posts: 377
Location: L'Estartit, Spain
Weather Station: WMR-968
Operating System: Windows 8
If you wish identical content on the two sites - ftp to one site (A) and then on the alternate site (B) do a redirect to the first site. No one will ever notice!

On site B use an html page named index.htm containing:

<body>
<script>
location = "http://www.site A";
</script>
</body>


That is all you need.
George Wheelock

_________________
Image


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 1:01 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
gwheelo wrote:
If you wish identical content on the two sites - ftp to one site (A) and then on the alternate site (B) do a redirect to the first site. No one will ever notice!

On site B use an html page named index.htm containing:

<body>
<script>
location = "http://www.site A";
</script>
</body>


That is all you need.
George Wheelock


Thanks George
Sounds simple enough to do. Will give it a try later.

Edit: That did the trick. Anyone now who goes to www.watefordweather.com gets the mirrored website :D

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 8:56 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2506
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 8:58 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
mcrossley wrote:
I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?
Indeed, my thoughts exactly - I have been doing that with about a dozen of registered domain names... ;)


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 4:43 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
mcrossley wrote:
I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?


If they are on different hosts, that may not be possible. Most Registrar DNS setups allow you to do this at the DNS level with forwarding there though.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 6:02 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
mcrossley wrote:
I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?


Just like TNET weather said would this be possible if dealing with two separate hosts??? If so how would i do this?

Mick

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group