Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

CumulusMX Raspberry PI and nginx

Share your Cumulus MX user interface here
Joe Curtis
Posts: 9
Joined: Sun Jun 07, 2009 2:07 pm
Weather Station: W-8681

CumulusMX Raspberry PI and nginx

Postby Joe Curtis » Tue May 10, 2016 9:21 pm

Having run Cumulus 1 for a number of years on a pc feeding an apache web server on a linux (Fedora) box (http://www.craythorneweather.info) from a Fine Offset weather station, I have changed to running MX on a raspberry pi 3. This has enabled me to get the wireless receiver and raspberry pi far closer to the weather station than was possible with my pc and eliminate the high level of signal drop outs that were occurring.
My templates are modified versions of the standard templates and the installation of the latest versions of MX and mono on the RPI went without a hitch.
At the moment I am feeding two systems from MX on the RPI, my original apache server by ftp on the fedora system which is exposed to the outside world and a nginx web server on the RPI with files copied using the 'extra web files' facility which I can browse on the local network.
As both systems use the same files they are identical with the exception of the moon graphic. The PHP coding for this works perfectly on the apache server but not on the nginx one. It's not a question of PHP not working on nginx as I can run a test PHP file and get the correct result. As it is the same file that sent to both servers I am at a loss to isolate the cause.
Any suggestion on how to narrow down my search for the error would be most welcome.

User avatar
mcrossley
Posts: 4979
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: CumulusMX Raspberry PI and nginx

Postby mcrossley » Tue May 10, 2016 9:31 pm

Do you have the PHP GD package installed?

Which moon graphic code are you using?

Joe Curtis
Posts: 9
Joined: Sun Jun 07, 2009 2:07 pm
Weather Station: W-8681

Re: CumulusMX Raspberry PI and nginx

Postby Joe Curtis » Wed May 11, 2016 5:09 pm

I am using files (and instructions) out of the moonphase.zip file from David at djmsystems. The version of PHP I have on the RPI is PHP5-FPM which is the version shown in most of the nginx configuration examples I have seen.
I'll read up on GD and substitute that. Many thanks for the pointer.

Joe Curtis
Posts: 9
Joined: Sun Jun 07, 2009 2:07 pm
Weather Station: W-8681

Re: CumulusMX Raspberry PI and nginx

Postby Joe Curtis » Wed May 11, 2016 5:31 pm

That solved it. Many thanks. I can now get on with my life!


Return to “Customisation”

Who is online

Users browsing this forum: No registered users and 1 guest