Page 1 of 2
Confused about CumulusMX and web server on same Raspberry Pi
Posted: Tue 12 Apr 2016 3:00 pm
by BigJeffIE
Hi folks,
I'm confused about how to go about setting up the transfer process of web files if your also using your raspberry pi as the webserver (Apache2)
I've set it up so that it ftp's the files to itself but there's mention that this doesn't need to be done if the web server is on the same host.
I just can't figure it out so any pointers in the right direction would be most helpful.
Thanks,
CJ
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Tue 12 Apr 2016 3:11 pm
by steve
There's currently no automatic way to get the standard files copied rather than ftp'd, so all of the files need to be listed on the 'extra files' page, with 'ftp' not ticked. I'm not sure whether there's a full list of the required files anywhere, but basically it's all of the .htm files plus all of the .json files (for the graphs) plus realtimegauges.txt for the gauges page.
Then just remove the host/user/password from the ftp details so it doesn't try making an ftp connection.
People who are actually doing this may be able to offer further/better advice.
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Thu 14 Apr 2016 8:21 am
by BigJeffIE
OK, thanks for the reply Steve.
If you set it up like that, which folder do those files end up in?
Thanks,
CJ
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Thu 14 Apr 2016 8:31 am
by steve
They end up wherever you tell Cumulus to put them (in the remote file column).
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Thu 14 Apr 2016 10:33 am
by BigJeffIE
Hi Steve,
Of course!! that makes sense now.
OK, thanks for the help.
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Thu 14 Apr 2016 7:34 pm
by sfws
steve wrote: I'm not sure whether there's a full list of the required files anywhere, but basically it's all of the .htm files plus all of the .json files (for the graphs) plus realtimegauges.txt for the gauges page.
A MX user needs to update this for MX as it does not mention realtimegauges.txt:
http://wiki.sandaysoft.com/a/Simple_Web ... up#Testing
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Fri 15 Apr 2016 2:28 pm
by BigJeffIE
OK, thanks for the info SFWS.
For now I have another problem in that I don't seem to be getting anything from my Instromet data logger so I'll open a separate post for that.
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Mon 09 May 2016 8:46 am
by Dan
Hi guys,
Have got a Pi3 running with Cumulus MX after my laptop died. This was Win 7 with Cumulus 1 and had no issues with XAMMP LAMP and using as a web server.
Cumulus MX running well and I am updating Met Office WOW and Wunderground, but am having real problems hosting my webserver locally on the Pi (running Apache). It was relatively easy on the old software, but I'm having no luck on MX with the Pi. I'm a bit stumped!
Worked through the simple website wiki but still no joy (
http://wiki.sandaysoft.com/a/Simple_Web ... up#Testing)
Has anybody got a full instructable on how to do this?
Thanks
Dan
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Mon 09 May 2016 10:10 pm
by philpugh
Can you access anything on your pi webserver?
I run Apache alongside CumulusMX on my bananapi under Debian. I don't use the basic web pages supplied with Cumulus but use my own php derived pages. IIRC the installation of Apache leaves a test 'page' in /var/www - you should be able to access that from another system to check basic operation. After that it should be as described in the wiki / guide. Copy to /var/www ..... Again if you have also installed PHP this leaves a test page.
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Tue 10 May 2016 8:14 am
by BigJeffIE
If you're using Raspbian Jessie on your pi3 the files are now in /var/www/html.
Maybe that's the problem.
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Tue 10 May 2016 12:08 pm
by philpugh
Irrespective of where the root of the web pages are, the same principle applies.
You need to set up the files in CumulusMX/web to be 'converted' by CumulusMX and the result placed into the web root directory.
From the :8998 page use the Settings/Extra web files tab.
The Local File Name should be something like /home/pi/CumulusMX/web/filenameT.htm
The Remote file name should be webroot/filename.ext where webroot is /var/www or /var/www/root and filename is the original filename without the trailing T. The extension can be .htm or .html or whatever is recognised by Apache as HTML. I would stick to one of the two mentioned!
You should then select the Process tick box, optionally the Realtime tick box if you want to update at your realtime interval, leave the FTP box unchecked and I leave the UTF-8 set.
Try it with the indexT.htm file first - then you can add the others when this is working. This should process the file every station polling setting (usually 10/15 minutes) - whatever you set it to.
If you want to 'speed' up the process ensure you have selected the Realtime checkbox and set a sensible value for realtime update in Settings/Internet Settings/Web FTP from the :8998 page. I would suggest a 30 second interval.
After the appropriate interval the file (eg index.htm) should appear in the web root directory and you should then be able to access this from a browser on another machine.
Good luck!
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Tue 10 May 2016 12:14 pm
by philpugh
Another thought - it's been a while since I set up my system and I can't remember if Apache installation creates a .htaccess file in the web root directory but I have one there and it contains the lines:
AddType application/x-httpd-php .htm .html
# This prevents web browsers or spiders from seeing your .htaccess directives:
<Files .htaccess>
deny from all
</Files>
I am still on Debian Wheezy - haven't needed anything from the later release - so I am leaving it alone for now

Re: Confused about CumulusMX and web server on same Raspberr
Posted: Wed 11 May 2016 1:50 am
by Dan
Hi Phil,
Thanks for the prompt response
The default :8998 looks to be working fine. Likewise, browsing to :80 brings up the default Apache pages.
I have followed the Wiki instruction (
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 extra web file destination 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 (
http://wiki.sandaysoft.com/a/Customised ... _Templates)
I've ticked the Process box and the UTF-8 foreach (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.
I'm no Linux guru and I'm a bit stuck. I'm sure it is something simple though!
Thanks
Dan
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Wed 11 May 2016 8:07 am
by steve
Can you be more specific about the places where that page is wrong, please, so it can be corrected? The only place it mentions the extra web files is for the realtimegauges.txt file, and I can't see where it is wrong.
Re: Confused about CumulusMX and web server on same Raspberr
Posted: Wed 11 May 2016 9:27 am
by Dan
Got it 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.
Hey Steve - my bad about the instructions being wrong in the Wiki. I was just me being a dick and reading it wrong so apologies for that. It's all good mate.
Thanks
Dan