Active Topics

 



Notices


Reply
Thread Tools
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#1
I am not a N900 developer or anything but would like a few pointers and some help if possible. I have a little PHP experience so I do know how to create databases and query them but not in Python or anything.

What I would like to do is to develop a simple app that just queries an online mysql database and pulls a query of 'random facts' from a table. Just a table of useful information and quotes.

The data would be something like:

>>>
The sound of a car horn is mostly in the "F" key.
<<<

I would like this to be displayed in a nice, simple but visual way on the N900.

Could someone help and point me to the easiest way to do this and perhaps to some resources that I could use?
Thx.
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#2
you could write a simple app in QT, be it using python or c++, to query a webservice api with some key value pairs.
Since you have php/my_sql experience , setting this online api wont be such a task.

all the app needs to do is take an input ( if needed from the user ), then generate a network request to your webservice that will return the result back to your application.

thats just an overview, perhaps you already thought the same, any more details you need ?
there are plenty of apps that query online services in maemo and that are open source.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#3
I am a reluctant PHP developer so I know enough to get by and that's about it. I have no experience whatsoever with QT or Python or C++ (apart from a minuscule understanding)
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
krk969's Avatar
Posts: 754 | Thanked: 630 times | Joined on Sep 2009 @ London
#4
have a look at this example, there are more, but i particularily like this one since its kept plain and simple, even the usecase.

of course, there is a bit of learning curve for python/c++, but again, if you have been a programmer it wont be a mammoth task.
__________________
Developer of :
Buddy - budget/expense manager ( website )
Showtime - a telly channel listing viewer/reminder ( website )
Travelapp - london underground status/planner ( website )
Batlevel - desktop widget for battery level ( website )

“I hear and I forget. I see and I remember. I do and I understand.”
 

The Following User Says Thank You to krk969 For This Useful Post:
Posts: 198 | Thanked: 76 times | Joined on Mar 2010
#5
get the "desktop command execution widget" and put together a wget line as command to execute and display the output thereof.

see
http://talk.maemo.org/showthread.php?t=39177

having a look into at least python wouldn't hurt, if you consider to do some programming for the n900 yourself, the learning curve is not that steep, coming from php -- but you should know oop.
 

The Following 2 Users Say Thank You to arne.anka For This Useful Post:
Posts: 739 | Thanked: 220 times | Joined on Dec 2009 @ Surrey, UK
#6
Could I use something like this to achieve my objective?
http://talk.maemo.org/showthread.php...178#post619178
__________________
There is a way that seems right to a man, but in the end it leads to death. Proverbs 14:12
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:08.