npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-yi-camera

v1.1.6

Published

homebridge-yi-camera

Downloads

49

Readme

Yi!Camera v1

npm npm GitHub last commit Donate

Creating and maintaining Homebridge plugins consume a lot of time and effort, if you would like to share your appreciation, feel free to "Star" or donate.

This is a dynamic platform plugin for Homebridge to control your YI Cameras with MQTT (motion), GUI (Access to stream via http), Telegram notification and FakeGato Support. It is designed for the YI-HACK v4 and offers 100% support. Also, most switches that are otherwise only accessible via Web Interfae can be switched via third-party apps, for example Elgato EVE App.

This Plugin creates one accessory with two services. A camera service to access your camera via RTSP and a Motion Sensor service with FakeGato functionality to check the last movement and more. It creates also some custom characteristics to switch camera settings, eg SSH, FTP, Telnet etc within 3rd party apps like Elgato EVE.

You can also set up the notifier to get a Telegram notification with customized messages and markdown capability when motion detected/undetected.

Last but not least, you can activate "GUI" to access the Stream via webbrowser on any device! On iOS devices you have also the possibility to save the website as a web application to your home screen.

Documentation

Changelog

See the changelog for changes between versions of this package.

Installation instructions

After Homebridge has been installed:

  • (sudo) npm i -g homebridge-yi-camera@latest

You also need a programm to handle the stream. I recommend to use FFmpeg

See OS instructions for detailed installation instruction regarding to your OS

Basic configuration

{
 "bridge": {
   ...
 },
 "accessories": [
   ...
 ],
 "platforms": [
   {
     "platform": "YiCamera",
     "videoProcessor": "ffmpeg",
     "cameras": [
       {
         "name": "Flur",
         "active": true,
         "videoConfig": {
           "source": "-rtsp_transport tcp -re -i rtsp://192.168.178.31/ch0_0.h264",
           "maxWidth": 1920,
           "maxHeight": 1080,
           "maxFPS": 30
         }
       }
     ]
   }
 ]
}

See Example Config for more detailsand options!

OS instructions (FFmpeg)

Mac OS:

To install this utility on OS X, just head over to ffmpeg.org, download the release relative to your Macs architecture. Then put the application into an accessible directory and run it from command line. Another way is using HomeBrew

For example

brew install ffmpeg --with-fdk-aac --with-ffplay --with-libass --with-libvorbis --with-libvpx --with-rtmpdump --with-openh264 --with-tools

Windows:

To install this utility on Windows, head over to ffmpeg.org and follow the download link, using your architecture. Then place the downloaded software into an accessible directory and run from command line.

Linux:

To install this utility on Unix, just follow the instructions found at ffmpeg.org

To check if ffmpeg is installed correctly and see a list of available commands try running the following command in the command line:

ffmpeg -help

Homebridge Docker:

Add FFmpeg to packages

PACKAGES=ffmpeg

GUI Access

After setting up the gui part in config.json, just open http://localhost:<port_config.json> and you are ready. Credentials are these setted up in config.json as username and password.

Login

Cameras

Stream

iOS Web Application

  • Open Safari. Other browsers, such as Chrome, won’t work for this.
  • Navigate to http://localhost:<port_config.json>
  • Tap the Share button at the bottom of the page.
  • On the bottom row of icons, scroll over until you see Add to Home Screen and tap this.
  • On the next screen, choose a name for the link on your home screen. You’ll see the link so you can confirm it, as well as the site’s favicon that becomes its “app” icon.
  • Now just tap the new app on your home screen, and it will open the website in its own navigation window, independent of Safari.

Note: Maybe othe cameras than yi will also work with this plugin, but you need at least disable MQTT. Because MQTT is a function especially for the hack!

(see Yi-Hack v4 Supported Cameras)

Supported clients

This plugin has been verified to work with the following apps on iOS 12.2 and iOS 12.3 Beta:

  • iOS 12
  • Apple Home
  • All 3rd party apps like Elgato Eve etc (recommended for custom characteristics)
  • Homebridge v0.4.49

Supported Cameras

  • Yi Home 720p (17CN)
  • Yi Home 720p (27US)
  • Yi Home 720p (47CN)
  • Yi Dome 720p (Generic)
  • Yi Dome 720p (43US)
  • Yi Dome 720p (63US)
  • Yi Dome 1080p (Generic)
  • Yi Dome 1080p (45US)
  • Yi Dome 1080p (65US)
  • Yi Home 1080p (version 1)
  • Yi Home 1080p (6FUS, Work in progress)
  • Yi Cloud Dome 1080p
  • Yi Outdoor

Contributing

You can contribute to this homebridge plugin in following ways:

Pull requests are accepted.

Troubleshooting

If you have any issues with the plugin then you can run this plugin in debug mode, which will provide some additional information. This might be useful for debugging issues. Just open your config.json and set debug to true!

Licens

MIT License

Copyright (c) 2019 Seyit Bayraktar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.