Coder Social home page Coder Social logo

pimatic-ping's Introduction

pimatic ping plugin

Provides presence sensors for your wifi device, so actions can be triggered if a wifi device is (or is not) present.

Configuration

Add the plugin to the plugin section:

{ 
  "plugin": "ping"
}

Then add a presence sensor for your device to the devices section:

{
  "id": "my-phone",
  "name": "my smartphone",
  "class": "PingPresence",
  "host": "192.168.1.26",
  "interval": 5000
}

The host property can also be set to a hostname which will be resolved using DNS. By default, DNS will be queried for IPv4 addresses. If multiple IP addresses found the device will be flagged present if at least one IP address can be successfully pinged. By setting the property dnsRecordFamily to one of the following numbers the DNS address resolution mode can be selected:

  • 4: query IPv4 addresses (default)
  • 6: query IPv6 addresses
  • 10: hybrid mode, query IPv4 and IPv6 addresses
  • 0: any mode, query IPv4 and IPv6 addresses, but use whatever query result is returned first

Provided predicates

You can use the predicates:

  • "my smartphone is present" or "my-phone is present"
  • "my smartphone is not present" or "my-phone is not present"

pimatic-ping's People

Contributors

fritz-hh avatar joecks avatar mwittig avatar sweetpi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  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.