Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Dual Location Info

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
sanramonrover
Posts: 96
Joined: Mon 02 Aug 2010 6:51 pm
Weather Station: 265NC
Operating System: dreaded Win 7
Location: to be San Ramón, Costa Rica

Dual Location Info

Post by sanramonrover »

I know this is rather beyond the intent of Cumulus, but I was wondering :roll:
Cumulus has a great almanac table, and I wanted to show the almanac info (sunrise, set times, etc) for two locations on the one web page,
I assume the Cumulus program cannot access two different sets of lat and long data, since only one is entered in the set up,
so I installed a second Cumulus in a different directory than the first and entered the second lat and long info.

Now, I am curious as to how to edit the IndexT.htm page to allow it to display both sets of almanac info correctly. I got it to display the same info twice, but not quite what I had in mind.

I guess I need to know how to "call" info into a web page from the other Cumulus index.htm.

Anyone tried it?
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Dual Location Info

Post by gemini06720 »

Do you have any knowledge of PHP?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Dual Location Info

Post by mcrossley »

Or Javascript (for a client side solution)?
sanramonrover
Posts: 96
Joined: Mon 02 Aug 2010 6:51 pm
Weather Station: 265NC
Operating System: dreaded Win 7
Location: to be San Ramón, Costa Rica

Re: Dual Location Info

Post by sanramonrover »

Well, I guess, after reading pages on PHP and Javascript via Google, I'll have to say I don't know anything about either. But having learned HTML from a book, can PHP or Javascript be harder?
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Dual Location Info

Post by mcrossley »

I guess the question is do you have sufficient control of your web server to setup and run PHP? If so then that will be your best solution, if not then I think you will have to use a client side Javascript solution.
sanramonrover
Posts: 96
Joined: Mon 02 Aug 2010 6:51 pm
Weather Station: 265NC
Operating System: dreaded Win 7
Location: to be San Ramón, Costa Rica

Re: Dual Location Info

Post by sanramonrover »

Thanks for the insights. From previous discussions with my server, I believe they do not allow PHP.
So I guess I'll learn how to make javascript work. Then I'll need to know what to do with it.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Dual Location Info

Post by gemini06720 »

Fred, I seem to remember from previous discussions, unless I am mistaking you with someone else, that you live (or used to live) in Calgary (Alberta, Canada) and that you (and 'spousal unit' Wendy) have an incredibly beautiful Bed & Breakfast house (Casa Sueños) in San Ramón, Costa Rica...

So, where is your server (host) located? I know that your site(s) used to be hosted by Chinook Webs (Calgary, Alberta Canada) - have you moved, yet, your site to a host in Costa Rica?

If you are still with Chinook Webs, I would think that PHP should be readily available to you - the Chinook Webs plans are basically aimed at small businesses.

One way to check the availability of PHP on one's server is to upload a small file with a single line of code:

Code: Select all

<?php echo phpinfo(); ?>
The file must be saved with the extension PHP, such as 'php_test.php'. Then from one's browser, one would load the file with a URL such as:

Code: Select all

http://www.mywebsite.com/php_test.php
If PHP is available, then one would rapidly find out by the amount of information that would be displayed on one's screen. If PHP is not available, then, nothing should be displayed (except maybe for an error message).
sanramonrover wrote:Well, I guess, after reading pages on PHP and Javascript via Google, I'll have to say I don't know anything about either. But having learned HTML from a book, can PHP or Javascript be harder?
PHP is not that hard to learn and quite easy to put into practice, one just need a bit of patience and do a lot of reading (I find that books are preferable to online documents). As for JavaScript, that is a whole different thing, a very 'dry' and very unfriendly programming language.
sanramonrover
Posts: 96
Joined: Mon 02 Aug 2010 6:51 pm
Weather Station: 265NC
Operating System: dreaded Win 7
Location: to be San Ramón, Costa Rica

Re: Dual Location Info

Post by sanramonrover »

Yes gemini, you have the right guy. My server is still in Canada, but we connect somehow through a wireless system to a Costa Rican company, then to Canada. I'll try the PHP trick. Something to learn on the long rainy evenings here.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Dual Location Info

Post by gemini06720 »

sanramonrover wrote:I'll try the PHP trick. Something to learn on the long rainy evenings here.
Fred, le me know if the PHP code give some positive results.

Have you moved permanently to San Ramón, Costa Rica or have you just gone there for the winter ... you know, winters in Calgary can be so ... so ... cold... :mrgreen:
sanramonrover
Posts: 96
Joined: Mon 02 Aug 2010 6:51 pm
Weather Station: 265NC
Operating System: dreaded Win 7
Location: to be San Ramón, Costa Rica

Re: Dual Location Info

Post by sanramonrover »

Thanks gemini. It worked. Sent you a private email with details.
Post Reply