Giter Club home page Giter Club logo

ifttt-remote-control's Introduction

IFTTT-Remote-Control

Run preset commands on a linux computer via text message

###Introduction###

This project works thanks to IFTTT and Dropbox. IFTTT receives a text and syncs it to the computer via Dropbox. Then a script will check for the existence of the file and if it is there, run a command.

###Implementation###

####Dropbox####

  1. You will need to create an account if you haven't already.
  2. Dropbox can be downloaded from https://www.dropbox.com/install
  3. See the Dropbox Wiki for configuring Dropbox to run at startup

####IFTTT####

  1. Create an account if you haven't already
  2. Go to https://ifttt.com/recipes/85666 activate the Dropbox and SMS channels if they aren't already, customize as needed, then click "Use Recipe"

####Script####

  1. Download the script iftttcontrol.sh from this repository
  2. Edit the variables at the beginning of the file for the IFTTT folder location and where you want a log to be stored
  3. Edit the command variables if you are using different IFTTT text tags
  4. You may want to move the script to a safe location and change the owner to root so it can't be edited too easily

####Cron####

  1. These commands require root, I used the crontab at /etc/crontab
  2. This is the line that I entered in crontab to run the script every minute, where "/etc/ifttt/iftttcontrol.sh" is the location of the script, it may be different for you:
    */1 * * * * root sh /etc/ifttt/iftttcontrol.sh

###Pushover Notifications###

If you would like to receive Pushover notifications, use the iftttcontrolnotify.sh file instead of the iftttcontrol.sh file. Be sure to set the POTOKEN and POUSER variables.

ifttt-remote-control's People

Contributors

nathancheek avatar

Watchers

James Cloos 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.