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
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 »

Ray, Steve & Synewave
Thank you for your respective replies. Firstly I need to keep any changes as simply as possible by way of amending the Cumulus files and incorporating other files. :mrgreen: It’s not that this is a problem, Steve, just when you start from zero like I am this is a very steep learning curve.
So, Ray, exactly how difficult would it be to effect the changes to a transparent background as you outlined? I take it there are two separate steps, making changes to the Cumulus file and finding the PHP code?
Synewave, thanks for your offer I would welcome the opportunity to try this out. Could you PM the images as you suggested and I’ll attempt to make the changes.
Thanks
Andy
Andy


Image
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,

I've sent you a PM with a zip file containing the moon phase graphics.
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 »

Synewave
Thank you for the details and images. Well it looks like I managed that :clap:
Thanks for your help.
Andy
Andy


Image
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,

Well done, looks good.
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 »

Hi,
I had Cumulus working OK and then moved to another domain/host on 10 November and all appeared to be working OK until this morning I noticed that the image for the Moonphase
was not displaying. :? http://www.claxton.me/weather/
The only change over the last few days is that I installed Gallery2 on the server. Surely that would not have any effect on Cumulus which was installed in a separate directory?
Any pointers as what I should check?
Thanks
Andy


Image
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 »

Your page has the following, which appears to reference a non-existent file:

<img src="images/Full moon.png" alt="Moon" width="64" align="left" border="0" height="64" style="margin: 0px 10px" />
Steve
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 »

Steve,
Thanks for your reply however since my posting as mysteriously as the moon image disappeared it’s reappeared! I assume this had something to do with the server?
I included the line <td rowspan="3"><img src="images/<#moonphase>.png" alt="Moon" width="64" align="left" border="0" height="64" style="margin: 0px 10px" /></td> in the Index file to remove the 'black box' from the moon image. Please see Synewave's post of 12 September.
Andy


Image
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:Thanks for your reply however since my posting as mysteriously as the moon image disappeared it’s reappeared!
That's because the moon phase is now "Waning Gibbous", and the corresponding file does exist.
Steve
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 »

<img src="images/Full moon.png"
The beteljuice has mentioned this oft times before - web servers DO NOT LIKE SPACES !

I realize the code that was given depends upon this, but .............

Sorry - off-topice and not related to your (missing file) problem.

Just having a 'grump' day :x

(Don't bother posting pacific) :o
Image
......................Imagine, what you will KNOW tomorrow !
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 »

beteljuice wrote:
<img src="images/Full moon.png"
The beteljuice has mentioned this oft times before - web servers DO NOT LIKE SPACES !

I realize the code that was given depends upon this, but .............

Sorry - off-topice and not related to your (missing file) problem.

Just having a 'grump' day :x

(Don't bother posting pacific) :o
But it works perfectly for me and many others for a long time (even with spaces). I think the problem was just due to a missing file as Steve has said.

We all get bad days, I've had one today I tell you - a close bereavement news this morning.
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 »

Steve,

Would it be possible for Cumulus to generate a webtag for the moonphase represented by a number? Maybe not just 1-8 but including the other visual phases too?
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 »

Synewave wrote:Would it be possible for Cumulus to generate a webtag for the moonphase represented by a number? Maybe not just 1-8 but including the other visual phases too?
Yes, I suppose so. The function I use returns a "percentage full" figure, which is positive when the moon is waxing, and negative when it's waning. There could be a web tag <#moonpercent> which just gives that figure.
Steve
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 »

Hi again
Just to clarify that these are the file names in the Image directory (all of which have spaces!) uploaded 10 November

First Quarter.png
Full Moon.png
Last Quarter.png
New Moon.png
Waning Crescent.png
Waning Gibbous.png
Waxing Crescent.png
Waxing Gibbous.png

Up until today there had been no issues with displaying the images.
Andy


Image
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 »

steve wrote:
Synewave wrote:Would it be possible for Cumulus to generate a webtag for the moonphase represented by a number? Maybe not just 1-8 but including the other visual phases too?
Yes, I suppose so. The function I use returns a "percentage full" figure, which is positive when the moon is waxing, and negative when it's waning. There could be a web tag <#moonpercent> which just gives that figure.
I guess that figure could be anything between 0-100 if it is a percentage.

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)?
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 »

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)?
Yes, but you would have to define what each number represents, as it would be arbitrary.
Steve
Post Reply