Details:
- This method has only been tested with network based weather stations. There are reports that it doesn't work with USB stations.
viewtopic.php?f=40&t=18792 - Synology DSM 6.2 tested on various models - It works!
- Synology DSM 7.0 tested with this Quick easy method and it does not work. But despair not, as there is a different solution to DSM 7.0. I still advice, DO NOT UPGRADE to DSM 7.0 (still in public beta anyway) until Mono package by SynoCommunity is updated to support it (unless you want to run Mono in Docker). There is work being done to support Mono install in DSM 7.0, hopefully soon. I've submitted a GIthub issue ticket and it has been accepted.
- The solution to DSM 7.0 for now is to do it with Docker. See follow up post in this thread for instructions on how to run Cumulus MX on Synology with Docker.
- This installation method uses minimal system resources and runs at the system level, no container, no VM. Ran great on an old DS214play and a new DS920+ and a few models in between.
- If you'd like to migrate from a different platform where you are currently running Cumulus MX, you can stop Cumulus MX, take a copy of your Cumulus MX folder and use that to migrate everything over to your Synology NAS. You can follow these instructions instead of downloading and unzipping a fresh copy you use your folder copy.
Cumulus MX is a Microsoft .net supported application. It is possible to run Cumulus MX in different operating systems with the support of the Mono project from Microsoft. By installing Mono you can then run Cumulus MX. Therefore the first step is to get Mono installed on your Synology NAS.
Quick Easy Installation Steps for Cumulus MX on Synology NAS:
- Installing Mono on Synology Diskstation NAS
- Open the Package Center
- Click on Settings / Package Sources and look to see if you have "SynoCommunity" as a package source. Your list of package sources could be empty as that is the default. These are just additional locations (repositories) to find community created packages.
- Click the Add button if you don't have SynoCommunity in the list of package sources.
- Enter in the Name: "SynoCommunity" and Location: https://packages.synocommunity.com/ then click OK.
- Accept the message that the publisher's certificate will be added to your Synology NAS.
- You should now see SynoCommunity in the list of Package Sources. Click OK.
- Close the Package Center and re-open it again.
- Go to Settings / General and select the Trust Level to be "Synology Inc. and trusted publishers." Then click OK.
- Click on Community section and wait for brief refresh of applications
- Search for Mono. The icon may or may not have refreshed and it may look generic. That is okay, you can still install it. Click on Install button for Mono.
- Package should now show that it is Installed after a few moments.
- If you click on the Package it should show that it is running. As of today the version of Mono installed is 5.20.1.34.
IMPORTANT: Make a note of the details of the installation volume for the Mono package (its says it there when you click on it). If not Volume 1 then you'll need to edit a path later mentioned in these instructions
- Downloading Cumulux MX zip file (Download using your computer. This is not done in DSM)
- Download the the lastest Cumulus MX zip file. The latest release link to the zip file will always be posted here (follow "Latest build is..."):
https://cumuluswiki.org/a/Software#Current_Release
- Download the the lastest Cumulus MX zip file. The latest release link to the zip file will always be posted here (follow "Latest build is..."):
- Unzip and copy the extracted CumulusMX folder to any final installation location you want on your Synology NAS. You can drag and drop the extracted file into DSM File Manger. (DSM File Station app can also unzip...your choice). This location can be the root of your home folder on the NAS (if you are set up to use home folders) or you can create an /opt shared folder and then copy it in there. I'm going to recommend using the /opt share. If you already have an /opt folder you can use it along with whatever is already there. Sharing an /opt folder is typical in Linux for optional applications, as many can reside there.
* With Synology File Station app in the GUI you don't really have access to to the root the way that DSM has been designed so technically it isn't going to end up in /opt but we'll cover that next. It is mostly symbolic to use /opt in this case.- To create an /opt shared folder follow these steps:
- Open the File Station app in Synology DSM GUI
- Click on Create and then select Create New Shared Folder
- Give the new share the name opt
- Accept all default settings and permissions (just Next, Next, Next, Apply, Okay, and then close Control Panel which will have opened up with this process)
- To create an /opt shared folder follow these steps:
- Ensure that your unzipped CumulusMX folder is now inside of your desired location or in the opt share preferably.
- We now need to find out the full path to the real location of the the CumulusMX folder.
- You simply right click on the CumulusMX folder and select properties and it will show you the full path to the CumulusMX folder. * I'm my case the full path is /volume1/opt/CumulusMX but if you have several volumes in your Synology NAS then your path may be different. You could for example use /volume1/homes/username/CumulusMX but You'll need to remember this full path (and remember that although to you it may seem like /home/username/CumulusMX is a real location...it isn't the case on a Synology). In the rest of this guide replace any reference to /volume1/opt/CumulusMX to the path you are using.
- Next we are going to create a Task to Start Cumulus MX.
- Open Control Panel and expand Advanced Mode to view all options
- Click on Task Scheduler
- Click on Create / Triggered Task / User-defined script
- Give the Task the name: Cumulus MX Start and be sure that the User is root, Event is Boot-up, and ensure that Enabled check box is on. Do not click OK yet.
- Click on Task Settings tab
- In the User-defined script box enter the following code: (this is where it is important to use your path if different than volume1 for both Mono and for your /opt/CumulusMX folder)
Code: Select all
/volume1/@appstore/mono/bin/mono-service -l:/tmp/cmx.pid -d:/volume1/opt/CumulusMX CumulusMX.exe -service
- Click OK to save the task.
- Next we are going to create a Task to Stop Cumulus MX.
- Click on Create / Triggered Task / User-defined script
- Enter Task name as Cumulus MX Stop, User is root, Event is Shutdown, and ensure that Enabled check box is on. Do not click OK yet.
- Click on Task Settings tab
- In the User-defined script box enter two lines:
Code: Select all
kill $(cat /tmp/cmx.pid) rm /tmp/cmx.pid
- Click OK to save the task.
- We are done! You can reboot your Synology to test the auto-start. Once booted up you should be able to open the Cumulus MX web interface and configure your station. Just open your browser to to the following address that corresponds to your Synology NAS with the specified port of 8998 as follows for example:
http://192.168.1.21:8998 - You can now go to Settings / Station Settings and configure your station.
- You need to Restart Cumulus MX after configuring for your station type and selecting your units to begin to get data and have a live working Dashboard.