Coder Social home page Coder Social logo

mrsteakhouse / webthings-network-presence-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flatsiedatsie/webthings-network-presence-detection

0.0 0.0 0.0 20.36 MB

Devices on the local network can be added as a 'thing' in the Mozilla WebThings Gateway. Automations can then respond to their presence. For example, turn on the lights at night when your mobile phone connects to the wireless network.

License: MIT License

Python 98.52% Shell 1.48%

webthings-network-presence-detection's Introduction

Webthings network presence detection

Using this add-on, devices on your local network can be added as a 'thing' in the Mozilla WebThings Gateway. Automations can then respond to their presence. For example, turn on the lights at night when your mobile phone connects to the wireless network. Or turn of the heater when none of your phones or laptops are on the network.

A screenshot of a presence detection thing

Features

  • You can change how many minutes a device must 'disappear' from the network before it is marked as being away. The add-on scans the network once every few minutes.
  • If the human-readable name of a device is not known, then it will try to look-up the device manufacturer, and use that as a name. The add-on does not connect to the internet to do this. It is done locally, on the gateway, so your privacy is protected.

Limitations

  • This add-on uses 'ping', 'arping' and 'arp' to scan the local network. Arping can spot more devices, but requires you to install it on your system manually.
  • A thing is linked to a mac-address of a device. Nowadays some devices, like iphones, change their mac-address once in a while to make tracking difficult. This is a great privacy feature, but it may also hinder this add-ons ability to track (i)phone presence.

Thanks to

Michael Stegeman of the Mozilla Foundation helped a lot in getting this add-on to work optimally. https://github.com/mrstegeman

webthings-network-presence-detection's People

Contributors

flatsiedatsie avatar mrstegeman avatar mrsteakhouse 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.