Use of the light sensor
Up to Scripts
It's my first script in Python. I hope it will be useful to you too!
Description
This script use the light sensor.
This script check every second the light level and say something according to the value.
The evening, when you are in front of the computer, Tux will say "Il fait noir." (It is dark.).
5 minutes later he will say "Tu devrais allumer la lumière" (You should turn the light on.).
If you turn the light on, it will say "Il fait clair" (It is bright.)
If you an evil man and you move a light source in front of his eyes,
he will close his eyes and say "Je suis éblouie" (I'm dazzled.)
Then if you close the light, he will say "Merci ça va mieux" (Thanks, it's better.).
Requirements
tuxdaemon and tuxttsdaemon running
Launch
python light.py