I've been looking for a simple activator which can execute some code when stuff happens, I haven't found anything yet. Maybe, I am not using the right keywords. It would be great if someone pointed me to the right app.
These are the things I am looking for, in the activator:
- An event should be able to trigger an arbitrary chunk of code
- An event can be
- a datetime, or a datetime match expression. (time: '16:00', day: 'monday' or day: 'monday', month: 'jan' etc,.)
- a message on a socket?
- anything written out to a device like /dev/*
- a file creation, maybe in a special directory
If there is nothing which does this, would someone be interested in something like this?
A very basic configuration(written in ruby) for this would be:
trigger_when({:day => 6, :time => '10:30'}, {:message => 'Awesome message'}) # :day => 6 for sunday
trigger_when({:day => 0, :time => '10:30'}) do
puts 'awesome stuff happens'
end
I have created a repo github hoping to create something like this , but it would be great if there is an existing app which does this.
There is an android app which seems to do almost the exact thing http://tasker.dinglisch.net/. I am looking for something which does it on a desktop.