Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)

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

Simple Round Moon Mod

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

Moderator: daj

Post Reply
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

Simple Round Moon Mod

Post by beteljuice »

For those who prefer The Moon to be round ;)

The beteljuice has done a simple 'fix' :o

First of all you need this graphic in your [website.com]/[cumulus]/images directory
moon_mask2.gif
Then, in your *****T.htm you need to find:

Code: Select all

    <td rowspan=3><IMG src="images/moon.bmp" alt="Moon" width="64" height="64" hspace="10" align="left" border="0"></td>
... and REPLACE it with:

Code: Select all

    <td rowspan=3>
      <div style = "position: relative;">
         <img src = "images/moon.bmp" alt="" title="" style="position: relative;  left: 0;" />
         <img src = "images/moon_mask2.gif"  alt="Current Moon" title="Current Moon" style="position: absolute;  left: 0;" />
      </div>
    </td>
That's it !

Don't forget to save a copy of your *****T.htm files somewhere 'safe' - because everytime you do a Cumulus update, they will be overwritten :shock:

PS. If your page background is not white, use a graphics prog to change the colour of the mask :roll:
You do not have the required permissions to view the files attached to this post.
Last edited by beteljuice on Tue 24 Feb 2009 11:30 am, edited 2 times in total.
Image
......................Imagine, what you will KNOW tomorrow !
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: Simple Round Moon Mod

Post by beteljuice »

Take #2

It would seem the Moon isn't round, and the 'mask' a little small, so here is a slightly oversize (round) mask;
moon_mask2.gif
When It's the next Full Moon I'll try to produce a better mask !
You do not have the required permissions to view the files attached to this post.
Image
......................Imagine, what you will KNOW tomorrow !
GlynH
Posts: 102
Joined: Wed 25 Feb 2009 3:47 am
Weather Station: Davis VP2+
Operating System: Pi 4B Buster
Location: Oxfordshire, UK

Re: Simple Round Moon Mod

Post by GlynH »

There is a great moon phase module here for use on your own website;

http://www.calculatorcat.com/moon_phase ... ases.phtml

However it will take a better mind than mine to get it to replace the existing moon thingy without buggering up the layout of the existing table.

So how's about it Beteljuice...do you fancy a challenge so lazy/ignorant people like me can reap the benefits of other people's hard work? ;)

i've given up after 2 hours of cutting/pasting trying to get it to appear in the right place without spoiling the existing layout of my pages... :x

Regards,
-=Glyn=-
User avatar
aadal
Posts: 168
Joined: Tue 04 Nov 2008 8:07 pm
Weather Station: WH 1080
Location: Skodje
Contact:

Re: Simple Round Moon Mod

Post by aadal »

GlynH wrote:There is a great moon phase module here for use on your own website;

http://www.calculatorcat.com/moon_phase ... ases.phtml

However it will take a better mind than mine to get it to replace the existing moon thingy without buggering up the layout of the existing table.

So how's about it Beteljuice...do you fancy a challenge so lazy/ignorant people like me can reap the benefits of other people's hard work? ;)

i've given up after 2 hours of cutting/pasting trying to get it to appear in the right place without spoiling the existing layout of my pages... :x

Regards,
-=Glyn=-
Yes there is :D
What about live mon?
  • Windows Vista
Image

Image
GlynH
Posts: 102
Joined: Wed 25 Feb 2009 3:47 am
Weather Station: Davis VP2+
Operating System: Pi 4B Buster
Location: Oxfordshire, UK

Re: Simple Round Moon Mod

Post by GlynH »

aadal wrote:Yes there is :D
What about live mon?
Pass. WTF is live mon? :?

Regards,
-=Glyn=-
User avatar
aadal
Posts: 168
Joined: Tue 04 Nov 2008 8:07 pm
Weather Station: WH 1080
Location: Skodje
Contact:

Re: Simple Round Moon Mod

Post by aadal »

GlynH wrote:
aadal wrote:Yes there is :D
What about live mon?
Pass. WTF is live mon? :?

Regards,
-=Glyn=-

telescopic seing live :geek:
  • Windows Vista
Image

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: Simple Round Moon Mod

Post by beteljuice »

The beteljuice does not find that challenging.

This would be better:
Image
It would seem no one knows about this site,

http://www.fourmilab.ch/

but now I suppose you want to know how to fill in the 'form' and get the the url.

Tough ! - I am not going to design your site for you

There are also more flexible possibilies using external elements to the Cumulus basics, here's the output from an experimental beteljuice Almanac, it puts Moon rise / set times in true chronological order, knows about 'now', and is set for my observer location:

Just before midnight:

Sunset was 17:41
Dusk ended: 18:16 - 11:48 hrs daylight

Dawn tomorrow: 06:26
Sunrise tomorrow: 07:00
Sunset tomorow: 17:43
Dusk ends tomorrow: 18:18 - 11:52 hrs daylight

