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

Moon phase image

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Moon phase image

Post by liddelljs »

Hi all,
Just a query on the moon phase image. It seems to display the northern hemisphere image on my webpage. is there a trick to get it to display the correct image for us folk in the South?

Cheers
Steve
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: Moon phase image

Post by mcrossley »

It should rotate the image if your latitude is negative.
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Thanks Mark. I need to do some digging. I have two stations (at different locations). Both are showing correct coordinates in the Southern hemisphere but one is showing Southern Hemisphere image (Jandakot station) and the other is showing Northern Hemisphere image :? .

Cheers
Steve

http://jandakotwa.duckdns.org
http://redrobin.duckdns.org
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: Moon phase image

Post by mcrossley »

Hmm, if start by checking the value in Cumulus.ini (but I suspect it may correct of the sun rise/set times are correct), then if the version of mono is the same on both sites.
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Thanks Mark. Both versions of mono are the same (6.8.0.105). Not sure why it would make any difference but the only difference between the two stations is the weather station type. Redrobin is fine offset and Jandakot is GW1000, I did a re-install with b3072 but hasn't made any difference. Thanks for the help. I'll keep looking.

Cheers
Steve
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: Moon phase image

Post by mcrossley »

Ok, keep us posted, the moon image code is independent of the station type.
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Hi Mark,
Well I've had a very frustrating 24 hrs trying to troubleshoot this and believe it or not have gone backwards from where I was yesterday :evil: . I'll try and describe what I have done and hopefully someone can give me some pointers as to what to check next. I am pretty convinced that the issue is not to do with the MX install but with something in the broader operating system on the pi. I'm running Raspbian stretch and have updated mono to 6.8.0.105.

1. Ran update and upgrade on the pi to verify I have the latest updates
2. Dumped the browser cache to make sure I wasn't pulling up an old version of the webpage
3. Ran a number of checks on mono from some of the links you and Freddie gave me as well as a few more I found on the web. Everything checks out here. I ran the same checks on my other weather station which is running b3072 fine and got the same results.
4. I decided to re-install b3072. Initially, I had been reluctant to copy all of the b3072 files across (ie the recommended upgrade method) as I have modified several (web template files) and added a few (custom realtime files to export data to some IOT apps) and so I had simply overwritten the files and folders that had changed (interface, main directory files etc). I made copies of all the modified files, deleted the whole MX directory, copied across the b3072 version and updated my files (including .ini) - ie the recommended upgrade method. Didn't change the moon image file but now I lost the gauges and the trends. I've attached screenshots. Both the gauges and trends display fine on the MX interface
5. In desperation, I deleted everything from the MX directory again and copied across the version from the pi that is running ok. I then updated the ini file and other modified files. My thinking here was that, if it was an issue with MX, copying across an install that was running properly would either work also or tell me that it was something in the operating system rather than MX. Well it was the latter. Installed and hasn't made any difference to the moon image, gauges or trends display.

Now a bit stuck. I know this isn't related to MX but any pointers as to other libraries or systems that MX relies on that I should check would be much appreciated. I think I've reached the end of my expertise.

Cheers
Steve
You do not have the required permissions to view the files attached to this post.
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Done some more digging and the plot thickens. The gauges and trend problems with the redrobin website seems to be browser related. I have opened them on another laptop with an earlier version of chrome and they both work fine. Don't understand why the Jandakot website works normally on the newer chrome version. I'd be interested in any feedback as to what others see on the websites below.
Bizarrely, the moon image on the Jandakot website, which was showing the Southern Hemisphere image correctly has now flipped to the Northern Hemisphere image. The only change I made was to update the startup script from version 2.5.5.3 to 2.5.5.4. I now have both websites showing the northern hemisphere moon image.

http://jandakotwa.duckdns.org
http://redrobin.duckdns.org
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: Moon phase image

Post by mcrossley »

The file "/lib/steelseries/css/gauges.css" is empty on the Red Robin site, plus you seem to have deleted the folder "/lib/steelseries/scripts" and its contents.
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

hmmm - thanks for the feedback Mark. When I checked, both of the stations have the files and folders installed that you referred to so not sure where you were looking. The only difference was that the css file was gauges-ss.css rather than gauges.css. The file in the 3074 distribution was the former. Anyway, I copied these across again from b3074 and hasn't made a difference.

Back to the drawing board. With respect the moon image file, I think I'll remove mono and reinstall (running out of ideas). Which version of mono are you running? Is it 6.8.0.105?

Cheers
Steve
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Hi Mark,
Just realised what you meant by missing files and folders. They are present in the main CMX directory but missing from the web directory on redrobin. All good now displaying trends and gauges. Only remaining problem is the moon image. I removed and reinstalled mono today on both stations but no change. I'll keep looking.

Cheers
Steve
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Moon phase image

Post by freddie »

mcrossley wrote: Thu 16 Apr 2020 1:58 pmthe moon image code is independent of the station type.
Does the locale that MX runs under make a difference? Just a thought, and probably worth checking.
Freddie
Image
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Are these checks I can do or more related to the software? The only related thing I have tried was to change the station location from South to North but made no difference to the moon image.

Cheers
Steve
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: Moon phase image

Post by mcrossley »

Can we see the [Station] section of your Cumulus.ini file? (don't post the rest of it as it will contain usernames and passwords).

At one point you did have the rotated image displaying on one site, so the code does work, I think there is just something odd with your configuration.
liddelljs
Posts: 122
Joined: Sat 31 Oct 2015 10:22 pm
Weather Station: Ecowitt GW1001
Operating System: RPi 3 Raspbian Buster
Location: Perth Western Australia

Re: Moon phase image

Post by liddelljs »

Thanks Mark. Agree it was working on one site so something has gone screwy somewhere. Station sections of both ini files attached.
I'm not going to spend much more time on this if there is nothing obvious in the setup. It is a minor discrepency and I'm sure, over time, I will find a solution through the forum. I've appreciated the help and advice.

Cheers
Steve
You do not have the required permissions to view the files attached to this post.
Post Reply