Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

COM Port

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

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

COM Port

Post by malmeida »

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: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: COM Port

Post by steve »

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
malmeida
Posts: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: COM Port

Post by steve »

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
malmeida
Posts: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: COM Port

Post by mcrossley »

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: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: COM Port

Post by steve »

Network issues with the Pi would also account for the UI's inability to read data for the dashboard etc.
Steve
malmeida
Posts: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: COM Port

Post by steve »

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
malmeida
Posts: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: COM Port

Post by steve »

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
malmeida
Posts: 78
Joined: Thu 06 Oct 2016 7:16 pm
Weather Station: Maplin N96FY
Operating System: Raspbian

Re: COM Port

Post by malmeida »

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: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: COM Port

Post by steve »

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
Locked