Giter Club home page Giter Club logo

webcam-resolver's Introduction

Webcam Resolver!!

Webcam Resolver is a tool that will return the true streaming URLs of publicly hosted webcams hosted by providers that cycle their URLs.

Some providers cycle the streaming URLs of their webcams to prevent people from directly linking to their streams. This tool will resolve the true streaming URLs of these webcams.

Use this tool as a proxy to get the true streaming URL for a webcam to use in other streaming apps like with Custom Channels in the Channels app.

How to use

Webcam Resolver is a simple web service. It has two endpoints that accept two properties, provider and camera_id.

The provider is the name of the provider that hosts the webcam. The camera_id is the identifier of the webcam found in the public URL of the webpage hosting the camera.

Providers Supported

  • Surfchex

    • example URL: http://www.surfchex.com/cams/avon/
    • provider: surfchex
  • IPCamLive

    • example URL: https://www.ipcamlive.com/6495b042d1523
    • provider: ipcamlive

Endpoints

Use these 2 endpoints to resolve the true streaming URLs of webcams.

GET /camera/:provider/:camera_id

This will return the true streaming URL of the webcam as a string.

Examples

/camera/surfchex/avon
/camera/ipcamlive/6495b042d1523

GET /stream/:provider/:camera_id

This will redirect the request to the true streaming URL of the webcam. Use this endpoint with other applications as the URL of your stream.

Examples

/stream/surfchex/avon
/stream/ipcamlive/6495b042d1523

Installation

This project was designed to be hosted by Docker. You can run it manually, but it is not recommended.

Docker

Run Webcam Resolver with Docker.

Command

docker run -it --name webcam-resolver -p 8000:4567 ghcr.io/maddox/webcam-resolver

Docker Compose

webcam-resolver:
  image: ghcr.io/maddox/webcam-resolver
  container_name: webcam-resolver
  ports:
    - "8000:4567"
  restart: always

Manually

Just start the service with the command below:

ruby webcam_resolver.rb

webcam-resolver's People

Contributors

maddox avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.