Members: Peter Gilbert and Alex Thomas
GNUPLOT
sudo apt-get update -y
sudo apt-get install -y gnuplot
APUE Textbook Source Code
apue.h
error.c
pathalloc.c
Inspiration From:
- Stackoverflow
The below command will make all object files, and executables:
make
The below command will delete all generated object files and executable files:
make clean
Besides those two commands, you may also type in "make" followed by the name of the file you would like to make. Example down below:
make webserv
We are using the convention "url?arg1&arg2&arg3" as our method of passing arguments on the URL
Example:
localhost:8080/my_histogram.cgi?testFolder
directories: ls -l is run for whatever directory is indicated in the url
cgi files: cgi is run based on the #!/bin/... on the first line and output is redirected to the client
html files: displays html files based on their content length and writes to the client
image files: displays image files and writes to the client socket
plain text: plain text will just be written to the client in the same way
to run the web server do:
./webserv
Example:
localhost:8080/my_histogram.cgi?testFolder
https://www.amazon.com/ELEGOO-Project-Tutorial-Controller-Projects/dp/B01D8KOZF4/
Arduino UNO, LED, and Fan/3-6V Motor Used as well as cables,breadboard,etc...
After running our webserver we make a get request to our html page (control.html) which has two buttons that once clicked, make a get request to a cgi file that then executes a c file which connects to the Arduino through the serial port and digitalwrites to the pin based off the parameters passed in.
Example:
localhost:8080/control.html
Why we used these components:
We chose to use these components because we already had them on hand, and thought a connection through an Arduino that is controlled from a webserver would be fascinating, since we have little experience with Arduinos.
- Additional Features not yet implemented
- Cgi files follow our file convention -> ?value&value rather than ?name=val&name=val ...
- Fairly simple Arduino sketch