Skip to content

lapd-python/traffic-poll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webcam Poller

A bunch of stuff that polls the NYC Department of Transportation cameras once per second, and generates a seekable livestream from it.

Why?

The NYC DOT traffic cameras are useful, but you can’t seek backwards in time, making it difficult to see previous frames unless you’ve saved it.

This repo contains a Docker image that glues together:

  • Go daemon that polls for images
  • ffmpeg RTSP stream
  • ffmpeg stream to m3u8’s
  • nginx HLS server
  • absurdly barebones website that let’s you pick the camera(s)

Usage

who knows lol

Missing Features

  • Database
  • Search
  • Long term archival to blob storage
  • Everything beyond the barebones

Demo

TBD

License

See LICENSE file.

Design Choices

Files & Details

  • /nginx contains the relevant nginx configuration
  • /site contains the html site to serve
  • /poller contains the go code that scrapes the images
  • /scripts contain a variety of scripts that manage ffmpeg

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 38.2%
  • Shell 23.2%
  • Dockerfile 17.5%
  • Python 11.6%
  • HTML 9.5%