isothermalsection

Author Topic: Cumulus MX local web server content issues  (Read 14753 times)

Offline Dan

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 35
  • Karma: 4
  • Gender: Male
  • Ngaio
    • Ngaio Weather
Cumulus MX local web server content issues
« 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) 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


Located in Ngaio near Mt Kaukau in Wellington

Cumulus MX on Raspberry Pi 3 with Raspbian Jessie
Aercus Instruments WS3083 with UV and light
Ngaio weather
WOW: Ngaioweather
WU: IWELLING216
Twitter: @ngaioweather

Offline PaulMy

  • Financial Supporter
  • Hero Member
  • *****
  • Posts: 3895
  • Country: ca
  • Karma: 232
  • Gender: Male
  • Enjoy!
    • KomokaWeather
  • Station: Davis VP2 Plus w/24 FARS 6163
Re: Cumulus MX local web server content issues
« Reply #1 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

Offline philipgm

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 8
  • Karma: 4
  • Gender: Male
    • Burwood
Re: Cumulus MX local web server content issues
« Reply #2 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
« Last Edit: May 10, 2016, 04:58:14 PM by philipgm »

Offline Dan

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 35
  • Karma: 4
  • Gender: Male
  • Ngaio
    • Ngaio Weather
Re: Cumulus MX local web server content issues
« Reply #3 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) 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)

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

Offline Dan

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 35
  • Karma: 4
  • Gender: Male
  • Ngaio
    • Ngaio Weather
Re: Cumulus MX local web server content issues
« Reply #4 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

Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10086
  • Country: nz
  • Karma: 654
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Cumulus MX local web server content issues
« Reply #5 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
Living in Wairoa, Northern Hawkes Bay
Website: wairoa.net/weather

Offline Dan

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 35
  • Karma: 4
  • Gender: Male
  • Ngaio
    • Ngaio Weather
Re: Cumulus MX local web server content issues
« Reply #6 on: May 12, 2016, 03:57:04 PM »
Something else to do tonight.  Any ideas on how to get this going in MX?

Offline philipgm

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 8
  • Karma: 4
  • Gender: Male
    • Burwood
Re: Cumulus MX local web server content issues
« Reply #7 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

Offline Dan

  • Financial Supporter
  • Newbie
  • *****
  • Posts: 35
  • Karma: 4
  • Gender: Male
  • Ngaio
    • Ngaio Weather
Re: Cumulus MX local web server content issues
« Reply #8 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




Offline JennyLeez

  • Administrator
  • Hero Member
  • *****
  • Posts: 10086
  • Country: nz
  • Karma: 654
  • Gender: Female
  • Wairoa
    • Wairoa, Hawkes Bay Weather
  • Station: WS3085
Re: Cumulus MX local web server content issues
« Reply #9 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.


Share via twitter

clip
Cumulus MX on Raspberry Pi with local web server - fully functional setup

Started by Dan

4 Replies
12380 Views
Last post May 17, 2016, 03:44:59 PM
by JennyLeez
xx
You can now get data to the WD phone app with no server or FTP

Started by Weather Display

0 Replies
3387 Views
Last post March 08, 2016, 10:28:38 AM
by Weather Display
xx
How to upload Clientraw to another Server.

Started by JennyLeez

0 Replies
5610 Views
Last post December 30, 2013, 11:27:36 AM
by JennyLeez
xx
Help please-Synology web server problem

Started by TonyC

6 Replies
9965 Views
Last post December 25, 2013, 03:17:12 AM
by FJ40
xx
Few kiwis know their content is filtered: InternetNZ

Started by OhauitiWeather

0 Replies
2611 Views
Last post April 20, 2012, 10:56:33 PM
by OhauitiWeather