Node-red-contrib-life

Hello @grumpazoid and anyone else interested -

I'm a node-red neophyte - this is my first post here. I found this discussion by googling for instructions on how to use node-red-contrib-life.

It took me an hour or so, but I figured out how to use this. There are two nodes in node-red-conrib-life:

  1. A config node that needs your Life360 username/password
  2. A location node that outputs your location while you are outside of your Life360 "home" place. This node outputs every 15 seconds.

The output from the location node is in JSON and includes latitude and longitude. The output from the Life360 location node can be parsed through the JSON parser node, and provides location as:

msg.payload.location.latitude and
msg.payload.location.longitude

These can be used in any desired manner. I used the change node to convert them into "msg.location.lat" and "msg.location.lon" to feed to a geofence node..

Setting the "home" place in the Life360 app to be smaller than the layers defined as "only points inside" or "only points outside" in node-red-node-geofence makes it easy to set home/away presence in Node-RED using Life360.

Because this life360 node sends updates every 15 seconds, if one only desires to set home/away, it is a good idea to pass the output of the geofence node through an rbe node.

Hope this helps someone. Happy to post my sequence if necessary.