Commit 32038727 authored by Neil Gershenfeld's avatar Neil Gershenfeld

wip

parent 612b53c0
...@@ -12,20 +12,22 @@ can use uvcdynctrl -f to list resolutions ...@@ -12,20 +12,22 @@ can use uvcdynctrl -f to list resolutions
can use fswebcam --list-controls to list controls can use fswebcam --list-controls to list controls
can use sudo guvcview to adjust camera
can use http-server-with-auth to serve: can use http-server-with-auth to serve:
http-server-with-auth -p port --username username --password password http-server-with-auth -p port --username username --password password
http-server-with-auth -p port --username username --password password --ssl --cert cert.pem --key key.pem http-server-with-auth -p port --username username --password password --ssl --cert cert.pem --key key.pem
index is at http://this_address:this_port
last image is at http://this_address:this_port/oldimage.jpg last image is at http://this_address:this_port/oldimage.jpg
can use Logitech C920 HD Webcam can use Logitech C920 HD Webcam
can use Ubuntu MATE on Raspberry Pi 3: can use Ubuntu MATE on Raspberry Pi 3:
sudo apt-get install nodejs-legacy npm fswebcam imagemagick sudo apt-get install nodejs-legacy npm fswebcam imagemagick guvcview
sudo npm install -g http-server-with-auth sudo npm install -g http-server-with-auth
System -> Administration -> Time and Date -> Keep synchronized with internet servers System -> Administration -> Time and Date -> Keep synchronized with internet servers
can start on boot with cams.service: can start cams script on boot with cams.service:
sudo cp cams.service /lib/systemd/system sudo cp cams.service /lib/systemd/system
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable cams.service sudo systemctl enable cams.service
......
#!/bin/bash #!/bin/bash
cd /home/fab/cams cd /home/fab/cams
node cams.js & node cams.js &
http-server-with-auth -p port --username username --password password & http-server-with-auth -p set_port_number --username set_username --password set_password &
...@@ -26,7 +26,7 @@ var settings= '\ ...@@ -26,7 +26,7 @@ var settings= '\
--set Contrast=50% \ --set Contrast=50% \
--set Saturation=50% \ --set Saturation=50% \
--set Gain=50% \ --set Gain=50% \
--set Sharpness=50%' --set Sharpness=100%'
// //
// requires // requires
// //
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment