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

Daylength since last solstice

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

Moderator: daj

Post Reply
Friday
Posts: 4
Joined: Sat 18 Jun 2011 3:04 pm
Weather Station: WH1080
Operating System: XP
Location: NO

Daylength since last solstice

Post by Friday »

Hi all.

I want to get this implemented on my site:
- Number of days since the last solstice
- Number of days until the next solstice.
- How much longer (or shorter) the day is since the last solstice. (daylength based on sunrise and sunset. Longitude and latitude are also essential to calculate this correctly)

Like:
Today is 45 days since last solstice and 137 days until next solstice
The day is 4 hours an 34 min longer than last solstice.

It seems that Cumulus not can provide webtags for this, so this must be calculated in another way.
I think this is possible to achieve in PHP or Javascript. I'm no expert at writing code, so I need help to get ahead.

I have tried to find examples of code to calculate this, but have so far found nothing that can help me further.

I would appreciate if someone can provide example code for this.
Fridays are the best.....
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Daylength since last solstice

Post by RayProudfoot »

You could use this site. http://mycountdown.org/My_Countdown/My_ ... wn/widget/

I've used it to add a equinox countdown on mine. But it only counts down. You might struggle to find something that tells you how long ago something occured.
Cheers,
Ray, Cheshire.

Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Daylength since last solstice

Post by beteljuice »

But it only counts down
Once the event is past they count up as well ;)

Winter: http://mycountdown.org/tag.php?tag=winter+solstice
vernal: http://mycountdown.org/tag.php?search=equinox

UTC times of events: http://aa.usno.navy.mil/data/docs/EarthSeasons.php
Image
......................Imagine, what you will KNOW tomorrow !
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: Daylength since last solstice

Post by RayProudfoot »

Clearly I didn't leave my winter solstice countdown running long enough. I changed the code on 21 Dec to a equinox countdown.
Cheers,
Ray, Cheshire.

Image
Post Reply