New Zealand Local Weather Forum

Weather Discussion => Hardware Software and Technology => Cumulus => Topic started by: Dan on May 10, 2016, 12:29:28 PM

Title: Cumulus MX local web server content issues
Post by: Dan on May 10, 2016, 12:29:28 PM
Hi guys,

It has been a while since I was on the forum.  Hope everybody is well.

Since my last visit I've changed my hardware, OS and software from old Toshiba laptop, Windows 7 and Cumulis 1 to a Raspberry Pi 3, Debian (Raspian Jessie) and Cumulus MX.  Not much change there then...

Setup of the Pi was surprisingly simple.  I downloaded Raspian Jessie - a port of Debian - and copied to Sandisk 16GB Class 10 compact flash, banged it in, booted it up, fixed my IP address, installed Mono, NginX web server and XRDP to go headless and I was away.  That took all of 20 mins!

.... only wish Cumulus MX was as easy  :(

Running Cumulus MX under Mono seems to work well.  MX can see my station, gather the data and works fine on default port 8998.  I am uploading data to Met Office WOW, Wunderground and I'm back on the Metservice map too so that is cool.

My issues are that I can't get the local webserver to function on my Pi.  On the old Cumulus I just locally copied some files to my XAMPP LAMP stack and it worked fine. I have followed the instructions in the Wiki (Simple Website setup - CumulusWiki (http://wiki.sandaysoft.com/a/Simple_Website_setup)) but am still having issues.

I've posted on the Sandaysoft forum and PM'd one of the Rpi gurus, but has anybody successfully run Cumulus MX and served web content locally from their Pi?

Just to confirm, I want to serve the web element locally - I am not trying to FTP files to a web hosting company.

Cheers
Title: Re: Cumulus MX local web server content issues
Post by: PaulMy on May 10, 2016, 02:28:16 PM
Quote
.... only wish Cumulus MX was as easy  :(

I have found Cumulus MX to be very easy; but then not trying it on Pi ;) just on Windows.

Paul
Title: Re: Cumulus MX local web server content issues
Post by: philipgm on May 10, 2016, 02:54:21 PM
Hi Dan,
Just ignore this. I misinterpreted the request.
OOPS 😁

I am using a similar setup as you and everything is working fine here.
I access the local Web server by 192.168.1.77:8998 in my case. What happens when you do something similar. I can't remember if I needed to do anything special to get it working. Let me know what happens and I will check further.
Cheers
Philip
Title: Re: Cumulus MX local web server content issues
Post by: Dan on May 11, 2016, 02:00:47 PM
Hi Phil,

Thanks for the prompt response.  Coincidentally it's another Phil helping me out on the Sandaysoft forum!

The default :8998 looks to be working fine.  Likewise, browsing to :80 brings up the default Apache pages (binned NginX as it was doing funny things)

I have followed the Wiki instruction (
Simple Website setup - CumulusWiki (http://wiki.sandaysoft.com/a/Simple_Website_setup)) plus a few tweaks as it is wrong in places (doesn't mention dropping the T from the destination copy file for example)

I have copied the below folders and stylesheet from my MX location (mx/Cumulus/CumulusMX/web) to default Apache folder (/var/www/html):

/images
/js
/lib
weatherstyle.css

I have also created an entry in the Settings/ Extra web files tab for every filenameT entry in source file mx/Cumulus/CumulusMX/webfiles/filenameT to /var/www/html/filename

I've done this for all the files (
Customised templates - CumulusWiki (http://wiki.sandaysoft.com/a/Customised_templates#The_Standard_Templates))

I've ticked the Process box and the UTF-8 for each (note no tick in FTP or Realtime)

So I've done all this but no files seem to pop into the /var/www/html folder from MX  :(

When I get home I'll upload some screen shots from MX and ls -al outputs to show my access permissions.  User MX owns the folder /var/www/html so hopefully shouldn't be an issue there  :-\

Thanks

Dan
Title: Re: Cumulus MX local web server content issues
Post by: Dan on May 12, 2016, 02:50:36 PM
Got the web pages working. Did a complete purge of NginX and Apache, then reloaded Apache.

Changed owner of var/www/html to mx and set it to 777. Probably overkill but it's working now which is all that matters.

Next I need to work out why only the Wind Direction and Sunshine Hours graphs appear on the Trends menu - and even then all they show is the word  "Loading..." and nothing happens.  The other graphs are all missing.

If it was easy it would be boring  :o

Thanks

Dan
Title: Re: Cumulus MX local web server content issues
Post by: JennyLeez on May 12, 2016, 02:54:32 PM
Well done, your web site tis there.
Next step is to get that realtime.txt accessible please.

Jenny
Title: Re: Cumulus MX local web server content issues
Post by: Dan on May 12, 2016, 03:57:04 PM
Something else to do tonight.  Any ideas on how to get this going in MX?
Title: Re: Cumulus MX local web server content issues
Post by: philipgm on May 12, 2016, 07:10:36 PM
In Cumulus MX go to 'Settings', then 'Internet Settings', then 'Web/FTP settings', and click the appropriate boxes.
Cheers
Philip
Title: Re: Cumulus MX local web server content issues
Post by: Dan on May 12, 2016, 07:52:35 PM
I have managed to get realtime.txt file onto my site with a bit of blimmining about.  Folllowed FAQs and Wiki, but a lot of information only pertains to Cumulus 1 and MX seems a poor cousin so far

The only mention of realtime.txt in the settings are in the Web/ FTP settings under Settings/ Internet Settings.  I enabled Realtime.txt FTP but as I'm not running FTP - my site is hosted locally - I doubt if this is the right place.  Anyway, this didn't work. (See attachment 1)

Ended up adding a field in the Settings/ Extra Web Files.  This is not detailed anywhere as far as I can see.  The file appeared after I added this, so can only assume it was this that fixed it (See attachment 2)

I still can't get my Trend graphs to load.  The only buttons that do anything are the Wind Direction and Sunshine Hours.  All I get is a loading.... then nothing.  (See attachments 3 and 4)

Any ideas guys?  MX is certainly a different beast than the old Cumulus 1 on Windows

Cheers

Dan



Title: Re: Cumulus MX local web server content issues
Post by: JennyLeez on May 13, 2016, 09:25:05 AM
Quote
Ended up adding a field in the Settings/ Extra Web Files.  This is not detailed anywhere as far as I can see.  The file appeared after I added this, so can only assume it was this that fixed it (See attachment 2)

I have had to do that in members cumulus 1 as well to get that realtime.txt to upload.
No idea why the realtime setting do not work but doing as you have does.