Ted Hong 09533b118e Add Avahi Support (#323)
* initial avahi support

This commit adds support for the Avahi advertiser with Scrypted. It also adds the s6 process supervisor to facilitate future service additions.

* universal s6

This commit attempts to fix the issue where Avahi doesn't start on non-x86_64 architectures.

* consistency updates

This commit updates the wording in certain s6 run files to be consistent.

* fix s6 overlay version argument

This commit fixes the S6_OVERLAY_VERSION argument being prematurely collected by moving it after the FROM command.

* correct shebangs

This commit corrects the shebangs of all s6 service scripts to register with s6 instead of just running under bash.

* register services with s6

This commit adds two empty files that correspond to the dbus and avahi services started by s6. Without these files, s6 does not initialize daemons to keep dbus and avahi running.

* fix permissions and shebangs

This commit fixes the permissions on the service scripts that s6 is responsible for starting. It also reverts the shebang back to bash because many script utilities aren't available when running under execlineb.

* organize added features by block

This commit organizes all added lines into separate blocks for both avahi and s6-overlay. Resolves some of koush's review comments on #323.
2022-08-22 08:31:36 -07:00
2022-06-27 11:47:16 -07:00
2022-08-22 08:31:36 -07:00
2022-08-20 14:48:09 -07:00
2022-08-20 20:29:19 -07:00
2022-08-20 20:29:19 -07:00
2021-10-02 20:52:59 -07:00
2021-11-05 23:38:51 -07:00
2021-08-24 21:22:41 -07:00
2022-05-02 11:50:47 -07:00
2022-08-19 09:38:24 -07:00

Scrypted Home Automation

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

  • Video load instantly, everywhere: Demo
  • HomeKit Secure Video Support
  • Google Home support: "Ok Google, Stream Backyard"
  • Alexa Support: Streaming to Alexa app on iOS/Android and Echo Show.
Scrypted_Management_Console

Installation

Select the appropriate guide. After installation is finished, remember to visit HomeKit Secure Video Setup.

Discord

Chat on Discord for support, tips, announcements, and bug reporting. There is an active and helpful community.

Join Scrypted Discord

Wiki

There are many topics covered in the Scrypted Wiki sidebar. Review them for documented support, tips, and guides before asking for assistance on GitHub or Discord.

Supported Platforms

  • Google Home
  • Apple HomeKit
  • Amazon Alexa

Supported accessories:

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

Description
No description provided
Readme 64 MiB
Languages
TypeScript 79.9%
Python 16.3%
JavaScript 2.3%
Shell 1.4%
PowerShell 0.1%