![]() |
PySide script does not print sensor data
I am not perfectly sure I am writing this on the right forum, so apologies if the forum is not correct.
So, I decided to try and give a look on the data the sensors deliver in my N9, but hit a wall. I thought that it would be relatively easy to just create a python script that prints out accelerometer and/or compass data. So, I installed python and some bindings as instructed in http://wiki.meego.com/Python/Harmattan/Getting_started (Note: python-modules-all was not found) Then, found some example codes: http://qt.gitorious.org/pyside/pysid...bility/sensors and http://wiki.meego.com/User:Mdengler Both get stuck somewhere before getting to the output generating part. Typical output, after which the process must be killed manually: Code:
~/python $ python ac.py Code:
import sys Code:
~/python $ python acc.py So, what have I missed? Thanks, Gybe |
Re: PySide script does not print sensor data
|
Re: PySide script does not print sensor data
Quote:
Code:
~/python $ python show_acceleration.py So basically I have copied the script file to my n9 and run it as user. Is this how you do it as well? Is there something I need to enable if I want my scripts to use the data from sensors? Gybe |
Re: PySide script does not print sensor data
Yes, I started this script from xterm application on my N950
and over ssh. On both ways it produces an output like: Acceleration: -4.42 x 0.18 y 13.42 z m/s^2 11.00 ms since last, 87.85 Hz Acceleration: -2.12 x 1.59 y 6.71 z m/s^2 110.00 ms since last, 9.05 Hz Acceleration: -2.12 x 1.59 y 6.71 z m/s^2 32.00 ms since last, 31.03 Hz It only produces an output while the screen is unlocked. |
Re: PySide script does not print sensor data
Quote:
|
All times are GMT. The time now is 03:27. |
vBulletin® Version 3.8.8