maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Run command when light sensor detects certain level? (https://talk.maemo.org/showthread.php?t=31712)

thylacine222 2009-09-15 23:33

Run command when light sensor detects certain level?
 
Is there a way to run a command when the light sensor on the N810 detects a certain level?

I only need this for one time only, it needs to play a certain song when the light turns up.

thanks for any help!

attila77 2009-09-15 23:55

Re: Run command when light sensor detects certain level?
 
Not directly, but there are scripts that do such things, I believe I have seen a light-sensor based screen-locking script, which could be a good basis for adaptation.

http://talk.maemo.org/showthread.php?t=19127

luketoh 2009-09-16 01:38

Re: Run command when light sensor detects certain level?
 
Is it for a birthday surprise or something?

dukemagus 2009-09-16 02:34

Re: Run command when light sensor detects certain level?
 
probably an alarm to wake him up when the sun rises

McLightning 2009-09-16 15:38

Re: Run command when light sensor detects certain level?
 
by the way
how do i re-compile a .deb file to look into codes of software?
it would make easier developing new apps for maemo.

Thesandlord 2009-09-16 15:49

Re: Run command when light sensor detects certain level?
 
yes there is a program called light-meter that returns the value in lux. I am sure you can write a shell script using it.

eiffel 2009-09-16 19:54

Re: Run command when light sensor detects certain level?
 
Quote:

Originally Posted by dukemagus (Post 327578)
probably an alarm to wake him up when the sun rises

Probably to frighten someone when they open the fridge door and the light goes on.


All times are GMT. The time now is 09:59.

vBulletin® Version 3.8.8