Giter Site home page Giter Site logo

pet-cam-pi's Introduction

Internet Pet Camera for Raspberry pi using SkyWay

The world's easiest pet camera with pan control that can be viewed from the Internet.

日本語の説明もあります

Getting Started

These instructions will get you a copy of the project up and running on your local machine for testing.

Prerequisites

A SkyWay account is required. You can create an account for free.

Hardware

  • Raspberry Pi
  • USB Camera
  • Servo

Wiring

  • Pi 2pin (5V Power) -> Servo VCC
  • Pi 6pin (Ground) -> Servo GND
  • Pi 12pin (GPIO 18) -> Servo SIGNAL

Software

Create SkyWay project and application

  • Login SkyWay
  • Create Project
  • Create Application
  • Keep the displayed Application ID and Secret

Build

% git clone https://github.com/komasayuki/pet-cam
% cd pet-cam

% npm install

% npm run build
# index.html and javascript in ./dist

Run pet-cam-pi server on Raspberry Pi

# clone pet-cam repository from GitHub
% git clone https://github.com/komasayuki/pet-cam-pi

% cd pet-cam-pi/server

# first time only
% npm install

# launch pet-cam-pi server on port 8080
% sudo npm start

Now you can open Camera web page by Raspberry pi's web browser.

Camera side URL: http://localhost:8080/index.html?camera=true&audio=true

Deploy to GitHub Pages

You can invoke Deploy to GitHub Pages GitHub Actions manually. Push Run workflow of Deploy to GitHub Pages in GitHub Actions. You can access the web page on GitHub Pages.

Viewer side URL: https://komasayuki.github.io/pet-cam-pi/index.html?camera=false

Note

WebRTC is only available on iOS devices from pages hosted over https. This repository was made from SkyWay's p2p room example.

pet-cam-pi's People

Contributors

komasayuki 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.