Giter Site home page Giter Site logo

nest-events's Introduction

Nest Events Listener

This is a .NET Core app written in C# that demonstrates how to use the Nest Developer API and AWS (Amazon Web Services) to send an SMS when your camera thinks it saw someone.

Inspiration

My wife requested this =). This works better for us than the normal Nest service notification options (see FAQ for more info).

Requirements

  • Nest Developer account with a custom product that has access to read camera data
  • AWS account to send SMS messages via SNS (the free tier allows 100 SMS messages per month)

Configuration

All configuration is stored in the Secret Manager tool available to .NET Core. This tool is best used during development to keep secrets like authentication outside of your project's settings file to prevent accidental check-in of Production credentials/info.

Application Flow

  • Start a localhost HTTP Listener to act as the Nest OAuth redirect URL
  • Load the Works-with-Nest Authentication page in the default web browser
  • Upon authorizing, sends the authorization code to the redirect URL
  • Gets a Nest OAuth token using product info and the authorization code
  • Establishes a REST streaming connection with the Nest service
  • When a Nest camera on the account thinks it saw someone, an SMS message is sent out via AWS SNS to multiple phone numbers

FAQ

Q: Doesn't Nest already send notifications?
A: Yes, the Nest mobile app allows you to control how notifications get sent out, BUT it isn't as fine-grained as we prefer (i.e. receive notifications for selected activity types, or none at all). Besides, this was a fun way to play with the Nest and AWS API =)

References

nest-events's People

Contributors

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