The Following 49 Users Say Thank You to EIPI For This Useful Post: | ||
adancau, antoarts, Apoc, Bundyo, casper27, codeMonkey, Corwin, debernardis, DrWilken, fhofer, fms, foobar, Helmuth, HRZ, Inacurate, ioan, isto, jakiman, jcharpak, klinglerware, kopte3, krk969, Lacedaemon, lardman, majesty, maluka, mivoligo, mosiomm, Nikem, noobmonkey, PdxDoug, qwerty12, Rob1n, sachin007, Sasler, sdixit, sifo, skalogre, Snoshrk, Soap77, Texrat, thommy, timwatt, tissot, Tomaszd, udaychaitanya16, vkv.raju, Wikiwide, zincholic |
|
2010-02-20
, 21:53
|
Posts: 139 |
Thanked: 88 times |
Joined on Dec 2009
|
#2
|
|
2010-02-20
, 23:05
|
Posts: 70 |
Thanked: 20 times |
Joined on Dec 2009
|
#3
|
The Following User Says Thank You to Inacurate For This Useful Post: | ||
|
2010-02-21
, 03:17
|
|
Posts: 794 |
Thanked: 784 times |
Joined on Sep 2007
@ /Canada/Ontario/GTA
|
#4
|
The Following User Says Thank You to EIPI For This Useful Post: | ||
|
2010-02-21
, 03:19
|
|
Posts: 794 |
Thanked: 784 times |
Joined on Sep 2007
@ /Canada/Ontario/GTA
|
#5
|
The Following User Says Thank You to EIPI For This Useful Post: | ||
|
2010-02-21
, 05:42
|
Posts: 540 |
Thanked: 387 times |
Joined on May 2009
|
#6
|
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 ":"; } ▐
$ 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
$ 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
$ 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
# mv cu-date.rename /usr/bin/cu-date # chmod +x /usr/bin/cu-date
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 ":"; } ▐
$ 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--
|
2010-02-21
, 06:15
|
|
Posts: 2,173 |
Thanked: 2,678 times |
Joined on Oct 2009
@ Cornwall, UK
|
#7
|
The Following User Says Thank You to RevdKathy For This Useful Post: | ||
|
2010-02-21
, 06:46
|
Posts: 486 |
Thanked: 251 times |
Joined on Oct 2009
|
#8
|
...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 ":"; }
The Following 2 Users Say Thank You to j.s For This Useful Post: | ||
|
2010-02-21
, 08:04
|
Posts: 540 |
Thanked: 387 times |
Joined on May 2009
|
#9
|
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 ":"; }
The Following User Says Thank You to linuxeventually For This Useful Post: | ||
|
2010-02-21
, 08:40
|
Posts: 108 |
Thanked: 180 times |
Joined on Sep 2009
|
#10
|
The Following User Says Thank You to koivjann For This Useful Post: | ||
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:
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!
Mobile Tablets Blog
Follow me on Twitter
Last edited by EIPI; 2010-09-14 at 03:56. Reason: updated for new version 5.1.2-2