Git Product home page Git Product logo

ifttt-ip-presence's Introduction

IFTTT maker channel IP presence

Given an IP address it will ping at 1 second intervals and trigger an IFTT event if the device becomes available I'm using this to detect my Amazon dash buttons, but you can use for phone/watch/bathroom scales detection in the same way.

You'll need to set up static ip addresses for the devices on your router so that they always get the same one.

You also need to get a IFTT maker key

To use:

docker run --restart-always -d \
  -e IFTT_KEY=YOUR_IFTT_MAKER_KEY \
  -e DEVICE_button121=192.168.0.121 \
  -e DEVICE_button120=192.168.0.120 \
  -e DEVICE_weighin=192.168.0.122 \
  chrisns/ifttt-ip-presence

In this example I'm waiting for two dash buttons on 192.168.0.121 and 192.168.0.120 and I will fire the trigger button121 and button120 that I setup in IFTT. I've also got a bathroom scale and I trigger a weighin event when 192.168.0.122 is present.

Notes:

  • Theres a weird thing on docker for mac where pings always get a response irregardless of where they're going, so it won't run on that (at time of writing)
  • For getting the Amazon dash buttons to register to your wifi without buying stuff see https://blog.georgevanburgh.co.uk/2015/10/18/hacking-amazon-dash-buttons-in-the-uk/
  • The backoff for running the event again is 5 seconds, if you need a longer backoff you can set -e SLEEP=10 for a 10 second backoff time

ifttt-ip-presence's People

Contributors

chrisns avatar

Stargazers

 avatar

Watchers

 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.