Moon rose at 07:20 and set at 21:07.
Current altitude is -20° (Below horizon)
and azimuth 321° NW.
The disk is now 9% illuminated (Waxing).

Next full Moon on 11 March at 02:36.
Next new Moon on 26 March at 16:09

By the way the time is 23:54 and it's night (Dark)

At midnight:

Sunset yesterday 17:41
Dusk ended: 18:16 - 11:48 hrs daylight

Dawn starts: 06:26
Sunrise today: 07:00
Sunset today: 17:43
Dusk ends: 18:18 - 11:52 hrs daylight

Moon rises at 07:33 and sets at 22:29.
Current altitude is -20° (Below horizon)
and azimuth 322° NW.
The disk is now 9% illuminated (Waxing).

Next full Moon on 11 March at 02:36.
Next new Moon on 26 March at 16:09

By the way the time is 00:00 and it's night (Dark)

PS. the beteljuice would not recommend FrontPage for html / code work.
Image
......................Imagine, what you will KNOW tomorrow !
GlynH
Posts: 102
Joined: Wed 25 Feb 2009 3:47 am
Weather Station: Davis VP2+
Operating System: Pi 4B Buster
Location: Oxfordshire, UK

Re: Simple Round Moon Mod

Post by GlynH »

Wassup Beteljuice...can't you sleep either? ;)

Well I beg to differ but whatever that picture was does nothing for me I'm afraid...was it a microscope shot of some dust by any chance? :lol:

In the time it took you to compose your post you could have designed a Corporate website methinks... :P

I did stumble across the fourmilab website while I was searching for a way to automatically display the phase of the moon at night whilst displaying a picture of the sun during the day but I guess that was asking a but much... :mrgreen:

I might just end up displaying a picture I took of Jupiter and two of her moons through my little telescope which was out in the cold in the back garden one night while I was hunched over a laptop in the warm in the kitchen... 8-)

http://farm4.static.flickr.com/3260/281 ... 5a49_o.jpg

I fully agree with you about FP2003 - cannot get my head round it at all... :?

Kind regards,
-=Glyn=-
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: Simple Round Moon Mod

Post by beteljuice »

GlynH wrote:... I was searching for a way to automatically display the phase of the moon at night whilst displaying a picture of the sun during the day but I guess that was asking a but much... :mrgreen:
'Tis possible

https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=735

... but not really for a coding novice

Try learning some basics first, get clever and make mistakes later :lol:
Image
......................Imagine, what you will KNOW tomorrow !
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: Simple Round Moon Mod

Post by beteljuice »

Only just realised that the (Cumulus) Moon pic correctly adjusts itself for those of you South of The Equator (or at least at the site I looked at it did !)

So those users would have to 'flip' the mask with a suitable graphics prog or something like irfanview. Strictly speaking you should 'mirror' it as well, but I don't think it's going to be more than 1px out.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
MarkB
Posts: 68
Joined: Tue 13 Jan 2009 4:03 pm
Weather Station: Elecsa 6975 (Fine Offset)
Contact:

Re: Simple Round Moon Mod

Post by MarkB »

While we are on about the moon - does anyone know why the image has to be a .bmp? (Is it possible to change it?)

It's only a minor point, but when I browse my website with my Symbian phone the moon.bmp is rendered as a broken image. If I convert it to a .png then it displays just fine in whatever browser.

:D
Image
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: Simple Round Moon Mod

Post by steve »

That's the only format the moon component allows (it's the only format any Delphi component allows, unless the component writer has added code specifically to save in another format).

For some reason, I converted the wind gauges to PNGs, but didn't bother with the moon. It's easy enough to do, but is it going to cause compatibility problems if I change it? I can change the standard pages (it's actually just index.htm now), and anyone who has written their own pages which use the image could easily change...

Steve
User avatar
hans
Posts: 171
Joined: Sun 18 Jan 2009 9:27 pm
Weather Station: wh1080 /ws4000(alecto)
Operating System: Windows 10 64 bit
Location: leiden,Netherlands
Contact:

Re: Simple Round Moon Mod

Post by hans »

i have replaced the original moon with another one
(you can see it on my site).

put this between the <body> tags:

<applet code="LunarPhases.class" height="160" width="400">
</applet>

then download and unzip these files in the same directory of the page

http://home.xmsnet.nl/hanmir/maanstand.zip
User avatar
Jonsey
Posts: 112
Joined: Mon 05 Jan 2009 2:25 am
Weather Station: Fine Offset WH1081
Operating System: Shuttle Xpc SK41, XP Pro SP3
Location: Worsley, Manchester
Contact:

Re: Simple Round Moon Mod

Post by Jonsey »

Sorry to dig up an old thread, but I have edited the iCumulus add on that daj has done. http://www.worsley-weather.co.uk/iphone and have managed to link in the moon phases that culumus generates and wondered how I can replace the moon pic that it generates, as I have the complete cycle in images.
Image
Post Reply