Code Monkey home page Code Monkey logo

node-red-contrib-life360's Introduction

Life360

Description

node-red-contrib-life360

Life360 is an iOS/Android app for location tracking and geofencing your own (and friends'/family) location. It has a multitude of features, but this repo is explicitly for triggering home automations in Node Red. It mimmicks the triggers available in the IFTTT Life360 service by providing triggers for:

  • First to arrive
  • Last to leave

This package adds 2 nodes to Node Red:

  • Server node (which contains login credentials and communicates with Life360)
  • Location node (which contains the rules for specifying the types of events to output)

Fork

This package is a fork of the package: node-red-contrib-life (version 0.1.4)

It fixes the following bugs:

  • The output-at-startup checkbox (previously only applied to the first person in the first circle and now applies to all/circles & people).
  • Spurious location-change events due to the processing of multiple circles is fixed. Locations are now tracked by circle.
  • Clear the timer when node is destroyed or recreated. Fixes #1, PR #5.
  • Correctly handle errors from life360. PR #6.

It adds the following filters for location change events:

  • Selected (or any) circle
  • Selected, any, first, or last person
  • Selected or any place
  • Event type selection: arrive, leave, or either

Examples of location change events to monitor:

  • A specific person leaves or arrives at a specific (or any) place
  • Any person (in a Life360 "circle") leaves or arrives at a specific (or any) place
  • First person (in a Life360 "circle") arrives at a specific place
  • Last person (in a Life360 "circle") leaves a specific place
  • Any person in any circle leaves/arrives at a specific (or any) place

Install

To install the latest stable npm-published release, use the palette manager in node-red. To install the latest stable npm-published release from the command line:

cd ~/.node-red
npm i node-red-contrib-life360

To install the latest development version:

cd ~/.node-red
npm i https://github.com/hepcat72/node-red-contrib-life360

node-red-contrib-life360's People

Contributors

hepcat72 avatar maksimshakavin avatar andreyoshev avatar brianmay avatar rathga 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.