Page 2 of 3

Re: CumulusMX gets no connection to Wh1080

Posted: Thu 24 Aug 2017 8:40 am
by l2k
yesterday i tried to resolve the problem with my new raspbian stretch and a fine offset station; in stretch mono version is 4.6.2 (https://packages.debian.org/it/stretch/mono-complete) that is not functioning properly with fine offset, so i installed mono version 4.0.5 (i'm using it on another installation of raspian+cumulusmx+fineoffset):
- add repo 'deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5 main' in /etc/apt/sources.list
- aptitude update (ignore :roll: if some errors appear about mono signature)
- aptitude install mono-complete=4.0.5.1-0xamarin1 (attention: you have to try aptitude to find the best solution to install the right version)

next time you'll update raspbian you have to pay attention not to upgrade mono, don't use apt-get dist-upgrade (it is recommended to use apt-mark to hold mono version 4.0.5) you have to use 'apt-mark hold mono-runtime mono-complete' to hold version (otherwise with dist-upgrade mono will be upgrade); with this config cumulusmx+fine offset is ok as you can see on my weather site :D (http://www.leone2000.net).

edit: add command to update repo; add instruction for apt-mark

Re: CumulusMX gets no connection to Wh1080

Posted: Sat 26 Aug 2017 12:46 am
by maccpl
I really wish I knew what magic you performed to get your Fine Offset station to be recognized by CumulusMX. I originally had my Pi3 configured with Raspbian Jessie 8 and Mono 5.0. I tried all the tips I could find here, but none of them worked. There was no TTYdev0 showing up on my machine. On the contrary, when I inserted the USB cable, a new folder opened up in the Dev folder called "usb". Inside was a single file called hiddev0 (or something much like that). After I read this a some similar posts I downgraded to Mono 3.19 or so. Still have the usb folder and also noticed that there is an additional device showing up in the Dev folder... I think it was hidraw0 or something like that.

After several days fighting this, I decided to take the weekend off. Any tips would be greatly appreciated. I'm thinking that running Jessie 8 may be part of the problem.

JR In Florida

Re: CumulusMX gets no connection to Wh1080

Posted: Sat 02 Sep 2017 10:21 pm
by fabiochi
I got into similar problem with Stretch and the default mono 4.6.2 version
After struggling for more than 2 days I solved downgrading mono to 4.0.5.1 from Wheezy following @l2k's recommendations.
Now CumuluxMX is able to connect to my fine offset meteo station again
fabio

Re: CumulusMX gets no connection to Wh1080

Posted: Fri 08 Sep 2017 11:07 am
by sv1kwz
my problem is the following.

rpi with raspbian stretch.

i follow the @l2k instructions to install mono 4.0.5 (as mono 4.6.2 has problem detecting my ws)

sudo aptitude install mono-complete=4.0.5.1-0xamarin1
Unable to find a version "4.0.5.1-0xamarin1" for the package "mono-complete"
Unable to apply some actions, aborting

is something wrong ?

Re: CumulusMX gets no connection to Wh1080

Posted: Sat 09 Sep 2017 11:51 am
by vr34
Hi sv1kwz,
I am quite new in Raspberry and cumulusMX and intends to pass my fine offset ws3083 from Win7+Cumulus1.9 to Rasberry Pi3/CumulusMX
I did a first step from Win7+Cumulus1.9 to Win7+CumulusMX with success ;)

About mono 4.0.5.1, I found this page : https://stackoverflow.com/questions/337 ... on-of-mono

Hope it will help.

Re: CumulusMX gets no connection to Wh1080

Posted: Sat 09 Sep 2017 10:59 pm
by ConligWX
3.2.8 maybe old, but its the only one that seems to be stable with Fine offset Weather stations.

If stretch has 5, just uninstall, edit your sources.list to include the mono that works for you then install mono.

Re: CumulusMX gets no connection to Wh1080

Posted: Sun 10 Sep 2017 2:52 pm
by vr34
Thx Toxic17 for your message.
mono of my Pi3 under jessie is 3.2.8. My fine offset WS3083 is recognized by CumulusMX now (please do not ask me how I downgraded mono from 5.2 to 3.2.8 as I cannot answer: I tried so many things that I cannot remember their history, lol) The webpages are updated (not all *) but no data is displayed in localhost:8998. I can see the localhost:8998 interface but without any value in dashboard, now, gauges, ...
It was updated well when my WS was plugged on my old netbook win7+CumulusMX. I just copied the whole folder CumulusMX to my new Pi3.

* 'now', 'today', ... are updated,
some graphs of 'trends' are updated but for instance 'temperature/day' is empty even if CumulusMX/data/dayfile.txt is ok... same for rainfall/day and solar/day. (you can visit my French weather web pages on my contact profile ;). "courbes" is trends)

Also, when I press 'save' button in any page of the localhost:8998 interface, the answer is always "error [object Object]"

At least, concerning the installation of any older version of mono (3.2.8 or 4.0.5.1), please could you write the full line of /etc/apt/sources.list.d/mono-official.list to be replace from

Code: Select all

deb http://download.mono-project.com/repo/debian raspbianjessie main
Regards, vr34

Re: CumulusMX gets no connection to Wh1080

Posted: Thu 14 Sep 2017 6:04 am
by SpaceHiker
Running the same config as l2k, but I can't get his config to work. No matter what solution I try within aptitude, the install fails due to dependencies, and mono just returns "illegal instruction" when executed.

As the required version of mono continues to fall farther behind, dependencies are going to become impossible to meet. It's getting kind of ridiculous. Hopefully a solution will be found that will allow MX to run with current versions of mono.

Re: CumulusMX gets no connection to Wh1080

Posted: Thu 14 Sep 2017 11:19 am
by steve
SpaceHiker wrote:It's getting kind of ridiculous. Hopefully a solution will be found that will allow MX to run with current versions of mono.
Here's a link to the USB library which MX uses. The source code is available. Assuming that the problem isn't a bug in later versions of Mono, the solution is presumably to make that library work with later versions of Mono. This is not something that I am in a position to do.

https://www.nuget.org/packages/HidSharp/

Re: CumulusMX gets no connection to Wh1080

Posted: Thu 14 Sep 2017 4:35 pm
by jank
Also this is working now with German Locale and a LaCrosse WS2350 with Serial2USB Adapter

Linux OS Version: "Raspbian GNU/Linux" - DEBIAN - 9 (STRETCH) - 4.9.41-v7+
Mono Version: Mono JIT compiler version 5.2.0.215 (tarball Mon Aug 14 16:25:12 UTC 2017)

Re: CumulusMX gets no connection to Wh1080

Posted: Thu 14 Sep 2017 4:41 pm
by SpaceHiker
steve wrote: Here's a link to the USB library which MX uses. The source code is available. Assuming that the problem isn't a bug in later versions of Mono, the solution is presumably to make that library work with later versions of Mono. This is not something that I am in a position to do.

https://www.nuget.org/packages/HidSharp/
Thanks! Like everyone else, time is a precious resource for me, but I'll try to take a look in the near future. I do a bit of open source development so I should be able to figure this out.

Re: CumulusMX gets no connection to Wh1080

Posted: Sun 17 Sep 2017 11:09 pm
by SpaceHiker
What I know so far:

1. Hidsharp development was abandoned in 2013.
2. In 2015 an update was made to mono that changed the path of libraries from .../lib64 to .../lib. This caused a lot of stuff to break and there are complaints about it all over the 'net from that time period.
3. Hidsharp functionality broke at that same time: System.MissingMethodException: Method 'Mono.Unix.Native.Syscall.uname' not found.
4. Because Hidsharp had already been abandoned, it was never fixed.
5. It's likely that there's a hardcoded path to .../lib64 in there somewhere, so that's what I'm going to look for next. If that's the case, it should be a simple fix.

Re: CumulusMX gets no connection to Wh1080

Posted: Mon 18 Sep 2017 11:21 am
by steve
Well done - and good luck!

Re: CumulusMX gets no connection to Wh1080

Posted: Tue 19 Sep 2017 7:31 pm
by mrkencollins
Hi all,

First time poster, long time lurker here.

I recently tried to get CumulusMX running with a PI 3, but couldnt make debian stretch download a working version of mono.

I re-flashed my SD card with a version of raspian jessie lite from July 2017 and it installed Mono 3.8.2 without any tinkering.

https://downloads.raspberrypi.org/raspb ... 017-07-05/

I use raspian lite as it is a headless server, but the full version has the GUI too:

https://downloads.raspberrypi.org/raspb ... 017-07-05/

It connected to my WS3083 first time, and hasn't missed a beat in 7 days.

Ken

Re: CumulusMX gets no connection to Wh1080

Posted: Wed 20 Sep 2017 1:27 pm
by steve
This is really how I imagined that people would use MX on a Pi - use a stable working Raspbian/Mono release and just leave it alone.