You can have BigClown Gateway running on Raspberry Pi, but if you have any kind of NAS already running 24/7 in your newtwork, why not take advantage of it? You will save a tiny bit on electricity bill and also get more durable system.

About project

Synology NAS is a very versatile device. You can install many services with a single click of your mouse. You can also SSH to the internal Linux OS and change anything you like. If you connect USB Dongle it appears as /dev/ttyUSB0 so it's easy to use Synology NAS as a BigClown gateway. You can install Python, BigClown gateway bcg and mosquitto very easily. You can also use Docker to run different services separately from the host OS.

This tutorial is going further and is using the Virtual Machine Manager to create completely separate virtual Ubuntu 16.04 server. Please see the list of supported Synology NAS.

All the services will be installed inside the virtual machine. The advantage is that this machine can be easily exported and moved to another host. Synology is using QEMU emulator, but exported machines can be run also in Virtualbox without any issue. Other advantage is that you get more robustness of your data in comparison of Raspberry Pi which is using microSD card. Synology can use BTRFS filesystem which is immune to failure of one or many hard drives.

Installation

  1. Install Virtual Machine Manager
  1. Download Ubuntu 16.04 server amd64. The 64 bit is important because Grafana do not release 32 bit versions anymore.

  2. Open Virtual Machine Manager and create a new virtual machine. The parameters below are the minimal which were tested

    • Generic tab

      • 1 CPU Core
      • 1 GB of RAM
    • Storage tab

      • Boot ISO file - select your downloaded installation ISO
      • Virtual disk size - 10 GB
    • Other tab

      • Virtual USB driver - USB 2.0 or 3.0 (you can change this only when a virtual machine is turned off)
      • USB Device - select the USB Dongle which is connected to you Synology NAS now, or later after you install virtual machine.
  3. Confirm virtual machine creation, turn on the virtual machine and press Connect so noVNC virtual console is opened in your browser, follow the installation steps to install the Ubuntu.

  4. If you did not already inserted USB Dongle, do it now. Open virtual machine configuration on the Other tab and in the USB device list select Future Technology Devices International.

  5. Follow steps Playground Setup on Ubuntu to install all the tools and services.

  6. Now you have Node-RED, Grafana and all the tools running on your Synology NAS.



Chapters in this document:
Edit this page