What you need to know before installing
1. Coolpy is a Nodejs-based IoT platform (official website http://icoolpy.com).
Note: The domestic IoT platform has the LEGO network , Yeelink and so on, but only coolpy is open-source.
2. Node. JS is a platform built on the chrome JavaScript runtime to easily build fast, easy-to-scale Web applications
Note: Therefore, to run coolpy, you must first install the Nodejs.
3. The new coolpy does not use a database but is stored locally as a file.
Note: So a large database does not need to download, the database installation procedures can also be omitted
4.ubuntu installation of coolpy http://www.cnblogs.com/jacle169/p/4177890.html
5.openwrt under Installation coolpyhttp://www.cnblogs.com/jacle169/p/4232007.html
6. Raspberry Pi Installation Nodejs is a reference to the Linux commune article http://www.linuxidc.com/Linux/2015-01/111714.htm
Installation Prerequisites
1. The Raspberry Pi has installed the system and is running successfully.
2. will use SSH to operate the Raspberry Pi
3. FTP tool will be used to transfer files to the Raspberry Pi
Configuration Step one. Non-essential steps
To install a dependent library:
$ sudo apt-get install g++
$ sudo apt-get install Libssl-dev
Note: This step may not necessarily require
Two. Raspberry Pi installation Nodejs
Re-emphasize the reference article http://www.linuxidc.com/Linux/2015-01/111714.htm
1. Get Nodejs compiled files
wget http://nodejs.org/dist/v0.11.7/node-v0.11.7.tar.gz
2. Unzip the Nodejs compilation file
Tar-xzf node-v0.11.7.tar.gz
3. Compiling Nodejs
CD node-v0.11.7
Note: Enter the node-v0.11.7 directory
./configure
Note: the./configure is used to detect the target characteristics of your installation platform. For example, it detects if you have CC or GCC, does not need CC or GCC, it is a shell script.
Note: Make is used to compile, it reads the instruction from the makefile, and then compiles. The compiled executable is defaulted to the/usr/local/bin directory. Compile time is longer, I spent 4 hours.
4. Installing Nodejs
Su
Note: Log in to the system using the system administrator
Make install
Note: Make install is used for installation, it also reads instructions from makefile and installs to the specified location.
5. Restart the Raspberry Pi
Reboot
6. Check the installation
Once the installation is complete, you can check the version using the following command:
Node-v
Npm-v
The result should be:
Nodejs Version V0.11.7
Npmversion 1.3.8
Three. Run coolpy1. Download coolpy Run File
Into the cool and the official dot hit OpenWrt version, but used only coolpyopwrt1.0.5.5.zip.
2. Transfer the coolpy file to the Raspberry Pi
Using the FTP Transport tool
3. Unzip the coolpy
Unzip Coolpyopwrt1.0.5.5.zip
4. Running Coolpy
node./bin/coolpy.js
Raspberry Pi makes coolpy server