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

Cumulus Web Page Calculation

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

Moderator: daj

Post Reply
wd40
Posts: 448
Joined: Thu 05 Aug 2010 10:02 pm
Weather Station: WS2080
Operating System: W7
Location: GA, USA
Contact:

Cumulus Web Page Calculation

Post by wd40 »

I have learned by first lesson in html that everyone else probably knew. It only does layout coding if that is the proper term and it want perform math functions.

As I understand it so far, java is my best way to go.

I ran this script I found on the internet on my blog and it worked so I have at least got my feet wet.

<script type="text/javascript">
document.write((2+3)*2);
</script>

I read somewhere that coding will suck the life out of your day. 8-) Got to have something to do on rainy days.

Randy
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumulus Web Page Calculation

Post by daj »

Great start Randy,
wd40 wrote:As I understand it so far, java is my best way to go.
Just to be clear, you are coding in Javascript, not Java. Best to get the terminology correct ;)

The two common ways are Javascript or PHP for doing all the fancy stuff. They both have the good and bad points. Possibly the biggest consideration is that any Javascript is run on the users browser -- so the page is downloaded and their PC does the work of Javascript. With PHP it is all done on the server and the result is sent to the user.
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus Web Page Calculation

Post by steve »

wd40 wrote:As I understand it so far, java is my best way to go.
A tip, before you get into a bad habit: Java and JavaScript are completely unrelated (even though a certain user here tries to deny that). JavaScript is what you're using.

Edit: Ah - beaten to it! :lol:
Steve
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumulus Web Page Calculation

Post by daj »

steve wrote:Edit: Ah - beaten to it! :lol:
It's strange -- sometimes the fourm will tell you if someone has already posted while you were writing (In which case I cancel my reply if it is the same). Other times it does not :?
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Cumulus Web Page Calculation

Post by steve »

daj wrote:It's strange -- sometimes the fourm will tell you if someone has already posted while you were writing (In which case I cancel my reply if it is the same). Other times it does not :?
I've noticed that; I think it's the timing. Or a bug. On a number of occasions I've missed someone's post completely, and perhaps only noticed it days later, because it was posted at the same time as mine, particularly if it involves a 'page turn'.
Steve
wd40
Posts: 448
Joined: Thu 05 Aug 2010 10:02 pm
Weather Station: WS2080
Operating System: W7
Location: GA, USA
Contact:

Re: Cumulus Web Page Calculation

Post by wd40 »

daj wrote:Great start Randy,

Just to be clear, you are coding in Javascript, not Java. Best to get the terminology correct ;)

:lol: Lesson 2

Thank you both.

Randy
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: Cumulus Web Page Calculation

Post by Ned »

daj wrote: The two common ways are Javascript or PHP for doing all the fancy stuff. They both have the good and bad points. Possibly the biggest consideration is that any Javascript is run on the users browser -- so the page is downloaded and their PC does the work of Javascript. With PHP it is all done on the server and the result is sent to the user.
One stumbling block I found with PHP is that all servers do not support it. I had to search around for a free PHP server to host my banner only, as my home page server couldn't :x
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Cumulus Web Page Calculation

Post by daj »

Ned wrote:One stumbling block I found with PHP is that all servers do not support it. I had to search around for a free PHP server to host my banner only, as my home page server couldn't :x
My hosting is free and PHP friendly ;-) but I know what you are saying. A lot of the free offerings don't do it, or slap adverts all over the pages
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
Post Reply