maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900) (https://talk.maemo.org/showthread.php?t=44576)

noobmonkey 2010-02-15 16:21

[Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
2 Attachment(s)
Hi everyone,

as some will already know i am learning to code with python and Qt. I have to admit it has been a bit of hard work over the last few days, but today i seem to have mini break throughs :)

My idea may have already been used, but please bear-in mind that i am learning and each of these little things i am finding useful :)

My idea is/was a healthcheck app for the N900.
Ignoring the random bits in screenshots that make no sense, i hope you can see what i am aiming to do.

The first screenshot shows:
  • The accelerometer read out (Does it work?)
  • A static image taken from the front camera (Again, even though bad quality, does it work?)

The second image shows the readout from the terminal command dpkg -l.
I'm still to do an awful lot of work - and i know the layout is painful (But very finger friendly - :D:D:D), the positioning was done by hand today on the n900 - so just guessed at the positioning numbers :cool:

Anyway - will use this thread to update people as i go. Havn't done a usual announce thread directly - as well, i'm not sure it will be of use to anyone? :D

Further pages will hopefully show -
  • Lists of applications installed (Maybe ability to uninstall, not sure yet!)
  • List of repos enabled/disabled
  • System info, such as maemo version and rootfs space free
  • Possibly the ability to run commands such as apt-get clean etc.

Any comments and help would be very much appreciated - will post the code once i have tidied it up. (I have no previous proper knowledge of any of this stuff, just a bit of vb/asp/ada and sql knowledge! - so the coding is awful at the moment, and i havn't labeled things correctly! will do when i get time and near my pc!)


The code depends on having gstreamer installed (And i've read that the x-term code i used probably wasn't right, but works, so will leave it for now.). Happy to post the .py file if anyone fancies venturing into the unknown with me :D

On a final note, coding on the n900 may not be the easiest thing in the world, but wow it works well!!!

krk969 2010-02-15 16:47

Re: HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
a nice start indeed :) !
just a suggestion :
tabs are generally not very finger friendly IMHO, you could later perhaps with other enhancements release something with a button approach or multiple sub-window approach.

And this should be in the applications forum ;)

noobmonkey 2010-02-15 16:54

Re: HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by krk969 (Post 527662)
a nice start indeed :) !
just a suggestion :
tabs are generally not very finger friendly IMHO, you could later perhaps with other enhancements release something with a button approach or multiple sub-window approach.

And this should be in the applications forum ;)


Doh - good point on the apps forum - sorry could a mod please move it? :D

ooo - i did think that, but buttons / sub windows i havn't figured out yet - will try that after i figure out the parsing etc... :D - thanks for the info!

Have to admit, as i have made the text so big, they are very finger friendly for me, even with my fat thumbs! :D

noobmonkey 2010-02-15 18:28

Re: HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
so no expert tips on parseing? hehehe
:D

blwthompson 2010-02-16 12:32

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Love this idea!! I'm still waiting on an awesome sms counter :$

noobmonkey 2010-02-16 13:43

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by blwthompson (Post 529403)
Love this idea!! I'm still waiting on an awesome sms counter :$

i think someone else is doing this, so i won't tread on their toes! might add it on to here as a test though :)

thank you very much for the nice comment though!
any other additional ideas? :D

pyromaniac 2010-02-16 13:56

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
nice ... you could really develop it into a great diagnostic app ..
i hear praises from all the n00bs .. including me :)

best of luck with it ..

giannoug 2010-02-16 19:00

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
It would be really nice if you could comment (not much stuff, just the basics) and releash the code :D

Nice work, I'm also playing with Python (and GTK though) these days :)

noobmonkey 2010-02-16 19:02

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by giannoug (Post 530275)
It would be really nice if you could comment (not much stuff, just the basics) and releash the code :D

Nice work, I'm also playing with Python (and GTK though) these days :)

will definitley do that. gonna work towards doing a ver 1 this weekend :)
documenting my steps as i go :)

noobmonkey 2010-02-17 10:09

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
1 Attachment(s)
ok.... latest update!

removed keyboard bit, havnt figured that out yet!
added battery status. might put a loading percentage bar in there!

accellerometer readout works fine.
enlarged front cam preview area. not had the latest update yet, so quality is still poor.

added a button to update the page, but can't figure out how to get a button to run a function!!

screenshot attached!


All times are GMT. The time now is 10:36.

vBulletin® Version 3.8.8