Skip to content

orther/scrypted

 
 

Repository files navigation

Scrypted Home Automation

Scrypted is a home automation platform primarily focusing on making camera experiences seamless.

Scrypted_Management_Console

Discord

Join Scrypted Discord

Supported Platforms

  • Google Home
  • Apple HomeKit
  • Amazon Alexa

Supported accessories:

Installation

Run on Docker

Docker Installation Instructions

Run Locally

Local Installation Instructions

Development

Debug the Scrypted Server in VSCode

# check out the code
git clone https://github.com/koush/scrypted
cd scrypted
# get the dependencies for the server and various plugins
./npm-install.sh
# open server project in VS Code
code server

You can now launch Scrypted in VSCode.

Debug Scrypted Plugins in VSCode

# this is an example for homekit.
# follow the steps above to set up the checkout.
# open the homekit project in VS Code
code plugins/homekit

You can now launch (using the Start Debugging play button) the HomeKit Plugin in VSCode. Please be aware that you do not need to restart the Scrypted Server if you make changes to a plugin. Edit the plugin, launch, and the updated plugin will deploy on the running server.

If you do not want to set up VS Code, you can also run build and install the plugin directly from the command line:

# currently in the plugins/homekit directory.
npm run scrypted-webpack && npm run scrypted-deploy 127.0.0.1

Plugin Development

Want to write your own plugin? Full documentation is available here: https://developer.scrypted.app

HomeKit Secure Video Setup

  1. Install Scrypted.
  2. Open https://localhost:10443/ (substitute localhost appropriately for a remote server).
  3. Install the Unifi, HikVision, ONVIF, or Amcrest camera plugin.
    • HKSV requires cameras with motion alerts, and these plugins provide motion alerts.
    • If there's no plugin for your camera, but it supports motion alerts using mail, use the generic RTSP, SMTP plugin, and Dummy Switch plugin. This will create a mail activated motion sensor.
    • If there's no plugin or mail support for your camera, you can install the generic RTSP Plugin, Video Analysis Plugin, and OpenCV motion detection Plugin. This will use the processing power on your server to detect camera motion.
  4. Install the HomeKit Plugin.
  5. Install the Rebroadcast plugin.
    • This is optional but highly recommended. It keeps a short video loop of the stream in memory leading up to the motion.
  6. Pair with the Scrypted Server accessory using your HomeKit app on iOS or Mac.
  7. Enable recording on the cameras in HomeKit.

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 68.1%
  • Vue 14.1%
  • JavaScript 9.5%
  • Python 6.4%
  • SCSS 1.0%
  • C++ 0.5%
  • Other 0.4%