Cumulus MX - Raspberry PI 2
Posted: Wed 29 Apr 2015 9:33 am
Hi all
I want to share my experience installing Cumulus MX on a Raspberry Pi2 with German locales with you.
Most of this was already mentioned by Steve, but I want to summarize my experience.
This is a step by step manual. If you want to add or change something, please let me know
The commands you should insert on the Raspberry Pi are in Blue-Bold
1. Install Mono on a Raspberry Pi 2 - Do not attempt this on an earlier Raspberry Pi, only on a Pi 2!
If mono is already installed, please uninstall mono first (https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13587)
sudo apt-get remove mono-complete
Now install new MONO Version
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mono-complete
Check mono Version
sudo mono --version |grep version
The Version should be 4.x or higher
Reboot the Raspbeery Pi 2
sudo apt-get update
sudo apt-get upgrade (you should get an update for Mono)
2. Install CumulusMX
Create a Folder on root
sudo mkdir /CumulusMX (or install it wherever you want -> /home/pi/CumulusMX
Download CumulusMX and use WINSCP to copy it into your CumulusMX Folder on the Raspberry Pi
Extract the file:
cd /CumulusMX
sudo unzip CumulusMXDist30xx.zip
3. Converting Old Data Files
If you already used an older version of Cumulus and want to use the old data files, please proceed with Step 3, otherwise goto step 4
If you want to use your Cumulus 1 data with MX, and you use decimal commas, you will need to edit the .ini files to change the decimal commas into periods/full stops.
The other data files will be OK.
(Periods/full stops = In punctuation, the full stop (in British English) or period (in American English) is the punctuation mark placed at the end of a sentence. The full stop glyph is sometimes called a baseline dot because, typographically, it is a dot on the baseline. This term distinguishes the baseline dot from the interpunct (a raised dot).)
Copy all files in your old /data/ folder to the Raspberry Pi 2 /CumulusMX/data by using WINSCP
Check, if your *.ini files contain comma's which need to be converted into Full Stops (dot)
cd /Cumulus/MX/data
grep "," /Cumulus/MX/data/*.ini |wc -l
as a result, you should see the amount of comma's found in the ini files (grep "," /CumulusMX/data/*.ini to simply list all lines, containing comma's)
To replace all comma's with dots use htis command
sed -i 's/,/./g' /CumulusMX/data/*.ini
To verify if the command converted all comma's to dot's count the lines again
grep "," /CumulusMX/data/*.ini |wc -l
The result should now be 0
4. Run CumulusMX
by using this command
cd /CumulusMX
sudo mono CumulusMX.exe -port 9999 (or without -port 9999 Option) to sue the default TCP Port 8998.
Point your webbrowser to http:IP_OF_RASPBERRYPI:9999
5. Setup CumulusMX
Connect your Weatherstation to the Raspberry Pi 2 using USB Port.
WeatherStations with Serial Connector like LaCrosse WS23xx
In case you have a Weatherstation with Serial Port, you should use a Serial2USB Adapter.
For example the Station Settings (on the stationsettings.html) for a LaCrosse WS23xx - the settings should be:
Serial port name: /dev/ttyUSB0
Finding out, if your Serial2USB Adapter successfully was identified by your Raspberry use this Command: dmesg |grep ttyUSB0
As a result your hsould see the Serial2USB Adapter as
usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
I want to share my experience installing Cumulus MX on a Raspberry Pi2 with German locales with you.
Most of this was already mentioned by Steve, but I want to summarize my experience.
This is a step by step manual. If you want to add or change something, please let me know
The commands you should insert on the Raspberry Pi are in Blue-Bold
1. Install Mono on a Raspberry Pi 2 - Do not attempt this on an earlier Raspberry Pi, only on a Pi 2!
If mono is already installed, please uninstall mono first (https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13587)
sudo apt-get remove mono-complete
Now install new MONO Version
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mono-complete
Check mono Version
sudo mono --version |grep version
The Version should be 4.x or higher
Reboot the Raspbeery Pi 2
sudo apt-get update
sudo apt-get upgrade (you should get an update for Mono)
2. Install CumulusMX
Create a Folder on root
sudo mkdir /CumulusMX (or install it wherever you want -> /home/pi/CumulusMX
Download CumulusMX and use WINSCP to copy it into your CumulusMX Folder on the Raspberry Pi
Extract the file:
cd /CumulusMX
sudo unzip CumulusMXDist30xx.zip
3. Converting Old Data Files
If you already used an older version of Cumulus and want to use the old data files, please proceed with Step 3, otherwise goto step 4
If you want to use your Cumulus 1 data with MX, and you use decimal commas, you will need to edit the .ini files to change the decimal commas into periods/full stops.
The other data files will be OK.
(Periods/full stops = In punctuation, the full stop (in British English) or period (in American English) is the punctuation mark placed at the end of a sentence. The full stop glyph is sometimes called a baseline dot because, typographically, it is a dot on the baseline. This term distinguishes the baseline dot from the interpunct (a raised dot).)
Copy all files in your old /data/ folder to the Raspberry Pi 2 /CumulusMX/data by using WINSCP
Check, if your *.ini files contain comma's which need to be converted into Full Stops (dot)
cd /Cumulus/MX/data
grep "," /Cumulus/MX/data/*.ini |wc -l
as a result, you should see the amount of comma's found in the ini files (grep "," /CumulusMX/data/*.ini to simply list all lines, containing comma's)
To replace all comma's with dots use htis command
sed -i 's/,/./g' /CumulusMX/data/*.ini
To verify if the command converted all comma's to dot's count the lines again
grep "," /CumulusMX/data/*.ini |wc -l
The result should now be 0
4. Run CumulusMX
by using this command
cd /CumulusMX
sudo mono CumulusMX.exe -port 9999 (or without -port 9999 Option) to sue the default TCP Port 8998.
Point your webbrowser to http:IP_OF_RASPBERRYPI:9999
5. Setup CumulusMX
Connect your Weatherstation to the Raspberry Pi 2 using USB Port.
WeatherStations with Serial Connector like LaCrosse WS23xx
In case you have a Weatherstation with Serial Port, you should use a Serial2USB Adapter.
For example the Station Settings (on the stationsettings.html) for a LaCrosse WS23xx - the settings should be:
Serial port name: /dev/ttyUSB0
Finding out, if your Serial2USB Adapter successfully was identified by your Raspberry use this Command: dmesg |grep ttyUSB0
As a result your hsould see the Serial2USB Adapter as
usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0