Page 1 of 2
COM Port
Posted: Sat 22 Oct 2016 1:18 pm
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?
Re: COM Port
Posted: Sat 22 Oct 2016 2:37 pm
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?
Re: COM Port
Posted: Sat 22 Oct 2016 2:56 pm
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.
Re: COM Port
Posted: Sat 22 Oct 2016 3:50 pm
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
Re: COM Port
Posted: Sat 22 Oct 2016 4:06 pm
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.
Re: COM Port
Posted: Wed 26 Oct 2016 11:25 am
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
Re: COM Port
Posted: Wed 26 Oct 2016 1:35 pm
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.
Re: COM Port
Posted: Wed 26 Oct 2016 2:17 pm
by steve
Network issues with the Pi would also account for the UI's inability to read data for the dashboard etc.
Re: COM Port
Posted: Wed 26 Oct 2016 2:23 pm
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.
Re: COM Port
Posted: Sat 29 Oct 2016 1:47 pm
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
Re: COM Port
Posted: Sat 29 Oct 2016 1:55 pm
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.
Re: COM Port
Posted: Sat 29 Oct 2016 3:56 pm
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?
Re: COM Port
Posted: Sat 29 Oct 2016 4:08 pm
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
Re: COM Port
Posted: Sat 29 Oct 2016 5:47 pm
by malmeida
I didn't found anything wrong in those lines
ErrorsFile.txt
.
I copied those lines to the attached file.
Re: COM Port
Posted: Sat 29 Oct 2016 6:06 pm
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.