Flightplan: How to search a year of award inventory [no longer maintained]
#61
Suspended
Join Date: May 2006
Location: HKG
Programs: A3, TK *G; JL JGC; SPG,Hilton Gold
Posts: 9,952
I'd like to ask whats the best way to import data... or to pull old data that i've saved from say yesterday (I use mac and couldnt get to redirect the directory where i saved the whole thing)
#62
Ambassador, Hong Kong and Macau
Join Date: May 2009
Location: HKG
Programs: Non-top tier Asia Miles member
Posts: 19,807
I'm not sure whether same for mac, but it's the "data" folder inside the folder you ran the command line in (data, bin and config).
#63
Join Date: Jan 2018
Programs: JMB Sapphire, OneWorld Sapphire
Posts: 114
#64
Join Date: Jan 2018
Programs: JMB Sapphire, OneWorld Sapphire
Posts: 114
i tried to run flightplan server and i got this:
Opening database...
Running web server on port: 5000
Success!
Then nothing happens after that. Before this i was able to run flightplan client but i encountered some error 500.
Opening database...
Running web server on port: 5000
Success!
Then nothing happens after that. Before this i was able to run flightplan client but i encountered some error 500.
#65
Ambassador, Hong Kong and Macau
Join Date: May 2009
Location: HKG
Programs: Non-top tier Asia Miles member
Posts: 19,807
One to run flightplan server
And one to run flightplan client before you point your browser to localhost:3000
#66
Join Date: Jan 2018
Programs: JMB Sapphire, OneWorld Sapphire
Posts: 114
#67
Original Poster
Join Date: Jan 2010
Posts: 189
cd c:\new-flightplan
flightplan import --directory c:\old-flightplan
This will copy all the data from old-flightplan to new-flightplan (merge them together). You may have duplicates afterwards (which won't affect your search results, but may make the database bigger than necessary), you can run flightplan cleanup to look for and get rid of redundant data.
You have to be sure to get both what's inside "data" and "db". The "data" directory is just the raw HTML and screenshots, without the information inside "db" flightplan won't know what those HTML files represent.
#68
Original Poster
Join Date: Jan 2010
Posts: 189
Not really. I'm not aware of any airline websites that let you choose multiple cabins (it's usually just a drop-down selector of First, Business, etc...). There's some websites (I think AC) that have "First/Business" or "Prem Econ/Econ" as options, so if you say "-c first" or "-c business" it will map to same option.
I just run consecutive searches, to get multiple cabins. For example:
node bin/cli-search.js -w SQ -f SIN -t HKG -c first -s 2018-08-01 -e 2018-09-01 -q 1 -h && node bin/cli-search.js -w SQ -f SIN -t HKG -c business -s 2018-08-01 -e 2018-09-01 -q 1
I just run consecutive searches, to get multiple cabins. For example:
node bin/cli-search.js -w SQ -f SIN -t HKG -c first -s 2018-08-01 -e 2018-09-01 -q 1 -h && node bin/cli-search.js -w SQ -f SIN -t HKG -c business -s 2018-08-01 -e 2018-09-01 -q 1
#69
Join Date: Jan 2018
Programs: JMB Sapphire, OneWorld Sapphire
Posts: 114
Not really. I'm not aware of any airline websites that let you choose multiple cabins (it's usually just a drop-down selector of First, Business, etc...). There's some websites (I think AC) that have "First/Business" or "Prem Econ/Econ" as options, so if you say "-c first" or "-c business" it will map to same option.
I just run consecutive searches, to get multiple cabins. For example:
node bin/cli-search.js -w SQ -f SIN -t HKG -c first -s 2018-08-01 -e 2018-09-01 -q 1 -h && node bin/cli-search.js -w SQ -f SIN -t HKG -c business -s 2018-08-01 -e 2018-09-01 -q 1
I just run consecutive searches, to get multiple cabins. For example:
node bin/cli-search.js -w SQ -f SIN -t HKG -c first -s 2018-08-01 -e 2018-09-01 -q 1 -h && node bin/cli-search.js -w SQ -f SIN -t HKG -c business -s 2018-08-01 -e 2018-09-01 -q 1
Last question, i got data from my search but i was not able to see them on the client website.
#70
Original Poster
Join Date: Jan 2010
Posts: 189
But for each of those days you searched, there might've been no awards available (or multiple awards). Those light-blue squares are days you ran searches for, but there was no award availability. And the bottom section under the search form, is also telling you it found zero awards.
I'd take a look at the screenshots in your "data" directory for those days you searched, those should confirm that the AM website responded with no available awards. (And remember that flightplan currently ignores partner awards!) If you see actual awards available for one of those dates, on CX metal, please post the screenshot and I'll investigate further. Thanks!
#71
Join Date: Jan 2018
Programs: JMB Sapphire, OneWorld Sapphire
Posts: 114
Upon checking the screenshot, i saw this one:
Went a little bit further on the screenshots and found several J and Economy standard seats
Spoiler
Last edited by abielp; Jul 12, 2018 at 8:14 pm Reason: additional info
#73
Join Date: Jan 2018
Programs: JMB Sapphire, OneWorld Sapphire
Posts: 114
is there a way to see the available awards on cli?
Last edited by abielp; Jul 12, 2018 at 8:29 pm Reason: additional question
#75
Ambassador, Hong Kong and Macau
Join Date: May 2009
Location: HKG
Programs: Non-top tier Asia Miles member
Posts: 19,807
Does Flightplan show AM Choice awards?
I have not fully RTFM for Flightplan so apologies if it's there: is Flightplan incapable of showing Choice awards or is it simply N/A for my search parameters? TIA