maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce]: MaeFlight for Maemo 5 (https://talk.maemo.org/showthread.php?t=45254)

EIPI 2010-02-20 18:33

[Announce]: MaeFlight for Maemo 5
 
2 Attachment(s)
Hi Everyone,

With great fanfare (OK, perhaps not), I can now announce the MaeFlight application for Maemo 5!

MaeFlight is an Python/QT application that enables you to check your airline's flight status from your Maemo 5 powered device. Enter your airline code and flight number, and it will display the current status, departure time, departure airport, arrival time and arrival airport.

For further information on your flight, you can click on 'Details' to go to the FlightStats.com website for more information about the flight.

For information about your upcoming flight, or if you are looking at a flight departing at a different timezone that is a day ahead, there is a 'Today/Tomorrow' button that toggles between today's date and tomorrow's.

The application is currently in Extras-Devel (non-free) repository.

Current Version: 5.1.3-1

WARNING: Applications in Extras-Devel and Extras-Testing are for experienced users only and may break your device, use at your own risk.

The usual warnings and limitation of liability apply - please install at your own risk - you have been warned (esp. important since this is my first Maemo application).

Obligatory screenshots:

Attachment 7496

Attachment 7495

Known issues:
1. I think dependencies are OK now, but please report back any issues to this thread.


Upcoming Enhancements:
1. Pick list for airline codes
2. More informative statuses - currently active flights show as 'Active' - will try to offer better granularity such as 'on-time', etc with colour coding

Fixed Issues (v5.1.1-1):
1. One dependency issue fixed
2. Finger scrollable area for airline status
3. Fantastic icon courtesy of kopte3 (thank you!)
4. 'Numeric only' entry in Flight Number box

Fixed Issues (v5.1.2-2):
1. Update for PR1.2
2. Icon now shows up in App Manager
3. Bug Tracker setup on bugs.maemo.org

Fixed Issues (v5.1.3-1):
1. Fixed Bug 11255
2. Fixed Bug 11256

Personal Aside:
I started this task 4 weeks ago. This is my first Maemo application. I installed scratchbox, learned some Python and QT, as well as packaging from the available documentation on maemo.org. I had to ask a few questions here on the fora, as well on the maemo-developers mailing list.

I do not do software development or anything remotely related to this in my day job. I am saying this as a tribute to the wealth of knowledge that is in our maemo.org world. With some experimentation, lots of reading, and with the advice of a few helpful people here, I was able to get this application into the repository 4 weeks after embarking on the project (my evenings have been interesting, to say the least). Thank you to all people who have contributed to our collective knowledge base!

adancau 2010-02-20 21:53

Re: [Announce]: MaeFlight for Maemo 5
 
Hi, and thank you.
Just installed your app, it installs fine, and for me it's quite useful (actually first real life usage will be tomorrow :) )
If I may have a few suggestions re: user interface/layout:
1. Using a different theme (Marina) I get white lines and square corners around the two input boxes (the rounded corners are inside the square white corners). Basically it's like each input box sits inside a white rectangle 2px larger on both left and right, but same size vertically.
2. Regarding layout, in my opinion it would make better use of available space to have the input boxes, the search and today/tomorrow buttons on the left side, stacked on top of each other, with the large info area on the right. Input boxes should be smaller (3-4 chars at most for the airline code and 5-6 chars for the flight number). Labels would stay on a top horizontal line (Airline, Flight No and then Info - new label for the info text area).
3. Details should be a link, not a button. This is on the theory that pressing a button always keeps you inside the application, and people expect this. A link on the other hand signifies leaving the current place (the app). I'd also move it inside the text area, just above the 'Data courtesy of...' bit, and change it to 'More details...'
4. I wouldn't worry that dragging over the info text area selects the text, since it's useful to be able to copy/paste it in an email or a message.
5. This is just an idea, not sure if it's really useful, but.. Maybe the flight info can be parsed and displayed in a form/table instead of the info text area.

Inacurate 2010-02-20 23:05

Re: [Announce]: MaeFlight for Maemo 5
 
Is the flight number box coded for just numbers only? I'm not a frequent flier(yet, but work may be changing that), so don't know if flight numbers ever have letters in them!

If it's not, and flight numbers are just numbers, I would suggest ensuring that the hardware keyboard inputs numbers when in that field and using it, without having to press the lovely little blue arrow every single first.

When you say "numeric pad popup" is it just going to be an in-line keypad or the full virtual keyboard? Just a small keypad would be so much nicer, if possible. But also goes back to my first question about flight number characters... :)

