This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Grab a JPEG snapshot from a Ubiquiti camera at a specified interval. | |
Usage: python uvcsnapshot.py -i INTERVAL -c CAMERA -p PASSWORD -o OUTPUT | |
Required arguments: | |
-i interval in seconds | |
-c camera IP address | |
-p camera password | |
-o path to output directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Save this file as /etc/nginx/sites-enabled/proxyable-tinypilot.conf | |
# Restart nginx: service nginx restart | |
# Point your reverse proxy to 127.0.0.1:8899 | |
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the | |
# scheme used to connect to this server | |
map $http_x_forwarded_proto $proxy_x_forwarded_proto { | |
default $http_x_forwarded_proto; | |
'' $scheme; | |
} |