Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nest_away

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nest_away

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Nest Away

This does one thing. It sets your status to away or home.

Usage

Create the client:

require 'nest_away'
nest = NestAway::Client.new(email: 'joe@example.com', password: 'hunter2')

Change the away status:

nest.away? # => false
nest.home? # => true

nest.away! # => {status: 'away'}
nest.home! # => {status: 'home'}

Why?

As Nest expands its product line, and since they all tie into the idea of people being away/home, I thought it would be useful to have a small, effective API wrapper that did one thing well.

A possible use-case is to use IFTTT to make a recipe with the Alexa and Maker channels that will send this gem a request on Amazon's Lambda service.

Saying "Alexa, trigger Home" would send an HTTP request to Lambda using Maker which will trigger Lambda to run some code that instantiates a client that runs the Client#home! method.

FAQs

Package last updated on 19 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc