![]() |
2011-12-30
, 15:57
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#2
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
![]() |
2011-12-30
, 16:21
|
Posts: 13 |
Thanked: 12 times |
Joined on Oct 2011
|
#3
|
Here is an example that works for me:
http://qt.gitorious.org/pyside/pysid...cceleration.py
nicolai
~/python $ python show_acceleration.py loaded the Generic plugin loaded the grue plugin Loaded the MeeGo sensor plugin Setting data rate 0 Hz (interval 0 ms) for "meego.accelerometer" ^C^Z[1]+ Stopped python show_acceleration.py ~/python $ python ./show_acceleration.py loaded the Generic plugin loaded the grue plugin Loaded the MeeGo sensor plugin Setting data rate 0 Hz (interval 0 ms) for "meego.accelerometer" ^Z[2]+ Stopped python ./show_acceleration.py ~/python $ python ./show_acceleration.py -r 100 loaded the Generic plugin loaded the grue plugin Loaded the MeeGo sensor plugin Setting data rate 100 Hz (interval 10 ms) for "meego.accelerometer" ^Z[3]+ Stopped python ./show_acceleration.py -r 100
![]() |
2011-12-30
, 16:44
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#4
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
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:
So, what have I missed?
Thanks,
Gybe