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

Changes to weatherstyle.css in WYSIWYG?

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

Moderator: daj

User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Changes to weatherstyle.css in WYSIWYG?

Post by steve »

Andy wrote:Full Moon.png
But your page had "Full moon.png".
Steve
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Changes to weatherstyle.css in WYSIWYG?

Post by Synewave »

Andy,

Steve is saying it is case sensitive.
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Changes to weatherstyle.css in WYSIWYG?

Post by Andy »

Paul, Steve
Thanks. I understand - at last.
Andy


Image
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Changes to weatherstyle.css in WYSIWYG?

Post by gemini06720 »

Synewave wrote:
steve wrote:
Synewave wrote:Could you create a tag that returns a figure that is between 0-15 for example (based on the possible number of suitable moon phase images available on the web, I'm sure there are more but let's not get too complicated)?
Paul, the moon phase is (should be) different depending if one is in the northern or southern hemisphere. I am using a PHP script that uses 28 different images to produce the moon phases for the northern hemisphere (and 28 images to produce the moon phases for the southern hemisphere).
Synewave
Posts: 642
Joined: Mon 25 Jan 2010 1:55 pm
Weather Station: Watson W-8681
Operating System: Raspian
Location: Brighton, UK
Contact:

Re: Changes to weatherstyle.css in WYSIWYG?

Post by Synewave »

Ray, thanks.

I was just quoting 0-15 as an example instead of the current 8 I'm using.

But yes, 28 different images would be great. If Cumulus did produce a webtag for the moonphase as a number (Steve has suggested it would be a percentage), could the percentage be translated to a moonphase without a script?
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Changes to weatherstyle.css in WYSIWYG?

Post by gemini06720 »

Synewave wrote:But yes, 28 different images would be great
But that would create way too many modifications for Cumulus.
Synewave wrote:If Cumulus did produce a webtag for the moonphase as a number (Steve has suggested it would be a percentage), could the percentage be translated to a moonphase without a script?
The PHP moon phase script that I use for my Web pages produces 9 different values: the full moon age (ie: days, hours, and minutes), the moon age as separate values for days, hours, minutes, the icon/image number (0-27), the moon illumination (as a percentage), the moon phase (as a text), the full moon date (as a Unix date) and the new moon date (as a Unix date). The moon phase script is used on my main page as well as in my star chart page.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Changes to weatherstyle.css in WYSIWYG?

Post by mcrossley »

gemini06720 wrote:and 28 images to produce the moon phases for the southern hemisphere
You could just use one set of images and rotate them 180 degrees. Probably more work than providing two sets though :roll:
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: Changes to weatherstyle.css in WYSIWYG?

Post by beteljuice »

Surely all you are really asking for is a "Moon Day number" - then you can publish this figure and / or use it to source a picture of your own.

eg. for a Template page
<img src ='myspace/weather/moon/<#moonday>.png' alt = 'Moonday #<#moonday>' />
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply