![]() |
python - how to read information from light meter, microphone and accelerometers?
Hi,
does any know how I can retrieve the information provided by the light meter, microphone and accelerometers? Are there ready to use classes? D-BUS? Any hints, examples are appreciated. Thanks and kind regards blubbi |
Re: python - how to read information from light meter, microphone and accelerometers?
Okay, for the accelerometers I found some information here:
http://wiki.maemo.org/Accelerometers Cheers Bjoern |
Re: python - how to read information from light meter, microphone and accelerometers?
Quote:
(Once installed the python files will be in /opt/healthcheck/ Example code (Functions file): Code:
# -*- coding: utf-8 -*- |
Re: python - how to read information from light meter, microphone and accelerometers?
Quote:
Looking into and waiting for qtmultimedia/mobility :) |
Re: python - how to read information from light meter, microphone and accelerometers?
This answers most. Thanks a lot.
But why call external tools to read the "files" why not simply use Code:
def funcProxState(): Cheers blubbi |
Re: python - how to read information from light meter, microphone and accelerometers?
I have just managed to play with accelerometer so here's a simple script to output the phone's state.
Code:
from ctypes import * |
Re: python - how to read information from light meter, microphone and accelerometers?
Quote:
(Very new to python, linux and QT, so the whole thing is a learning curve! |
Re: python - how to read information from light meter, microphone and accelerometers?
Quote:
I want to emit a IR-Signal when the signal level of on of the sensors (Proximity sensor, Microphone, Accelerometers) raises above a certain threshold and remotely trigger my Canon EOS 7D ;-) Cheers blubbi |
Re: python - how to read information from light meter, microphone and accelerometers?
Quote:
Here some fine links: http://gnosis.cx/TPiP/ http://docs.python.org/lib/string-methods.html By the way, do you know how I can get the light intensity like the app "luxus" does? Cheers blubbi |
Re: python - how to read information from light meter, microphone and accelerometers?
not seen luxus, but can check later.
which light intensity? the screen brightness intensity should be in the code above. :) (out on lunch, so not near a pc) |
All times are GMT. The time now is 08:05. |
vBulletin® Version 3.8.8