In this tutorial, you will learn the basics of working with Raspberry Pi (that runs the Debian-based Raspbian). You will then learn how to connect your devices to QNAP NAS using QIoT Suite Lite.
Please ensure your Raspberry Pi and NAS are on the same LAN.
1. Connect Raspberry Pi to QNAP NAS
Please configure your Raspberry Pi device with an operating system, set up your development environment, and deploy an application to Raspberry Pi.
1.1 What will you need
- 1. Raspberry Pi
2. SD card (an 8GB class 4 SD card is recommended) with NOOBS installed.
3. HDMI display.
4. USB keyboard and mouse.
5. Power Supply: The Pi requires a USB micro power supply with at least 2A at 5V for the Model 3B, or 700mA at 5V for earlier models.
- Insert the SD card containing extracted NOOBS files into the Raspberry Pi
Connect the keyboard, mouse, and HDMI display to the Raspberry Pi. Plug in the power adapter. The Raspberry Pi does not have a power switch, and will automatically power on once the adapter is connected.
A menu will ask what OS to install and what language and keyboard layout to use. Check the box next to Raspbian and click "Install".
1.3 Install Nodejs and required libraries
Install node.js v6
Please visit https://github.com/qnap-dev/qnap-qiot-sdks for QIoT Suite Lite sample code
2. Create your device in QIoT Suite Lite
2.1 Install QIoT Suite Lite
QIoT Suite Lite can be installed from the App Center. Launch and log in QIoT Suite Lite. The default username and password is "admin". 2.2 Create a new IoT application
IoT Applications are a combination of Things, Rules, and Dashboards. We recommend that you first create a “Things” in IoT Application. This IoT Application allows you to keep a record of all of the devices that are connected to your NAS.
Rules make it possible to build IoT applications that gather, process, analyze and act on data generated by connected devices. Rules can apply to data from one or many devices, and it can take one or many actions in parallel.
Dashboards turn your data into analytics and reports that provide real-time insights.
All these elements provide user a complete IoT Application environment. If this is your first time to use QIoT Suite Lite, QIoT Suite Lite provides a wizard to help you quick setup a IoT application.
Click “Quick Setup Wizard” to start quick setup wizard. After you read the QIoT Suite Lite introduction in pop window, click Next button. For more tutorial, please visit this link https://www.qnap.com/en/how-to/tutorial ... suite-lite