Flightplan: How to search a year of award inventory [no longer maintained]
#183
Join Date: Jul 2006
Location: California
Programs: AA EXP, lowly UA 1K; Hyatt Diamond, SPG Gold, Hilton Gold; National EC, Hertz PC
Posts: 2,214
It seems to install okay but then I get the following error message when I try to use the application:
Any ideas? Thanks.
PS C:\Users\xxx> flightplan --version
internal/modules/cjs/loader.js:589
throw err;
^
Error: Cannot find module 'C:\Users\xxx\AppData\Roaming\npm\node_modules\fli ghtplan-tool\bin\cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
at Function.Module._load (internal/modules/cjs/loader.js:513:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)
at startup (internal/bootstrap/node.js:308:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:878:3)
internal/modules/cjs/loader.js:589
throw err;
^
Error: Cannot find module 'C:\Users\xxx\AppData\Roaming\npm\node_modules\fli ghtplan-tool\bin\cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
at Function.Module._load (internal/modules/cjs/loader.js:513:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:760:12)
at startup (internal/bootstrap/node.js:308:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:878:3)
#184
Original Poster
Join Date: Jan 2010
Posts: 189
Looks like maybe a path issue? Also, I see a space in the module path: "node_modules\fli ghtplan-tool\bin\cli.js". Is it actually have a space in it, or is that just a copy-paste glitch?
Can you verify if you installed using npm or yarn, globally or locally, and provide the output of running "where flightplan" from cmd.exe (or if using PowerShell, "where.exe flightplan").
Can you verify if you installed using npm or yarn, globally or locally, and provide the output of running "where flightplan" from cmd.exe (or if using PowerShell, "where.exe flightplan").
#185
Join Date: Jul 2006
Location: California
Programs: AA EXP, lowly UA 1K; Hyatt Diamond, SPG Gold, Hilton Gold; National EC, Hertz PC
Posts: 2,214
Yeah, that was just a copy paste issue.
Answer to Where
C:\Users\xxx\AppData\Roaming\npm\flightplan
C:\Users\xxx\AppData\Roaming\npm\flightplan.cmd
C:\Users\xxx\AppData\Local\Yarn\bin\flightplan
C:\Users\xxx\AppData\Local\Yarn\bin\flightplan.cmd
Answer to Where
C:\Users\xxx\AppData\Roaming\npm\flightplan
C:\Users\xxx\AppData\Roaming\npm\flightplan.cmd
C:\Users\xxx\AppData\Local\Yarn\bin\flightplan
C:\Users\xxx\AppData\Local\Yarn\bin\flightplan.cmd
#186
Original Poster
Join Date: Jan 2010
Posts: 189
It looks like the top-level link to the command is installed (for both npm and yarn, I'm guessing you did a global install with both?)... Is there nothing in: "C:\Users\xxx\AppData\Roaming\npm\node_modules "?
I'd suggest removing and re-installing the flightplan-tool package again, also paste the command you used and output you got back, both when removing and adding back. There might be something in there that would help me track down the issue.
I'd suggest removing and re-installing the flightplan-tool package again, also paste the command you used and output you got back, both when removing and adding back. There might be something in there that would help me track down the issue.
#187
Join Date: Jul 2006
Location: California
Programs: AA EXP, lowly UA 1K; Hyatt Diamond, SPG Gold, Hilton Gold; National EC, Hertz PC
Posts: 2,214
Very strange. Reinstalled and now working. Not sure what I did differently this time around.
Anyways, thank you for the quick replies.
Anyways, thank you for the quick replies.
#189
Join Date: Jul 2006
Location: California
Programs: AA EXP, lowly UA 1K; Hyatt Diamond, SPG Gold, Hilton Gold; National EC, Hertz PC
Posts: 2,214
Sorry one more question.
When I try to launch the server in the command line it responds
flightplan server 0.3.18
Opening database...
Running web server on port: 5000
Success!
Then the cursor just hangs there.
If I go to a browser to localhost:3000 I get nothing. If I go to localhost:5000 I get an error "Cannot GET /"
When I try to launch the server in the command line it responds
flightplan server 0.3.18
Opening database...
Running web server on port: 5000
Success!
Then the cursor just hangs there.
If I go to a browser to localhost:3000 I get nothing. If I go to localhost:5000 I get an error "Cannot GET /"
#190
Original Poster
Join Date: Jan 2010
Posts: 189
You have to run both the client (the website GUI) and the server (the back-end API, which actually serves the data). They're both mentioned at the bottom fo the README: https://github.com/flightplan-tool/flightplan
The cursor hanging there is normal, these are what serve the website and API, so you have to keep them running. You can open a cmd.exe window for each (client and server) and leave them in the background, or use a process manager like pm2 if you wanted to run them in the background (I wouldn't really recommend this unless you're familiar with what a process manager is though, for most casual users I'd just leave the cmd.exe windows in the background).
The cursor hanging there is normal, these are what serve the website and API, so you have to keep them running. You can open a cmd.exe window for each (client and server) and leave them in the background, or use a process manager like pm2 if you wanted to run them in the background (I wouldn't really recommend this unless you're familiar with what a process manager is though, for most casual users I'd just leave the cmd.exe windows in the background).
#191
Join Date: Jul 2006
Location: California
Programs: AA EXP, lowly UA 1K; Hyatt Diamond, SPG Gold, Hilton Gold; National EC, Hertz PC
Posts: 2,214
You have to run both the client (the website GUI) and the server (the back-end API, which actually serves the data). They're both mentioned at the bottom fo the README: https://github.com/flightplan-tool/flightplan
The cursor hanging there is normal, these are what serve the website and API, so you have to keep them running. You can open a cmd.exe window for each (client and server) and leave them in the background, or use a process manager like pm2 if you wanted to run them in the background (I wouldn't really recommend this unless you're familiar with what a process manager is though, for most casual users I'd just leave the cmd.exe windows in the background).
The cursor hanging there is normal, these are what serve the website and API, so you have to keep them running. You can open a cmd.exe window for each (client and server) and leave them in the background, or use a process manager like pm2 if you wanted to run them in the background (I wouldn't really recommend this unless you're familiar with what a process manager is though, for most casual users I'd just leave the cmd.exe windows in the background).
#192
Original Poster
Join Date: Jan 2010
Posts: 189
An Important Announcement
Hey Everyone, wanted to share an exciting new development regarding Flightplan. I've heard from so many of you, that you'd love to try out the tool, but don't feel comfortable with a command line or troubleshooting developer tools . Or that waiting hours (or days) for a full search to complete just takes too long. What if there was a version of Flightplan which didn't require you to install anything, and you could search awards for a full year in a matter of seconds?
Yup, so as another fun challenge to myself, I decided to try and build just that. You can try it out at https://www.flightplantool.com. The concept is simple: rather than each of us running flightplan tool individually, what if we could crowd source the entire effort among many users, and aggregate all that data into a single repository, with some serious server hardware to crunch all the data and serve it live. It will take a bit of time before the data will be "complete" enough to be useful, and there will be some effort to keep the data fresh moving forward, but I've taken an initial stab at it, and wanted to open the website up for beta testing to get feedback. So far, close to a million awards have been indexed, on over 10 thousand flights across 70 routes (this is coming from five different FFP covering *A, OW, and ST). And those numbers keep growing.
So, try it out, and let me know what you think I'll be continuing to make updates to the website this week, as time allows! And happy Thanksgiving week, to those in the states!
Yup, so as another fun challenge to myself, I decided to try and build just that. You can try it out at https://www.flightplantool.com. The concept is simple: rather than each of us running flightplan tool individually, what if we could crowd source the entire effort among many users, and aggregate all that data into a single repository, with some serious server hardware to crunch all the data and serve it live. It will take a bit of time before the data will be "complete" enough to be useful, and there will be some effort to keep the data fresh moving forward, but I've taken an initial stab at it, and wanted to open the website up for beta testing to get feedback. So far, close to a million awards have been indexed, on over 10 thousand flights across 70 routes (this is coming from five different FFP covering *A, OW, and ST). And those numbers keep growing.
So, try it out, and let me know what you think I'll be continuing to make updates to the website this week, as time allows! And happy Thanksgiving week, to those in the states!
#194
Original Poster
Join Date: Jan 2010
Posts: 189
The counters on the website are "estimates", based on the last known value and rate of change. Although new award data is being crawled continuously, it doesn't go live on the website until a new index is pushed (about 1x a day), because the new data has to go through a compression phase (otherwise the index would be way too large to load into memory). Each time a new index is built and deployed, the counters adjust themselves accordingly (so certain times of day you may see them jump forward, or even backwards).
#195
Join Date: Jan 2009
Posts: 10
So basically you took a tool that was already incredibly useful and saved everyone a ton of time, then made it far more accessible and enabled exploring any award you can fancy instead of picking the ones you already had in mind.
So.... much... .awesomeness!
So.... much... .awesomeness!