Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Moon phases Cumulus 1 v CumulusMX
- HansR
- Posts: 6058
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
The actual visual of the light of the moon is a complex issue but by the visualisation I include makes it a bit more comprehensible. Point is, that the angle, and as such the actual position of the moon defines what you see. Moonage is more difficult because of the difference between the actual rotation and that we observe with the rotation of the earth. The angle can be calculated though so that should be your driving parameter.
here).
So in summary: I think you should use angle (or percentage) i.s.o. moon age.
You can deduct an equation but that quickly becomes very complex (though it can be done). However after some research, the projection of the moonlight fraction as seen by us can be fairly approximated by an elliptic part (where light and darkness meet). That ellipse is defined by the radius of the moon (vertical) and the radius of the lighted part (horizontal). The horizontal part is defined by 'ellipse x-radius' = 'Moon radius' * cos( theta ). At least, that is what I use in a continuous simulation (visual So in summary: I think you should use angle (or percentage) i.s.o. moon age.
You do not have the required permissions to view the files attached to this post.
Last edited by HansR on Sun 05 Apr 2020 4:31 pm, edited 1 time in total.
Hans
https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
- 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: Moon phases Cumulus 1 v CumulusMX
the beteljuice again states the obvious !!!
Moonage is time count from New Moon .. simple
Moonage is time count from New Moon .. simple
......................Imagine, what you will KNOW tomorrow !
- mcrossley
- Posts: 12951
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
Yep! Nothing to do with phase - well only loosely, the only time you can guarantee they match is when age = 0beteljuice wrote: ↑Sun 05 Apr 2020 2:20 pm the beteljuice again states the obvious !!!
Moonage is time count from New Moon .. simple
Anyway, I've sorted it, the CMX moon phase/illumination calculation is already accurate*. The moon age is not, it will be out by a constant value for each lunar cycle. How far out? Approximately +/- 6.5 hours.
The next release will have accurate an moon age. It will also have the ability to generate an accurate phase image, so hopefully that will resolve all the issues.
* Accurate enough for a weather program anyway!
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
Good news,
Saves me the effort of reworking all the images I have from a days to a % basis.
I was going to rework the cloudbase images based on the above images and also convert them to %.
The present UI based website images are .png files 96 x 96 px on a transparent background.
The cloudbase images are .gif files 25 x 25 px on a dark blue background.
I think I will be stuck with a set of fixed images based on % for cloudbase as I presume you will have no interest in generating those and I would not expect you to. There is an additional issue with them in that they must be gifs and gifs do not support a transparent background which is why they are on a dark blue background to match the night images background.
I presume the images generated:-
1. Will have a transparent background so it looks OK on any website theme?
2. Are generated at every interval
3. Are at least around 100 x 100 px so they can be readily scaled as required.
Saves me the effort of reworking all the images I have from a days to a % basis.
I was going to rework the cloudbase images based on the above images and also convert them to %.
The present UI based website images are .png files 96 x 96 px on a transparent background.
The cloudbase images are .gif files 25 x 25 px on a dark blue background.
I think I will be stuck with a set of fixed images based on % for cloudbase as I presume you will have no interest in generating those and I would not expect you to. There is an additional issue with them in that they must be gifs and gifs do not support a transparent background which is why they are on a dark blue background to match the night images background.
I presume the images generated:-
1. Will have a transparent background so it looks OK on any website theme?
2. Are generated at every interval
3. Are at least around 100 x 100 px so they can be readily scaled as required.
- mcrossley
- Posts: 12951
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
Hi David, no Brian emailed me with this and other aspects he would like to see implemented, it was easier to reply to the email.
As above, the next version of CMX will support image output, it's customisable too, so you can use whatever base image and output size you want.
As above, the next version of CMX will support image output, it's customisable too, so you can use whatever base image and output size you want.
- 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: Moon phases Cumulus 1 v CumulusMX
@BGJK ..
??? gifs were the first graphic to allow transparency !they must be gifs and gifs do not support a transparent background
......................Imagine, what you will KNOW tomorrow !
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
@ beteljuice
Hmmm,
None of the tools I have will save an image with a transparent background as a .gif
Have since managed to modify the cloudbase file to use a .png moon image file.
Hmmm,
None of the tools I have will save an image with a transparent background as a .gif
Have since managed to modify the cloudbase file to use a .png moon image file.
-
- Posts: 1832
- Joined: Sat 17 Dec 2011 11:55 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 11 x64
- Location: Dorset - UK
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
I use GIMP for transparency in GIFS. Although, you can do pretty much everything to a PNG and more.
- laulau
- Posts: 678
- Joined: Tue 13 Oct 2009 10:52 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Win 7
- Location: Meyenheim, Alsace, FR
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
Sorry to have started it all
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
@laulau
No problem, something good is coming in build 3071 as a result (or maybe it was coming anyway?) - Moon images generated by CumulusMX, updated hourly and based on the real situation, not on moonage.
Working on updates to MX templates - Sorry C1 users this is not for you - go on update to MX, I dare you!
Hope to have this ready for release of build 3071
Requires changes to index, cloudbase and possibly other files to cope with different versions of MX that users may be running.
No problem, something good is coming in build 3071 as a result (or maybe it was coming anyway?) - Moon images generated by CumulusMX, updated hourly and based on the real situation, not on moonage.
Working on updates to MX templates - Sorry C1 users this is not for you - go on update to MX, I dare you!
Hope to have this ready for release of build 3071
Requires changes to index, cloudbase and possibly other files to cope with different versions of MX that users may be running.
-
- Posts: 1256
- Joined: Mon 09 Jul 2012 8:40 pm
- Weather Station: Davis VP2 Cabled
- Operating System: Windows 10 Pro
- Location: Auckland, New Zealand
- Contact:
Re: Moon phases Cumulus 1 v CumulusMX
MX UI Style websites
MX build 3071 moon image
index.php and
cloudbaseCUmx.php
Updated 2020 Apr 10
See first post main thread viewtopic.php?f=18&t=17845#p138283
MX build 3071 moon image
index.php and
cloudbaseCUmx.php
Updated 2020 Apr 10
See first post main thread viewtopic.php?f=18&t=17845#p138283