If you use Cumulus, please donate Image

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

Web pages won't load

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
hillyjd
Posts: 2
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Web pages won't load

Postby hillyjd » Fri May 19, 2017 12:45 am

I'm sure there's a topic out there on this. I just can't find it. Trying to set up Cumulus MX on Raspberry Pi. Running latest version 3043. Seemed to install fine. When I execute the Cumulus MX program, the only error I get is that the station is not identified, which makes sense since I can't get to it. When I enter the web page, I get at page of text with links to the data files (I think) but when I click on any link, I get:

"Unable to load page

Problem occurred while loading the URL file:///home/pi/index.html

Error opening file: No such file or directory"

So I figure I've got some pointer in the .ini file pointing to the wrong place, but I've been trying for a week to figure it out and I can't. The diagnostics file doesn't show me any errors, at least none that I can see. I've tried changing the port as suggested to 9999 but get same result. The one thing I did when I unzipped the download was to move all the files from underneath the "CumulusMX" folder to the "Cumulus" folder above that. Has that caused a the problem. I read in one of the posts that you needed to do that to get started.

I do have Cumulus running on my Windows laptop and it works great. Just can't get started on the RPi, which is what I really need. Any help would be most appreciated.

r/
Hilly

User avatar
steve
Cumulus Author
Posts: 25913
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Web pages won't load

Postby steve » Fri May 19, 2017 9:00 am

It looks like you are loading the interface files straight into your browser, instead of using an http URL. If you're not doing that, then the problem is with your browser - are you trying to use a browser on the Pi? Many of these are cut-down simplified browsers and not suitable for the MX interface.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image

hillyjd
Posts: 2
Joined: Sun Apr 23, 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: Web pages won't load

Postby hillyjd » Sat May 20, 2017 2:38 pm

Steve - it wasn't the browser. It was the idiot operating the browser. I had gotten into the habit of using the IP address 0.0.0.0 instead of "local host". Once I put in "localhost" the webpage loaded fine. But now I have a new problem. Seems to be identical to the problem described by "MeteoVillena" on 10 Mar 2017. Once I got the webpage up for the first time, I changed the settings to ID my Davis Vantage Vue and all the rest. Restarted Cumulus and got the "Unable to Connect to Station" error. Tried changing the COM port ID in my Cumulus.ini file, but got the same error every time. Here's the applicable MXdiag portion:

2017-05-20 06:50:50.200 Today = 20/05/17
2017-05-20 06:50:50.205 Station type = Davis
2017-05-20 06:50:50.205 LOOP2 enabled
2017-05-20 06:50:50.205 Serial device = COM0
2017-05-20 06:50:50.211 No such file or directory
2017-05-20 06:50:50.212 Not Connected
2017-05-20 06:50:50.300 629 web tags initialised
2017-05-20 06:50:50.312 HTML root path = /home/pi/Cumulus/interface
2017-05-20 06:50:50.499 Starting web socket server on port 8002
2017-05-20 06:50:57.523 Cumulus closing
2017-05-20 06:50:57.548 Writing Cumulus.ini file
2017-05-20 06:50:57.621 Closing connection
2017-05-20 06:50:57.623 Station stopped
2017-05-20 06:50:57.623 No data read this session, today.ini not written
2017-05-20 06:50:57.740 System.IO.IOException: Bad file descriptor
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Dispose (Boolean disposing) [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.Finalize () [0x00000] in <filename unknown>:0


You said the station path should be "/dev/serial" but I can't figure out what needs to be changed and where to make that happen. Thanks for your help.

Jim

User avatar
steve
Cumulus Author
Posts: 25913
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: Davis VP2
Operating System: Raspbian
Location: Sanday, Orkney
Contact:

Re: Web pages won't load

Postby steve » Sat May 20, 2017 2:56 pm

COM0 is not a valid device identifier in Linux. The MX FAQ explains what to do:

"Serial device names on Linux are not COM0 etc as in Windows. You need to specify something like /dev/ttyUSB0 - do a dmesg at a command line prompt and look for the actual device name from your adapter. If dmesg says your cp210x converter (as on Davis stations) is attached to ttyUSB0, for example, you need to put /dev/ttyUSB0 for the serial port name in MX. You can set the serial port name in the MX user interface, but if for some reason you want to do it by editing Cumulus.ini, note that the item in MX is called ComportName (which is a string, for the full device name, e.g. COM1 or /dev/ttyUSB0) rather than 'Port' which is just an integer. If you have not run MX yet, this item will not exist, so you will need to add it (in the [Station] section)."
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Like Cumulus and want to support it? Please donate! Image


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 3 guests