Page 1 of 1

Running CumulusMX on Pi with Apache Web Server

Posted: Thu 09 Jul 2015 9:26 pm
by n1iwv
I am in the process of moving my Cumulus setup off my PC and onto a Raspberry Pi.
Given that CMX is still Beta and the fact I am having trouble uploading data to my ISP, I'd like to test this out on a local website being served by Apache running on the Pi.
Firstly..I am somewhat new to Linux/Raspbian but I have been reading (until my eyes bleed) as much as I can to get somewhat knowledgeable about the basic of Raspbian.
I've moved the files from the web & webfiles directory over to directory /var/www on the pi and can get to the website from any computer on my LAN using the static IP address for the Pi (192.168.1.200). That's all good.
The question I have is:
Setting up CMX on the Pi under web/ftp. Should my host be 127.0.0.1?
Do I use my Pi logon Username: Pi ..Password RaspBerry ( all defaults?
Port 21?
Directory: /var/www?
Extra web files
local = /home/pi/CumulusMX/web/realtimegaugesT.txt
remote = /var/www/realtimegaugesT.txt
So far I am having no luck updating the website

My WX station is a Davis VantageVue with the WeatherLink TCPIP logger

Thanks for allowing me to participate in the Beta Testing

Ed

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 3:47 am
by BigOkie
Are you running an ftp server on the Pi yet?

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 7:27 am
by mcrossley
No, you don't need to bother with ftp, just use the local file name in the 'remote' field, but make sure you untick ftp.

Also your remote file name for the gauges file is incorrect, there is no 'T' in the remote file name.

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 7:30 am
by mcrossley
Also, I think NGinX is a better matched web server for the rPi than Apache which is rather resource hungry particularly in the thread department, probably OK for the low volume sites most of us run though.

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 1:41 pm
by n1iwv
Thanks for the reply.
I will try to use the file to file transfer rather than ftp and see what happens.
I added the "T" to realtimeguages because that's what was indicated in the "Simple Website Setup" instructions.

http://wiki.sandaysoft.com/a/Simple_Website_setup
--------------------------------------------------------------------------------------------
'Local filenames' column

Use Browse option to find web\realtimegaugesT.txt
---------------------------------------------------------------------------------------------
Am I missing something?

I am trying to get to a point where I can contribute to the forum rather than just ask dumb questions.

Thanks Again
Ed

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 1:45 pm
by nitrx
You should not use the T on the remote site.. the realtimegauges need a parsed file on the remotesite

ergo

Code: Select all

remote = /var/www/realtimegaugesT.txt
should be
remote = /var/www/realtimegauges.txt

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 2:24 pm
by jpsc
I am doing exactly what you want to do. It just works (see below).

As other replies, you do not need an ftp server, CMX can just copy the files.

If you need a copy of my config just shout (I am not at home at the moment).

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 2:41 pm
by n1iwv
Thanks!!!
I got the guages to work and I added the index.htm file in the same manner.
Do I have to do the same thing for all the files in the web folder?
Making progress!!

Ed

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 3:32 pm
by n1iwv
Thanks jpsc:

Yes, if you could show me your config file, that would be great.

Ed

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Fri 10 Jul 2015 5:29 pm
by steve
Yes, if you want Cumulus to copy the standard files rather than ftp them, then at the moment you have to list them in the extra files section.

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Sun 06 Sep 2015 7:06 pm
by mzambo001
steve wrote:Yes, if you want Cumulus to copy the standard files rather than ftp them, then at the moment you have to list them in the extra files section.
Can you use a wildcard or must you list them all one by one?

Re: Running CumulusMX on Pi with Apache Web Server

Posted: Sun 06 Sep 2015 7:39 pm
by steve
You have to list them all.