Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

How Cumulus calculate sunrise and sunset

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
User avatar
nikokara
Posts: 11
Joined: Fri 14 Oct 2011 3:13 pm
Weather Station: OlympData Offset
Operating System: Winxp
Location: Greece

How Cumulus calculate sunrise and sunset

Post by nikokara »

Hallo :D

May i ask the method Cumulus App calculate's sunrise and sunset, and the method for difference between today and tomorrow daylight.

Note. I'm familar with Delphi (Pascal)
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How Cumulus calculate sunrise and sunset

Post by steve »

It uses a third party component, which uses the same algorithms which I guess most software uses, from the book "Astronomical Algorithms" by Jean Meeus. "Daylight" is the period between dawn and dusk, i.e between the start of morning civil twilight and the end of evening civil twilight.
Steve
User avatar
Solorize
Posts: 497
Joined: Tue 01 Feb 2011 8:22 am
Weather Station: WH1081
Operating System: Win 10, XP, Xubuntu, Linux Mint
Location: Wokingham, Berkshire, UK
Contact:

Re: How Cumulus calculate sunrise and sunset

Post by Solorize »

After a quick look I have found some examples, see below links
which may help.

Algorithm
http://williams.best.vwh.net/sunrise_su ... orithm.htm

Coded in C
http://souptonuts.sourceforge.net/code/sunrise.c.html
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

CGM UKScene Radio (pi)
http://cgmuksceneradio-pi.noip.me/

Image
User avatar
nikokara
Posts: 11
Joined: Fri 14 Oct 2011 3:13 pm
Weather Station: OlympData Offset
Operating System: Winxp
Location: Greece

Re: How Cumulus calculate sunrise and sunset

Post by nikokara »

Thank you Steve, thank you Solorize :D :clap:

U.S. National Oceanic & Atmospheric Administration (NOAA) uses the same algorithm, based on equations from Astronomical Algorithms, by Jean Meeus.

Here are the links
http://www.esrl.noaa.gov/gmd/grad/solcalc/
http://www.esrl.noaa.gov/gmd/grad/solcalc/sunrise.html

PHP has a build in function (date_sun_info) for Sunrise, Sunset, plus Civilian Twilight, Nautical Twilight and Astronomical Twilight. ;)

attached two helpful excel files for Solar Calculations Enjoy!!!
NOAA_Solar_Calculations_day.xls
NOAA_Solar_Calculations_year.xls
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12763
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: How Cumulus calculate sunrise and sunset

Post by mcrossley »

nikokara wrote:thank you Solorize
If ever there was a more apt username... :lol:
User avatar
Solorize
Posts: 497
Joined: Tue 01 Feb 2011 8:22 am
Weather Station: WH1081
Operating System: Win 10, XP, Xubuntu, Linux Mint
Location: Wokingham, Berkshire, UK
Contact:

Re: How Cumulus calculate sunrise and sunset

Post by Solorize »

;)
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

CGM UKScene Radio (pi)
http://cgmuksceneradio-pi.noip.me/

Image
Post Reply