Page 1 of 2
Moon phase image
Posted: Thu 16 Apr 2020 4:58 am
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
Re: Moon phase image
Posted: Thu 16 Apr 2020 8:52 am
by mcrossley
It should rotate the image if your latitude is negative.
Re: Moon phase image
Posted: Thu 16 Apr 2020 9:49 am
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
Re: Moon phase image
Posted: Thu 16 Apr 2020 11:15 am
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.
Re: Moon phase image
Posted: Thu 16 Apr 2020 1:09 pm
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
Re: Moon phase image
Posted: Thu 16 Apr 2020 1:58 pm
by mcrossley
Ok, keep us posted, the moon image code is independent of the station type.
Re: Moon phase image
Posted: Sat 18 Apr 2020 5:05 am
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

. 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
Re: Moon phase image
Posted: Sat 18 Apr 2020 6:48 am
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
Re: Moon phase image
Posted: Sat 18 Apr 2020 3:29 pm
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.
Re: Moon phase image
Posted: Sun 19 Apr 2020 12:37 am
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
Re: Moon phase image
Posted: Sun 19 Apr 2020 8:35 am
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
Re: Moon phase image
Posted: Sun 19 Apr 2020 9:21 am
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.
Re: Moon phase image
Posted: Mon 20 Apr 2020 9:21 am
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
Re: Moon phase image
Posted: Mon 20 Apr 2020 10:38 am
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.
Re: Moon phase image
Posted: Mon 20 Apr 2020 12:04 pm
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