Proximus

(Fleshing out)
m (Proximus)
Line 45: Line 45:
* Wifi [Auto change to wifi on/off]
* Wifi [Auto change to wifi on/off]
* Random Application [Start, stop]
* Random Application [Start, stop]
 +
 +
Actions should be pluggable or scriptable by users, so they can add new features easily.
 +
 +
Please feel free to add more details, comments, etc.
Please feel free to add more details, comments, etc.

Revision as of 14:26, 10 June 2011

Proximus

This is a page discussing the implementation of a daemon which can trigger certain actions (e.g. change sound settings, open application) when certain states or conditions change (e.g. location, network connections, time)

Thanks to Jaffa for the name ("Mix of "proximity" and "tempus" - the original use cases")


Conditions

These are the things to be checked and if true will cause some action to be performed.

Time based

  • Current time [earlier than, later than, equal to]
  • Current hour [<, <=, ==, >, >=, !=]
  • Current minute [<, <=, ==, >, >=, !=]
  • Current second [<, <=, ==, >, >=, !=] - perhaps somewhat excessive -lardman

Location based

  • Current location [within some radius, outside of some radius] - implement by looking at the transitions, rather than continually running a rule while true/false? -lardman

Depending on the radius (and perhaps some hints) we can work out whether we can use cell id (free if we cache the relevant ones offline) or require GPS accuracy. In any case we can avoid turning the GPS on until we are close by using the known/cached cell id close to the location as the first part of the check.

  • Connected to X wifi network

Connection based

  • Connected to a wifi network
  • Bluetooth connection?

Other

  • Specific application starts running
  • Specific application is running
  • Specific application stops running
  • Specific application isn't running
  • headphones plugged in/out

Actions

  • Sound [on, off]
  • Profile select [General, Silent]
  • Bluetooth [connect, disconnect to/from known device?]
  • Bluetooth [on, off (visible)]
  • Wifi [connect, disconnect]
  • Wifi [auto-connect on/off]
  • Wifi [Auto change to wifi on/off]
  • Random Application [Start, stop]

Actions should be pluggable or scriptable by users, so they can add new features easily.



Please feel free to add more details, comments, etc.