Page 1 of 1

It can not run applications CumulusMX on Raspberry Pi 2

Posted: Thu 01 Oct 2015 12:05 pm
by Maxinoha
It can not run applications CumulusMX on Raspberry Pi 2 (Wheezy)

When installing I proceeded as follows:
[code]apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
apt-get update
apt-get upgrade
apt-get install mono-devel
apt-get install mono-complete
mono -V
cd srv
wget http://....../CumulusMXDist3031.zip
unzip CumulusMXDist3031.zip
[/code]

After attempting to run the command: [code]mono /srv/CumulusMX/CumulusMX.exe -lang cs-CZ[/code]

Abandoning this error:
[code]Current culture: Czech (Czech Republic)
Serial: 2D2679D4D8F209DBD325483107FDF27C
System.IO.DirectoryNotFoundException: Directory 'MXdiags' not found.
at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in <filename unknown>:0
at System.IO.Directory.GetFiles (System.String path) [0x00000] in <filename unknown>:0
at CumulusMX.Cumulus. (System.String ) [0x00000] in <filename unknown>:0
at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0
at .Main (System.String[] args) [0x00000] in <filename unknown>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate[/code]

Re: It can not run applications CumulusMX on Raspberry Pi 2

Posted: Sat 10 Oct 2015 10:19 am
by steve
Change to the directory containing MX, and run it from there, as described in the instructions.

Re: It can not run applications CumulusMX on Raspberry Pi 2

Posted: Sun 11 Oct 2015 1:38 pm
by Maxinoha
steve wrote:Change to the directory containing MX, and run it from there, as described in the instructions.
Hello,

It managed to run and was available as well as a web interface. After setting the type of weather station has not restarted.

Code: Select all

root@meteostanice:/srv/CumulusMX# mono CumulusMX.exe
Current culture: Czech (Czech Republic)
Serial: 2D2679D4D8F209DBD325483107FDF27C
Cumulus MX v.3.0.0 build 3031
This is pre-release beta software
Today.ini = data/today.ini
Last update=2015-10-11T15:26:01
System.FormatException: Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, NumberStyles options, System.NumberBuffer& number, System.Globalization.NumberFormatInfo info, Boolean parseDecimal) [0x00000] in <filename unknown>:0
  at System.Number.ParseInt32 (System.String s, NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00000] in <filename unknown>:0
  at System.Int32.Parse (System.String s, IFormatProvider provider) [0x00000] in <filename unknown>:0
  at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
  at . () [0x00000] in <filename unknown>:0
  at ..ctor (CumulusMX.Cumulus ) [0x00000] in <filename unknown>:0
  at ..ctor (CumulusMX.Cumulus ) [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0
  at .Main (System.String[] args) [0x00000] in <filename unknown>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate
An error has occurred - please zip up the MXdiags folder and post it in the forum

Re: It can not run applications CumulusMX on Raspberry Pi 2

Posted: Sun 11 Oct 2015 1:43 pm
by steve
You are trying to use a locale with decimal separators. What version of Mono are you using? Have you read the notes and the posts about Mono and locales with decimal commas?

Re: It can not run applications CumulusMX on Raspberry Pi 2

Posted: Sun 11 Oct 2015 2:00 pm
by Maxinoha
steve wrote:You are trying to use a locale with decimal separators. What version of Mono are you using? Have you read the notes and the posts about Mono and locales with decimal commas?

Code: Select all

root@meteostanice:/srv/CumulusMX# mono -V
Mono JIT compiler version 4.0.4 (Stable 4.0.4.1/5ab4c0d Tue Aug 25 23:45:14 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+hard
        Disabled:      none
        Misc:          softdebug
        LLVM:          supported, not enabled.
        GC:            sgen
When I got Cumulus MX without changing any settings and run goes, but once I change the type of weather station at the Fine Offset already run the point.

Reading data from a weather station applications pywws works.

Re: It can not run applications CumulusMX on Raspberry Pi 2

Posted: Sun 11 Oct 2015 2:20 pm
by steve
It's nothing to do with reading the data from the station, it is Mono and its ability to parse numbers with decimal commas. As far as I know, that version of Mono should be able to handle them correctly. I don't know why it apparently isn't working for you. Perhaps someone who is using decimal commas with that version of Mono will be able to suggest something. If you have any files in the data folder, try deleting them before running MX again.

Note: It would be useful if you turned on debug logging in Cumulus.ini.