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

COM Port

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

COM Port

Postby malmeida » Sat Oct 22, 2016 1:18 pm

I have Raspberry pi connected to a Maplin station and to internet by WiFi.
At the directory CumulusMX/interface I have changed the files dashboard.js, now.js and gaugefeed.js replacing True to False in order to use Ajax.
If I open the Raspberry browser or, in Windows, Firefox or Internet Explorer browsers with the address and 8998 I have Dashboard, Now and Gauges menus at zero but the other menus show all values.
I had Com Port with COM0. I changed to USB0 without results. I have done ls /dev/tty* and the result showed tty from 0 to 63 and /dev/ttyAMA0 and /dev/ttyprintk. I changed Com Port to /dev/AMA0 and to /dev/printk without result. I have done the same in Cumulus.ini without result. In dmesg, when it opens the station it says expected ...AMA0.
What is the solution?

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: COM Port

Postby steve » Sat Oct 22, 2016 2:37 pm

The Maplin N96FY doesn't need a COM port specifying, as it's a USB HID device. Cumulus should just use it automatically, as long as you have selected the correct station type - "Fine Offset". If Cumulus can't find the station, there should be a message to that effect near the start of the MX diags files - I can't remember whether it currently displays the same message on the command line.

What version of Mono are you using? Have you installed package mono-complete and libudev0? Does the output from the lsusb command show the station is present?
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

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Sat Oct 22, 2016 2:56 pm

At last it works. I saw in another post to erase Cumulus.ini.
I have done that, I wrote /dev/ttyUSB0 at COM Port and I reboot Raspberry and it works now.

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Sat Oct 22, 2016 3:50 pm

It was only for awhile. Now it doesn't show the values again.
lsusb shows the station.
Attached is the last file of MXdiags.
20161022-155133.txt
You do not have the required permissions to view the files attached to this post.

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: COM Port

Postby steve » Sat Oct 22, 2016 4:06 pm

It appears to be reading data from the station at the end of that file, it logged a new record low pressure just a minute before the end of the file. You did previously have loss of contact between the outdoor transmitter and the console for a while, so perhaps that is why you weren't seeing any data.

You appear to have configured uploads to your web site on my server, but not supplied the username and password - you need to enter the ones that I sent you by email.
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

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Wed Oct 26, 2016 11:25 am

Today I have corrected the password of Web/FTP site. Dashboard, Now and Gauges are at zero. Last Cumulus update time usually has a red arrow pointing down and it has no time. Sometimes the arrow points up and is yellow.
I attach the last MXdiags file
20161023-142251.zip
You do not have the required permissions to view the files attached to this post.

User avatar
mcrossley
Posts: 4854
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Jessie Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: COM Port

Postby mcrossley » Wed Oct 26, 2016 1:35 pm

It looks like you have some corrupt data files...

Code: Select all

GetRainfallTotals: Error on line 1 of dayfile.txt: Argument is out of range. Parameter name: index

Error on line 1 of data/Out16log.txt: Input string was not in the correct format
Error at line 1756 of data/Out16log.txt : Input string was not in the correct format
Error at line 1752 of data/Out16log.txt : Input string was not in the correct format
Error at line 1734 of data/Out16log.txt : Input string was not in the correct format
Error at line 1266 of data/Out16log.txt : Input string was not in the correct format


And the FTP server name is not being resolved...

Code: Select all

Error connecting ftp - Could not resolve host 'scomba.co.uk'


It resolves OK for me, so are your server DNS settings correct?

Edit: Though later you were getting "Error connecting ftp - Network is unreachable", so it looks like you had network problems whilst CMX was starting up.

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: COM Port

Postby steve » Wed Oct 26, 2016 2:17 pm

Network issues with the Pi would also account for the UI's inability to read data for the dashboard etc.
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

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Wed Oct 26, 2016 2:23 pm

I had replaced comma for new line. Now I replaced again new line for comma in the file dayfile.txt.
In the file Out16log.txt I don't know what to do.
I have also put nameserver 8.8.8.8 in the file resolv.conf trying to have DNS resolved.

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Sat Oct 29, 2016 1:47 pm

I still can't see Dashboard, Now an Gauges. But Raspberry is updated uploading data from the station.
In the site scomba.co.uk the last data is from October 28. It seems that there are some problems in the access to internet. I don't know what to do.
I attach the last file of MXdiags:
20161026-170410.zip
You do not have the required permissions to view the files attached to this post.

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: COM Port

Postby steve » Sat Oct 29, 2016 1:55 pm

You seem to have all kinds of problems with your Pi, according to the diags file. You've been running MX without restarting it for several days now. I suggest closing MX and rebooting your Pi. Make sure your Pi can then access the internet OK, and then start MX again.
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

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Sat Oct 29, 2016 3:56 pm

I have stopped CumuluMX, rebooted Raspberry and made ping several times. At the beginning there were errors. After some try it had 0% errors. I started CumulusMX.
I attach the last MXdiags:
20161029-164225.zip

It seems that CumulusMX can't connect internet. Here internet is slow. The router shows 4G but it is slow. How can I make CumulusMX wait more to connect internet?
You do not have the required permissions to view the files attached to this post.

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: COM Port

Postby steve » Sat Oct 29, 2016 4:08 pm

The connection timeout is already very long - 30 seconds, I think, and it can't be changed. It does appear to have connected subsequently and your site is updating successfully now.

You need to correct these problems with your data files:

2016-10-29 16:42:27.790 Error at line 2020 of data/Out16log.txt : Input string was not in the correct format
2016-10-29 16:42:27.790 Please edit the file to correct the error
2016-10-29 16:42:27.791 Loaded 0 entries to last hour data list
2016-10-29 16:42:28.174 Error at line 2017 of data/Out16log.txt : Input string was not in the correct format
2016-10-29 16:42:28.188 Please edit the file to correct the error
2016-10-29 16:42:28.189 Loaded 0 entries to last 3 hour data list
2016-10-29 16:42:28.575 Error at line 2005 of data/Out16log.txt : Input string was not in the correct format
2016-10-29 16:42:28.575 Please edit the file to correct the error
2016-10-29 16:42:28.576 Loaded 0 entries to graph data list
2016-10-29 16:42:28.904 Error at line 1711 of data/Out16log.txt : Input string was not in the correct format
2016-10-29 16:42:28.904 Please edit the file to correct the error
2016-10-29 16:42:28.905 Loaded 0 entries to recent data list
2016-10-29 16:42:28.913 Error at line 1 of data/dayfile.txt : Argument is out of range.
Parameter name: index
2016-10-29 16:42:28.913 Please edit the file to correct the error
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

malmeida
Posts: 17
Joined: Thu Oct 06, 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Postby malmeida » Sat Oct 29, 2016 5:47 pm

I didn't found anything wrong in those lines
ErrorsFile.txt
.
I copied those lines to the attached file.
You do not have the required permissions to view the files attached to this post.

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: COM Port

Postby steve » Sat Oct 29, 2016 6:06 pm

The dayfile.txt line is truncated - it should be much longer. I can't say what the issues are with the other file without seeing the complete file.
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