andreyoshev / node-red-contrib-life Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I have edited this issue because as I've worked on it, I realized I didn't fully understand it, but one thing's for sure: if 2 users in different homes invite each other to their own circles they've created with their own places (or if a user has 2 circles that have the same "place" with a different name) - and they include the same locations with different names, updating each member for each circle will trigger output as if a person moved from one place to another when the only difference is the name of the same place is a different circle.
E.g. I have a place in my circle named "Mom and Dad's House". I invited my parents to that circle so that when they come and go from my house, it can trigger my automations. But I also have automations for when I come/go to/from their house. Likewise, my dad has a circle (to which he invited me) and his house for him is named "Home". When my parents are just sitting at home, the location node keeps spitting out that their location changed from one name of the same place to the other name of the same place.
You can test this without involving another user's circle by creating your own second circle containing a differently named place for the same location.
Also, there's a sendMember call in an else (in server:sendChanged
) that triggers spurious location changes when no named location change happened.
The thing I haven't figured out is that when I put debug output above the sendMember call, I get debug output that a place change occurred but there's no corresponding location node json output. In those instances, it appears that it has to do with the location name being null. The person is actually still in the named location, so ultimately there should be no output. I just don't understand why there is no output. It seems like the conditions are the same as when a person leaves a named location, though I haven't tested that to see if the location node outputs as I would expect.
A place name list not available in event payload. Can we add this? If yes, then we will be able to a string compare when playing location notifications! :)
Hi,
Please could you provide some information on what this node does and how to use it.
I found it here https://flows.nodered.org/node/node-red-contrib-life while searching if there was a life360 plugin for node red.
Flow restart will not generate initial event. The only way to fire the initial event is to restart the entire Node Red instance. Can you please add this by default?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.