GithubHelp home page GithubHelp logo

unsignedarduino / picamera-server Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 34 KB

The server to view and control your PiCamera on your Raspberry Pi, with support for the Waveshare Pan-tilt HAT!

Home Page: https://picamera-server-viewer.vercel.app/

Python 100.00%
backend camera-stream fastapi pan-tilt picamera raspberry-pi waveshare

picamera-server's Introduction

picamera-server

Visit https://picamera-server-viewer.vercel.app/ to view your Picamera after following the instructions to start the server on the Raspberry Pi!

The server to view and control your PiCamera on your Raspberry Pi, with support for the Waveshare Pan-tilt HAT!

The web-based viewer can be found at https://github.com/UnsignedArduino/picamera-server-viewer.

Install

  1. Have python3 installed.
  2. Clone this repo.
  3. Create a virtual environment.
  4. Install dependencies in requirements.txt.
  5. Install ngrok.
  6. Copy .env.sample to .env and add the password if desired. A blank password means that no password is set.

Development

Use uvicorn main:app --reload to start a development server.

Build and serve

python3 src/main.py will start the ASGI server in production mode.

Use ngrok to tunnel the server running on port 4000 with ngrok http 4000. Note that not using an account with ngrok will cause the tunnel to expire in a couple of hours, so if you want to keep the camera permanently accessible without having to restart the tunnel, you will want to add your auth token after signing up for ngrok.

Note you must also follow the instructions to start the web viewer server.

picamera-server's People

Contributors

unsignedarduino avatar

Stargazers

 avatar

Watchers

 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.