Git Product home page Git Product logo

scrypted-furbo's Introduction

Nanit Camera

How to install:

  • Install Node and npm -> https://docs.npmjs.com/downloading-and-installing-node-js-and-npm

  • Install https://www.scrypted.app/ and follow instructions on the website.

  • Once you have Scrypted running and can access it...continue

  • Open this plugin directory in VS Code

  • In a terminal cd into this project directory

  • run npm install

  • run npm run build

  • run npm run scrypted-deploy 127.0.0.1 NOTE: you can replace 127.0.0.1 with the ip address of the server you installed scrypted on

The Terminal area may show an authentication failure and prompt you to log in to the Scrypted Management Console with npx scrypted login. You will only need to do this once. You can then relaunch afterwards. The command if your scrypted instance is remote is npx scrypted login ip:port

  • Launch Scrypted, go to "Devices"
  • You should see a device named Nanit Camera Plugin, click it
  • Enter your email and password on the right, then click save.
  • You'll receive the mfa token enter that in the "Two Factor Code" and click save again
  • Wait a few seconds then reload the page: Refresh Token, Access Token and Expiration should all have values
  • Now go back to devices and you should see a new device that is named the same as your Nanit Device. Click it and then click the video and it should be streaming!

Troubleshooting

If you aren't seeing the video load, first try clearing the Expiration value in the Nanit Camera Plugin and click save. This will force the plugin to get a new token.

If you are still having issues then clear the access_token and refresh_token values and click save.

Finally, Login again with your username and password + two factor auth by following instructions in above section

Other Notes

It is currently setup as a Battery camera in Scrypted. The only reason this is done is so that Scrypted doesn't pre-buffer. When the camera is not battery Scrypted will stay connected to the stream 24/7, instead of on demand when the rtsp/homekit stream is requested. I suspect if we stay connected to the Nanit stream 24/7 they would take notice eventually.

If you want to disable this. Remove the ScryptedInterface.Battery from line main.ts.

const interfaces = [
                ScryptedInterface.Camera,
                ScryptedInterface.VideoCamera,
                ScryptedInterface.MotionSensor,
                ScryptedInterface.Battery //REMOVE THIS
            ];

The Snapshot Photos are not working right now. You may see a "Failed Snapshot" screen until I can get that working.

Importing into Home Assistant

Method 1

  • Under the camera, make sure the rebroadcast plugin is enabled.
  • In the Camera settings go to the Stream and there should be a "RTSP Rebroadcast URL" box. Copy that value
  • In HomeAssistant add a camera entity -> https://www.home-assistant.io/integrations/generic/
    • The copied value is your "stream source"

Method 2

scrypted-furbo's People

Contributors

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