lines starting with a $ indicate a command to run
- Make sure you have I2C setup on your PI
$ sudo apt-get install lighttpd# install a web server$ sudo usermod -aG i2c www-data# add the cgi user to the i2c group$ mkdir -p /var/www/cgi-bin# create the cgi-bin folder$ sudo lighty-enable-mod cgi# enable CGI in lighttpd web server- copy your executeable to the
/var/www/cgi-bindirectory $ hostname -I# get the local IP of your RPI- With a computer on the same lan as the RPI open the url:
http://<RPI IP ADDY>/cgi-bin/<executeable name>