CCTV service is a tiny Sanic app that connects COA staff to traffic camera feeds. It serves the purpose of re-directing on-network visitors to the public Device Status Dashboard to the CCTV camera feeds which sit behind the COA firewall, and avoids the need for us to expose the CCTV IP addresses to the public internet.
Here's how it works:
-
You are connected to the City of Austin network, and you have been whitelisted to access the CCTV camera feeds.
-
You visit the Device Status Dashboard, select a CCTV camera, and click the link to view its video feed.
-
The link to view the feed hits the CCTV service, and looks like this
http://<server ip>:<port>?cam_id=204. Wherecam_idis the unique ID of the camera feed your're trying to view. -
The CCTV service is only available on the city network, in which case the service will look up the IP address of the camera you requested, and redirect you to it.
-
Install Docker and launch the Docker engine
systemctl start docker. -
Clone this repo and on your host and
cdinto the repo:git clone http://github.com/cityofaustin/cctv-serivce && cd cctv-serivce. -
Build the Docker image:
docker build -t atddocker/cctv-service .. -
The service is managed by
systemd. To start, stop and restart the service, use the following:
sudo systemctl start cctv-service
sudo systemctl stop cctv-service
sudo systemctl restart cctv-service
- Visit the app at
http://<your host IP>:5000?cam_id=<a valid camera id>
As a work of the City of Austin, this project is in the public domain within the United States.
Additionally, we waive copyright and related rights in the work worldwide through the CC0 1.0 Universal public domain dedication.