maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Annouce] HealthCheck - Hardware/System checker for the N900 (https://talk.maemo.org/showthread.php?t=45453)

noobmonkey 2010-10-24 19:24

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
hehehe, qt detects the rotate, so it does it all for you ;)
the dbus example though is the best example :p

Mentalist Traceur 2010-10-24 19:37

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Well, it still doesn't tell me what to stick in the command line to get the device orientation - unless I can run a qt line from the shell? Which means I still don't know what to put into my conky.conf to get the result desired.

On the other hand though, it proves to me, yet again, that Qt is amazing, and I should learn it.

Mentalist Traceur 2010-10-25 01:08

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
I figured it out, after what is now a couple days of digging through criptic DBus documentation and wiki.maemo.org (and a bunch of random plug-n-play trial-and-error on the command line):

dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_device_orientation

In retrospect, the python snippet that I initially found on the wiki and you posted here contains most of that in it. But there's no way I would have gotten it without seeing a bunch of other dbus-send code snippets and reading through dbus documentation.

noobmonkey 2010-10-25 16:01

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Would be lovely to actually have a set of DBUS documentation or something like a tree-view list of it all!
Following that demonstrations of how to use them all would be lovely ;)

les_garten 2010-10-28 07:05

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
This doesn't seem to be running for me in 1.3? Any fix for that?

noobmonkey 2010-10-28 10:19

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hi Les, yeah i think so (Will hunt for the fix tonight) - is it just not loading?

i'm into a full redesign of healthcheck at the moment!
I'm 1 week into a 2 month+ redesign i feel in QT/C++ - more tools, better layout and alot quicker!

les_garten 2010-10-28 15:21

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 854955)
Hi Les, yeah i think so (Will hunt for the fix tonight) - is it just not loading?

i'm into a full redesign of healthcheck at the moment!
I'm 1 week into a 2 month+ redesign i feel in QT/C++ - more tools, better layout and alot quicker!

Hey!

Nice SW! It opens and starts loading and then goes "poof" and closes the Window. I uninstalled and reinstalled and same thing. New version sounds pretty exciting!

noobmonkey 2010-10-28 15:30

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
hehehe sounds about right lol!
If you run it from terminal it should give you some feedback :)

Code:

python /opt/healthcheck/healthcheck.py
The new version is interesting (I'm learning as i go along - pretty much like the original version!).

Managed to figure out the basics, and it auto rotates fine, but QTlayouts are being a pain in the ***!

les_garten 2010-10-28 16:08

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Here's the tail of it:

** Getting orientation**
** Start Function - Device Orientation **
** Start Function - Bluetooth MAC**
** Finished tab 1 update **
** Starting tab 2 update**
** Updating GPS Info**
Traceback (most recent call last):
File "/opt/healthcheck/healthcheck.py", line 1076, in <module>
ui.funcUpdateAll()
File "/opt/healthcheck/healthcheck.py", line 900, in funcUpdateAll
self.updateGPS(MainWindow)
File "/opt/healthcheck/healthcheck.py", line 990, in updateGPS
control.set_properties(preferred_method=location.M ETHOD_USER_SELECTED,preferred_interval=location.IN TERVAL_DEFAULT)
AttributeError: 'location.GPSDControl' object has no attribute 'set_properties'

noobmonkey 2010-10-29 08:27

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hmmm that sounds like it's struggling to control your gps.... Or its struggling to get permission to use it.

Can you try making sure your gps is online and turned on, then load it?
(Might literally just not be allowed to turn it on - badly coded!)

edit either that or 1.3 has changed the GPS abilities?! random!


All times are GMT. The time now is 21:30.

vBulletin® Version 3.8.8