Active Topics

 



Notices


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#41
I like the sound of this context aware framework, sounds similar to Graham Cobb's DBUS scripts: http://www.cobb.uk.net/770/index.html#dbus-scripts

Just thinking about usability, and power consumption mainly, how many of these things/events have dbus messages?

Afaiu the network up/down/change stuff has messages one could listen for (and therefore not need to poll).

Things like the accelerometer are probably half way, some dbus messages exist, but to obtain more accurate data than simply portrait|landscape one would need to poll the sysfs device.

Same goes for location, really course data is pretty much free, but to get more accurate data the GPS will need to be running.

Attila, how do you currently hook into events? And do you have some test code available?
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#42
Mostly using stuff via (Qt-)DBUS. I try to stay away from polling, but for some things it's inevitable). The whole architecture is pluggable - the idea is that you register a plugin that can signal the framework that a condition is met. These plugins are pretty independent, so the actual implementation (listen to dbus, poll, alarmd, use some other service, etc) is left to the plugin.

Another thing wrt to power usage - I plan on labeling plugins regarding their power usage pattern. DBUS/alarmd based things get a green mark, things that need occasional (relatively cheap) polling get yellow, and things that actively use juice (like GPS) get a red power rating. That's the inital (not yet implemented) idea, anyway, so people could really think twice if they wish to enable a particular plugin.

This could mean two location plugins, too, a yellow, coarse location enabler, and a red, 'full' GPS one. These can also be chained - i.e. if the coarse location gives us Amsterdam, we won't bother turning on the GPS/checking if we are in a particular street in Paris.

I'm slowly stabilizing the plugin/action API. When I'm confident enough that daily breakages of these will not occur I plan on pushing the whole thing to extras-devel. Until that happens, the code is pretty fluid, so not much use from it (you can't really test the plugins without the shepherd part)...
 

The Following 4 Users Say Thank You to attila77 For This Useful Post:
Posts: 24 | Thanked: 18 times | Joined on Nov 2009
#43
Whatever happened with this?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#44
In progress It needs two things before it's released to the public:

a) stable API so the plugins do not get outdated on a weekly basis

b) finish the GUI so it's end user friendly - I have finished a few dialogs but it's far from robust/complete.

As soon as I have it ready on a level where people might start using it or contributing without fear of serious breakage (as it hooks/affect pretty low level APIs, it will be in extras-devel).
 

The Following 8 Users Say Thank You to attila77 For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#45
Doesn't seem to be here (at least not using thread search), so I'd like to request a no-ip.com updater that will send an update whenever your device's IP address changes.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 5 Users Say Thank You to qole For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#46
I wonder if there is a DBUS message for IP changes, there is for connection changes but I'm not sure for DHCP or NAT-ed address changes... The update itself is just a oneliner action plugin (=script).
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#47
Maybe I should bug fiferboy to add it to his IP address widget.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#48
Originally Posted by qole View Post
Doesn't seem to be here (at least not using thread search), so I'd like to request a no-ip.com updater that will send an update whenever your device's IP address changes.
There's the Dyndns & SSH thread.
 

The Following 3 Users Say Thank You to lma For This Useful Post:
Posts: 199 | Thanked: 144 times | Joined on Sep 2009 @ gbg.se
#49
A while back a thread was started about an s60 application called mobots. As it is in some sense similar to Shepherd I thought I'd mention it here, for inspiration or whatever.
 
Posts: 49 | Thanked: 33 times | Joined on Dec 2009 @ Berlin/Germany
#50
any news on this? i'd love to try it out :]
 

The Following 2 Users Say Thank You to v2px For This Useful Post:
Reply

Tags
cron, power save, scheduling, shepherd


 
Forum Jump


All times are GMT. The time now is 07:29.