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 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

A Little Day / night Chart Revisited ...

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

Moderator: daj

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

A Little Day / night Chart Revisited ...

Post by beteljuice »

The betejuice has been playing with the 'little day night chart' and the banner style one.

To create a mouse-over 'pop-up' with legend. The only way to demonstrate is within a page, so .....
Here's a demo on a dummy site, but I've made it so that you can customise to your own requirements and download all the necessary / modified files :shock:

Demo / Configurater

The DEMO / 'configurator' should work with M$ IE, If you can't remember where you live it will take a best guess at lat / lon / city - once you have set anything it will remember you for a week, because you may be back to 'tweak'.

Recap:
  • You get TWO daylight hours graphics which can be used as stand-alones
    The code is customised for you so you don't need PHP / coding knowledge
    If you want a mouse-over popup you can put it where you want and the code is provided for you
    .... and so on ...
'tis a plaything and should be accepted as is ....
Image
......................Imagine, what you will KNOW tomorrow !
Mapantz
Posts: 1777
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by Mapantz »

Hi beteljuice

It seems there's no 'night time' on the chart. :lol:
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: A Little Day / night Chart Revisited ...

Post by beteljuice »

... It seems there's no 'night time' on the chart.
I wonder ...... could that possibly be because for the location viewed there is no "Astronomical Night" at this time of year :lol:
Image
......................Imagine, what you will KNOW tomorrow !
Mapantz
Posts: 1777
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by Mapantz »

I'm confused?!

The pie chart shows no section of night time despite there being 8 hours of it.
Image
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by mcrossley »

Screen capture required I think? I see dusk segments but no true night as the betejuice said.
Mapantz
Posts: 1777
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by Mapantz »

2019-05-29 (2).png
Night time shows fine on Paul's website: http://www.komokaweather.com/
You do not have the required permissions to view the files attached to this post.
Image
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by mcrossley »

Ah! OK. It is as the beteljuice explained, we do not have any "nighttime" at UK latitudes near mid-summer, it is officially twilight all night as the Sun is not far enough below the horizon to count as "night".
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: A Little Day / night Chart Revisited ...

Post by PaulMy »

It is as the beteljuice explained, we do not have any "nighttime" at UK latitudes near mid-summer
NO nighttime??
When do the prowlers come out....

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
RayProudfoot
Posts: 3372
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: A Little Day / night Chart Revisited ...

Post by RayProudfoot »

Paul,

Of course we have nighttime. It’s dark outside now. But as Mark has said at higher latitudes the sun does not drop below the horizon enough for twilight to change to proper darkness.

The sun has to be more than 18° below the horizon for full darkness and it doesn’t between late May and late July.
Cheers,
Ray, Cheshire.

Image
RayProudfoot
Posts: 3372
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: A Little Day / night Chart Revisited ...

Post by RayProudfoot »

I’m happy to be corrected but if you subtract 18 from 66° 34’ ( the Arctic and Antarctic circles) you get 48° 34’.

Anywhere in either hemisphere with a latitude lower than that will have proper darkness all year. Higher and you won’t.
Cheers,
Ray, Cheshire.

Image
Mapantz
Posts: 1777
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by Mapantz »

Thanks for the info.

I genuinely never knew that about astronomical twilight being from sunset to sunrise in certain latitudes. I understand twilight, and it can be seen. But, there's never been any hint of light on the horizon at this time of night leading up to the Summer solstice. I regularly go beach fishing at this time of year and by 11pm, it is complete darkness until there's some light beginning to show around 3am.
Image
RayProudfoot
Posts: 3372
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: A Little Day / night Chart Revisited ...

Post by RayProudfoot »

You probably have to have studied astronomy at some stage to be able to recognise a truly dark sky. Sadly there are few places in the U.K. that are free of light pollution. I suspect it’s only in a truly dark area where you would be able to detect a twilight glow to the north at this time of year.

I don’t know your geographical area but if you have no urbanisation to the north you may be able to spot that glow. But more likely it would require a long exposure photo to reveal the light. Perhaps why it’s called astronomical twilight.
Cheers,
Ray, Cheshire.

Image
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: A Little Day / night Chart Revisited ...

Post by mcrossley »

Having done a bit of amateur astronomy I can tell you that it really isn't dark at all at this time of the year. As Ray said you can see the glow from the Sun as it passes to the north. Indeed the whole sky is washed out, objects that are easily visible in the winter cannot be seen at all or with great difficulty in the summer due to the background brightness.

Stumbling around in the dark becomes a lot easier in the summer too! A lot less stumblely that is :lol:

For astronomers, the summer months in the UK are primarily restricted to observing the planets and Moon.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: A Little Day / night Chart Revisited ...

Post by sfws »

I have recently updated from PHP 7.2 to PHP 7.3, I'm not aware of having changed anything else, but given I restarted using my Cumulus scripts after a long break, I can't be absolutely sure.
My little day night chart (it was very slightly edited from the one in this thread) was working but seems to have stopped generating a picture with the script unchanged (other than my latitude and longitude and the time of year) as I also tried restoring it from an old back up when the one I was using did not work. Although my script has error_reporting(E_ALL); in it, no error is being generated, so I have no idea where to start looking.
My web server is on my own PC and not viewable to others, so it may be different for anyone to help, but if anyone has a bright idea? Do you want me to zip up my script?
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: A Little Day / night Chart Revisited ...

Post by saratogaWX »

You can try doing a view-source on the local URL to the script .. it may show PHP error messages in it. I suspect that a Notice: type error message got in there somehow and is screwing up the image.
Also, you can put error_reporting(0); at the start of the script.. that would suppress any pesky text errata from showing and screwing up the image.
Post Reply