-
Notifications
You must be signed in to change notification settings - Fork 2
Installation guide
Usually, wiringPi is pre-installed with standard Raspbian systems. To check this, run the following command in Terminal:
dpkg -s wiringpi
If it is not present, install it using:
sudo apt-get install wiringPi
For detailed instruction, visit this page.
To install nginx run the following command in Terminal:
sudo apt-get install nginx
Then, start the server with:
sudo /etc/init.d/nginx start
By default, NGINX puts a test HTML file in the web folder.
This default web page is served when you browse to http://localhost/ on the board itself, or RPi's IP address from another computer on the network.
To find the RPi's IP address, type hostname -I
in the Terminal.
NGINX defaults its web page location to /var/www/html
on Raspberry Pi OS. Navigate to this folder and edit or replace index.nginx-debian.html
as you like. You can confirm the default page location at /etc/nginx/sites-available
on the line which starts with 'root', should you need to.
For more information, visit RaspberryPi's documentation page.
To install CMake, run the following command in Terminal:
sudo apt-get install cmake
To install git, run:
apt-get install git
Enable the SPI interface. This is needed for the data communication between MCP3008 ADC and Raspberry Pi. This will allow RPi board to read data from analog sensors.
sudo raspi-config
This will launch the raspi-config utility.
There, select “Interfacing Options”. Highlight the “SPI” option and activate “Select”.
After activating "Yes" and rebooting RPi, the interface will be enabled.
In Terminal, run:
apt-get install libfcgi-dev
apt-get install libcurl4-openssl-dev
For more instruction, visit author's Github repository.