EIPI 2010-02-21 03:17

Re: [Announce]: MaeFlight for Maemo 5
 
@adancau:
1. I will look at different themes to see what is happening there. Thanks.
3. I wanted details to be a link, but could not get the QTextBrowser object to open the link correctly. The link would be assembled correctly, but then when the browser opened, the url would not be correct. I put the details button mainly to overcome this, but will investigate this further.
4. I think this is an issue when you have multi-leg flights.

EIPI 2010-02-21 03:19

Re: [Announce]: MaeFlight for Maemo 5
 
@Inacurate:
I was thinking a pure ten digit numeric pad, not the whole vkbd. Not sure if flight numbers have letters, but I doubt it.

linuxeventually 2010-02-21 05:42

Re: [Announce]: MaeFlight for Maemo 5
 
...For those of us that prefer CLI:

add to ~/.profile

Code:


flight_status() { if [[ $# -eq 3 ]];then offset=$3; else offset=0; fi; curl "http://mobile.flightview.com/TrackByRoute.aspx?view=detail&al="$1"&fn="$2"&dpdat=$(cu-date +%Y%m%d -d ${offset}day)" 2>/dev/null |html2text |grep ":"; }


 

then simply run

Code:

$ flight_status LH 471

Status: In Air
Departure: Toronto, ON (YYZ)
Scheduled: 6:15 PM, Feb 20
Takeoff:  6:41 PM, Feb 20
Term-Gate: Terminal T1 - 172
Arrival:  Frankfurt, Germany (FRA)
Scheduled: 8:05 AM, Feb 21
Estimated: 8:23 AM, Feb 21
Remaining: 3 hr 41 min
Term-Gate: Terminal 1

^ for today

Code:

$ flight_status LH 471 +1

Status: Scheduled
Departure: Toronto, ON (YYZ)
Scheduled: 6:15 PM, Feb 21
Term-Gate: Terminal T1 - 173
Arrival:  Frankfurt, Germany (FRA)
Scheduled: 8:05 AM, Feb 22
Term-Gate: Terminal 1

^ for tomorrow

Code:

$ flight_status LH 471 -1

Status: Arrived
Departure: Toronto, ON (YYZ)
Scheduled: 6:15 PM, Feb 19
Takeoff:  6:31 PM, Feb 19
Term-Gate: Terminal T1 - 172
Arrival:  Frankfurt, Germany (FRA)
Scheduled: 8:05 AM, Feb 20
At Gate:  8:30 AM, Feb 20
Term-Gate: Terminal 1

^ for yesterday

Requirements:
* html2text (it's in the SDK repo if not the regular repo)
* curl ( http://www.box.net/os2008#os2008/1/38267044/393488254/1 )
* date (CoreUtils version, not busybox; http://www.box.net/os2008#os2008/1/38267044/393493066/1 )
rename cu-date.rename to cu-date and place in /usr/bin and give it executable permission

i.e.:
Code:

# mv cu-date.rename  /usr/bin/cu-date
# chmod +x /usr/bin/cu-date

P.S.
runs great on linux desktop too
Code:


flight_status() { if [[ $# -eq 3 ]];then offset=$3; else offset=0; fi; curl "http://mobile.flightview.com/TrackByRoute.aspx?view=detail&al="$1"&fn="$2"&dpdat=$(date +%Y%m%d -d ${offset}day)" 2>/dev/null |html2text |grep ":"; }


 

Also if you are using busybox date or enter an invalid date, you still get some useful info

Code:

$ flight_status LH 471 +x

date: invalid date `+xday'
Departing: ???, ??
Arriving: ???, ??
Time: -
Date: Mon, January 1
Actual Takeoff: 6:31*PM, Feb*19
At Gate:        8:30*AM, Feb*20
Actual Takeoff:    6:41*PM, Feb*20
Estimated Arrival: 8:19*AM, Feb*21
Scheduled Departure: 6:15*PM, Feb*21
Scheduled Arrival:  8:05*AM, Feb*22
Scheduled Departure: 6:15*PM, Feb*23
Scheduled Arrival:  8:05*AM, Feb*24
--More--


RevdKathy 2010-02-21 06:15

Re: [Announce]: MaeFlight for Maemo 5
 
Am currently sat in Birmingham International Airport where the runway has just been closed due to "adverse weather conditions" (snow). Probably a bit late to d/l this app now - but I'll certainly get it for next time!

j.s 2010-02-21 06:46

Re: [Announce]: MaeFlight for Maemo 5
 
Quote:

Originally Posted by linuxeventually (Post 539318)
...For those of us that prefer CLI:

add to ~/.profile

Code:


flight_status() { if [[ $# -eq 3 ]];then offset=$3; else offset=0; fi; curl "http://mobile.flightview.com/TrackByRoute.aspx?view=detail&al="$1"&fn="$2"&dpdat=$(cu-date +%Y%m%d -d ${offset}day)" 2>/dev/null |html2text |grep ":"; }


I just tried it on my desktop, and it worked great. I don't have curl, so I substituted wget -O -

linuxeventually 2010-02-21 08:04

Re: [Announce]: MaeFlight for Maemo 5
 
Yup
Code:

flight_status() { if [[ $# -eq 3 ]];then offset=$3; else offset=0; fi; wget -O - "http://mobile.flightview.com/TrackByRoute.aspx?view=detail&al="$1"&fn="$2"&dpdat=$(date +%Y%m%d -d ${offset}day)" 2>/dev/null |html2text |grep ":"; }
works fine, hmm maybe I should tinker with it and get it working using busybox date and eliminate more dependencies....

koivjann 2010-02-21 08:40

Re: [Announce]: MaeFlight for Maemo 5
 
Hey

Installation went trough OK, and the application started Ok, but It doesn't search anything. I rebooted device and the result was the same.

I have the newest firmware.

Inacurate 2010-02-21 09:10

Re: [Announce]: MaeFlight for Maemo 5
 
That's what I would do, no need wasting time bringing up the whole thing when you only need 10 digits! :)

Good luck and hoping I get a lot of chances to use this.

EIPI 2010-02-21 14:13

Re: [Announce]: MaeFlight for Maemo 5
 
Quote:

Originally Posted by koivjann (Post 539415)
Hey

Installation went trough OK, and the application started Ok, but It doesn't search anything. I rebooted device and the result was the same.

I have the newest firmware.

You have to be connected to the internet. If you enter an invalid flight, it will tell you so.

kopte3 2010-02-23 00:14

Re: [Announce]: MaeFlight for Maemo 5
 
Thanks for the app! :)

bergie 2010-02-23 11:37

Re: [Announce]: MaeFlight for Maemo 5
 
Quote:

Originally Posted by EIPI (Post 538759)
MaeFlight is an Python/QT application that enables you to check your airline's flight status from your Maemo 5 powered device. Enter your airline code and flight number, and it will display the current status, departure time, departure airport, arrival time and arrival airport.

Wow, this is pretty useful! Now, a cool next step would be to "autopopulate" my next flight from either web services like tripit.com or calendar entries resembling flight numbers

cashclientel 2010-02-23 11:55

Re: [Announce]: MaeFlight for Maemo 5
 
Great app, page scraping ftw!

EIPI 2010-02-23 12:26

Re: [Announce]: MaeFlight for Maemo 5
 
Quote:

Originally Posted by bergie (Post 542479)
Wow, this is pretty useful! Now, a cool next step would be to "autopopulate" my next flight from either web services like tripit.com or calendar entries resembling flight numbers

Yes, I have some ideas on integrating the app with calendar, rss and/or alarms... I am still tackling some issues before promotion to Extras-Testing. Thanks for the feedback!

EIPI 2010-02-25 03:42

Re: [Announce]: MaeFlight for Maemo 5
 
A new version (5.1.1-1) is in Extras-Devel.

Fixed Issues (v5.1.1-1):
1. One dependency issue fixed
2. Finger scrollable area for airline status
3. Fantastic icon courtesy of kopte3 (thank you!)
4. 'Numeric only' entry in Flight Number box

WARNING: Applications in Extras-Devel and Extras-Testing are for experienced users only and may break your device, use at your own risk.


The usual warnings and limitation of liability apply - please install at your own risk - you have been warned (esp. important since this is my first Maemo application).

I have updated the first post in this thread with new screenshot and revision to known issues/enhancements.

koivjann 2010-02-27 09:05

Re: [Announce]: MaeFlight for Maemo 5
 
1 Attachment(s)
Quote:

Originally Posted by EIPI (Post 545286)
A new version (5.1.1-1) is in Extras-Devel.

Fixed Issues (v5.1.1-1):
1. One dependency issue fixed
..

[COLOR=Red][I][B]WARNING: Applications in Extras-Devel and .

Hey,

I cannot update to the newest version. I cannot remove application.
Here attached problems with update.

Of course I use Internet connection when trying use MaeFlight. Actually the application doesn't start anymore at all.

EIPI 2010-02-28 02:29

Re: [Announce]: MaeFlight for Maemo 5
 
I had another user with a dependency problem with the first version.

can you remove it from the command line?

Code:

apt-get remove maeflight

ceroberts75 2010-05-17 22:01

Re: [Announce]: MaeFlight for Maemo 5
 
trying to install after a clean boot (wiped my devices eMMC) with maeflight 5.1.0-2_armel.deb


i am getting this:

Application packages missing: python2.5-qt4-gui


i tried rooting and then

apt-get install python2.5-qt4-gui



then i get:

depends: libqt4-core
depends: libqtgui4
libqt4-gui

when i apt-get those, it says i already have the up to date version of them..

i had this version already installed on my device before i cleanbooted.

any ideas?

nux 2010-05-18 12:22

Re: [Announce]: MaeFlight for Maemo 5
 
got it installed in LPR1.2 but will get error when launching application.

~ $ maeflight
Traceback (most recent call last):
File "/opt/maeflight/main.py", line 30, in <module>
from maeflight_ui import *
File "/opt/maeflight/maeflight_ui.py", line 10, in <module>
from PySide import QtCore, QtGui
ImportError: No module named PySide

EIPI 2010-05-18 12:41

Re: [Announce]: MaeFlight for Maemo 5
 
Hi Guys,

I have neglected MaeFlight for the past few months due to 1) my device being broken until recently, and 2) waiting for PR1.2 since there are QT changes coming.

Sorry for the inconvenience. I will start to look into this tonite, and see what I can do to get it back in a working fashion in Extras-Devel. Since I am a hobbyist programmer, this may take me some time to get sorted out. I hope you can bear with me while I work it out!

nux 2010-05-18 12:53

Re: [Announce]: MaeFlight for Maemo 5
 
Quote:

Originally Posted by nux (Post 664018)
got it installed in LPR1.2 but will get error when launching application.

~ $ maeflight
Traceback (most recent call last):
File "/opt/maeflight/main.py", line 30, in <module>
from maeflight_ui import *
File "/opt/maeflight/maeflight_ui.py", line 10, in <module>
from PySide import QtCore, QtGui
ImportError: No module named PySide

I resolved my problem by replacing PySide to PyQt4 in line 10 in file /opt/maeflight/maeflight_ui.py

EIPI 2010-05-26 11:47

Re: [Announce]: MaeFlight for Maemo 5
 
A new version (5.1.2-2) is in Extras-Devel.

Fixed Issues (v5.1.2-2):
1. Update for PR1.2
2. Icon now shows up in App Manager
3. Bug Tracker setup on bugs.maemo.org

WARNING: Applications in Extras-Devel and Extras-Testing are for experienced users only and may break your device, use at your own risk.


The usual warnings and limitation of liability apply - please install at your own risk - you have been warned (esp. important since this is my first Maemo application).

I have updated the first post in this thread with revisions to known issues/enhancements.

canonjon 2010-06-03 10:42

Re: [Announce]: MaeFlight for Maemo 5
 
This is a useful app and I hope the work on it is going forward. I think I have found a bug on my N900, 10.2010.19.1 (PR 1.2) and with version 5.1.2-2 of the app.

The resultat that comes up after a search on TF 316 with Tomorrow shows the departure and arrival time in the morning and when I press Details and the web page Flight Status comes up it shows the time in the afternoon and soo does my ticket. So the bug is that the time in the search resultat is missing a.m. and p.m. or it is not shown with 24 hours system.

I hope this is a minor bug that is easy too fix.

EIPI 2010-06-05 01:54

Re: [Announce]: MaeFlight for Maemo 5
 
MaeFlight indicates if it is am or pm. Not sure what happened there, as when I tested out that flight number, it showed it as pm.

CYPHERC 2010-09-05 23:15

Re: [Announce]: MaeFlight for Maemo 5
 
Can u pls help me i would like to have this app in my n900 but i cant open it, it doesnt work, can u make it work?

EIPI 2010-09-14 03:52

Re: [Announce]: MaeFlight for Maemo 5
 
A new version (5.1.3-1) is in Extras-Devel.

Fixed Issues (v5.1.3-1):

1. Fixed Bug 11255. A 24 Hour format is now used for flight times.

2. Fixed Bug 11256. Can now enter flight number without pressing the Fn key.


WARNING: Applications in Extras-Devel and Extras-Testing are for experienced users only and may break your device, use at your own risk.


The usual warnings and limitation of liability apply - please install at your own risk - you have been warned (esp. important since this is my first Maemo application).

I have updated the first post in this thread with revisions to known issues/enhancements.

kompir 2010-09-14 04:04

Re: [Announce]: MaeFlight for Maemo 5
 
Hi,

I notice in this app you use feeds from a website which sells them for $$$. How are you able to expose those feeds to ordinary folk like us, so we don't have to pay? Is there a developer license?

EIPI 2010-09-14 10:21

Re: [Announce]: MaeFlight for Maemo 5
 
There is a paid license to use the data. There is also a free license to use the data, provided the app's functionality is minimal, approved by FlightStats, and provides 'deep links' back to their site.

If I were to pay for the license, I could provide alot more data (maps, etc). But it is costly, and creates other burdens for a novice app creator like me!

richwhite 2010-10-14 00:50

Re: [Announce]: MaeFlight for Maemo 5
 
is development continuing for this? I just installed it, it looks great. I grabbed a random flight from heathrow arrivals site and MaeFlight says it isn't a real flight, does it pick up all commercial flights?

EIPI 2010-10-15 01:00

Re: [Announce]: MaeFlight for Maemo 5
 
Is should pick up all commercial flights. What is the flight and number?

Development has stalled due to lack of time, as well as a roadblock on how to implement the picklists for the airline codes in Python/QT (i.e. I am a novice, and I do not know how to do it!)

richwhite 2010-10-15 08:43

Re: [Announce]: MaeFlight for Maemo 5
 
Quote:

Originally Posted by EIPI (Post 841493)
Is should pick up all commercial flights. What is the flight and number?

Development has stalled due to lack of time, as well as a roadblock on how to implement the picklists for the airline codes in Python/QT (i.e. I am a novice, and I do not know how to do it!)

the flight was BA026, i simply went to Heathrow arrivals, picked the first flight, due to land some hours later, and it wasn't recongised

EIPI 2010-10-16 11:05

Re: [Announce]: MaeFlight for Maemo 5
 
Interesting. BA 26 works, which is a flight from HKG. BA 026 results in a flight not found. Will investigate to see if there is a standard with respect to the leading zero in the flight number.

mmarks 2011-05-16 13:55

Re: [Announce]: MaeFlight for Maemo 5
 
Sorry to bring an old thread back up.
I just installed MaeFlight but cannot get it to function.
The app starts no problem and I type in a flight (anything), then press search but thats it, whatever I type in as a flight (valid or not), I never get anything back - am I doing something wrong?

EIPI 2011-05-17 11:30

Re: [Announce]: MaeFlight for Maemo 5
 
As expected ;) The key issued to me by FlightStats.com has expired. I'll inquire about a new key and report back.

tredlie 2011-05-17 12:13

Re: [Announce]: MaeFlight for Maemo 5
 
yeah. i should have posted before....
please post here once you got it going again. useful app (when it works ;) )

wormdrummer 2011-06-03 07:29

Re: [Announce]: MaeFlight for Maemo 5
 
Any update on the new key?

EIPI 2011-06-28 17:22

Re: [Announce]: MaeFlight for Maemo 5
 
OK - MaeFlight has a new lease on life! I had my license extended, so it should work now without any changes. Please report back your success - works for me at the moment. Starting to investigate getting this running on Harmattan SDK now.

ejasmudar 2011-06-28 17:50

Re: [Announce]: MaeFlight for Maemo 5
 
I cant find it in the repos from apt-get. I downloaded deb from package interface and got dependancy error with python-suds. I then tried python-suds and got incompatible package. Help?


All times are GMT. The time now is 07:46.

vBulletin® Version 3.8.8