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.
If you need more permanent solution than BigClown Playground you can install all the services yourself in your system. This guide will help you to install and configure these services:
- BigClown Gateway
- BigClown Firmware Tool
- BigClown Host Tool
- Mosquitto MQTT broker
- The process manager
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 Radio Dongle it appears as
/dev/ttyUSB0 so it's easy to use Synology NAS as a BigClown gateway. You can install
Python, BigClown gateway
mosquitto very easily. You can also use Docker to run different services separately from the host OS.
bcggateway directly on Linux which already runs on your NAS of any brand. The virtualization step is optional and it was choosed because my NAS supported it and has plenty of resources. On Synology just SSH to the NAS IP and use your name and password which you use to login to the web management.
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.
- Install Virtual Machine Manager
Download Ubuntu 16.04 server amd64. The 64 bit is important because Grafana do not release 32 bit versions anymore.
Open Virtual Machine Manager and create a new virtual machine. The parameters below are the minimal which were tested
- 1 CPU Core
- 1 GB of RAM
- Boot ISO file - select your downloaded installation ISO
- Virtual disk size - 10 GB
- 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 Radio Dongle which is connected to you Synology NAS now, or later after you install virtual machine.
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.
If you did not already inserted Radio Dongle, do it now. Open virtual machine configuration on the Other tab and in the USB device list select Future Technology Devices International.If you disconnect Radio Dongle from the USB then this USB device configuration must be set again!
Follow steps **Custom Setup on Ubuntu to install all the tools and services.
Now you have Node-RED, Grafana and all the tools running on your Synology NAS.