Page 2 of 2

Re: Not Seeing Moon.

Posted: Fri 10 Apr 2020 2:51 pm
by mcrossley
water01 wrote: Fri 10 Apr 2020 1:09 pm It is getting hard to keep up with you Mark!! :D :D :D :D :D :D
Yeah, sorry, that release was needed though to get people who run multiple instances working again.

Re: Not Seeing Moon.

Posted: Fri 10 Apr 2020 4:39 pm
by freddie
sfws wrote: Fri 10 Apr 2020 1:22 pm
freddie wrote: Fri 10 Apr 2020 6:54 am ]Oops! I don't use the template for my index page. It is static and uses Ajax calls to get the data. That's probably how I missed it.
Yes, I noticed that your pages are "in maintenance" today and missing the Ajax updates, and see that even static information like your weather station type is missing on that index page, suspect you could reduce the upload content you process every 5 seconds if you added to the basic page those items that rarely change.
Apologies for that - my gateway proxy server hadn't started up for some reason after I rebooted my router. I don't actually upload anything - all calls are proxied back to either my LAN webserver or the API that MX exposes. You are correct in that some things on that page don't really need to be dynamic - but it's been like that for ages and I can never seem to find the time to make changes.

I had to reboot my router because I had made a change to my network infrastructure.

Re: Not Seeing Moon.

Posted: Fri 10 Apr 2020 4:55 pm
by sfws
freddie wrote: Fri 10 Apr 2020 4:39 pm Apologies for that
Accepted, I was trying to see if my new sensor screening was working. With your site back, my spreadsheet comparison for whole of April so far is perplexing, but I will give it another day or two.

Re: Not Seeing Moon.

Posted: Fri 10 Apr 2020 10:37 pm
by philipgm
I have just installed build 3071 on a Raspberrypi.
When I enable the 'Moon' option i get this error and then the program stops. Any ideas please.
---

2020-04-11 09:52:24.653 Updating internet settings
2020-04-11 09:52:24.668 Writing Cumulus.ini file
2020-04-11 09:56:01.612 Updating CWOP
2020-04-11 09:57:34.254 Reading reception stats
2020-04-11 10:00:00.745 Hour changed:10
2020-04-11 10:00:00.745 Calculating sunrise and sunset times
2020-04-11 10:00:00.746 Sunrise: 06:50:05
2020-04-11 10:00:00.746 Sunset : 17:59:22
2020-04-11 10:00:00.747 Tomorrow sunrise: 06:51:09
2020-04-11 10:00:00.747 Tomorrow sunset : 17:57:49
2020-04-11 10:00:21.784 System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/local/lib
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm) [0x00000] in <filename unknown>:0
at System.Drawing.Bitmap..ctor (System.String filename) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
at CumulusMX.MoonriseMoonset.CreateMoonImage (Double phaseAngle, Double latitude, Int32 size) [0x00000] in <filename unknown>:0
at CumulusMX.Cumulus.DoMoonImage () [0x00000] in <filename unknown>:0
at CumulusMX.WeatherStation.HourChanged (Int32 hour) [0x00000] in <filename unknown>:0
at CumulusMX.WeatherStation.SecondTimer (System.Object sender, System.Timers.ElapsedEventArgs e) [0x00000] in <filename unknown>:0
at System.Timers.Timer.Callback (System.Object state) [0x00000] in <filename unknown>:0
----

Note- everything works fine on my linux laptop, so it must be something in the rpi. Ah well!

Re: Not Seeing Moon.

Posted: Sat 11 Apr 2020 10:36 am
by mcrossley
It is something missing from mono. What version of mono do you have installed? And did you install "mono-complete"

Re: Not Seeing Moon.

Posted: Sat 11 Apr 2020 12:46 pm
by freddie
sfws wrote: Fri 10 Apr 2020 4:55 pmmy spreadsheet comparison for whole of April so far is perplexing
Why is it perplexing?

Re: Not Seeing Moon.

Posted: Sat 11 Apr 2020 10:20 pm
by philipgm
Ah, that makes sense. Using mono 3. Program been behaving it's self for ages so I was leaving it alone.
So I guess it's time to do an update.
Thank you
Philip

Re: Not Seeing Moon.

Posted: Sat 11 Apr 2020 10:37 pm
by mcrossley
I think Mono has supported System.Drawing since version 2, but those old versions (2 & 3) may have to complied with the option enabled - not sure. But version 3 was superseded in April 2015 anyway, so maybe it is time for an upgrade! :)

Re: Not Seeing Moon.

Posted: Mon 13 Apr 2020 3:05 am
by philipgm
I have completely upgraded the firmware on the rpi3. I installed the latest mono version 6 and the moon was back-to-front. I downgraded to mono v5 and everything works as it should.
Excellent.
Thank you for your help. Much appreciated.
Cheers
Philip
www.pictonweather.nz