Comments (7)
Thanks for reporting this issue. There is a check to see if the flight is departed before attempting to check in (and skips it if it has departed). It uses the departure status of the flight though, not the time and perhaps Southwest has changed the status keyword for departed flights.
Could you add the line print(flight_info["departureStatus"])
on line 63 of lib/checkin_scheduler.py
to see what the departure status for the two flights are? If not, I have access to a flight departing later today so I can use that. (Edit: The departed flight is actually reporting the status the script expects once departed, so I'm interested to see what yours says)
Some more details if you or others are interested: Because Southwest uses the same reservation (conf number, name), Southwest thinks you're trying to check in to the returning flight, but the script thinks it is the departing flight (hence the Too early to check in
message).
from auto-southwest-check-in.
2024-05-06 09:19:32 DEBUG Process-2[checkin_scheduler:58]: 2 flights found under current reservation
None
None
2024-05-06 09:19:32 DEBUG Process-2[checkin_scheduler:44]: 2 total flights were found
2024-05-06 09:19:32 DEBUG Process-2[checkin_scheduler:110]: 2 new flights found
2024-05-06 09:19:32 DEBUG Process-2[checkin_scheduler:114]: Scheduling 2 flights for check-in
2024-05-06 09:19:32 DEBUG Process-2[checkin_handler:47]: Scheduling check-in for current flight
2024-05-06 09:19:32 DEBUG Process-2[checkin_handler:47]: Scheduling check-in for current flight
2024-05-06 09:19:32 DEBUG Process-2[notification_handler:69]: Sending new flights notification
Successfully scheduled the following flights to check in for FIRST LAST:
Flight from San Jose to Honolulu (Oahu) on 2024-04-30 8:00 AM PDT
Flight from Honolulu (Oahu) to San Jose on 2024-05-07 12:00 PM HST
It returned None and None
from auto-southwest-check-in.
I have a fix for this in the departed-flights branch. Could you do git pull && git checkout departed-flights
and then run the script again to see if the issue persists? If you aren't using the develop
branch, you will need to run pip install -r requirements.txt
as there was a new dependency added recently.
I'm not sure why the departure status of the old flight is None. Perhaps its because its a week old. I have a long flight I can access so I will look back in a week to see if I get the same status, which will confirm the hypothesis that flights on the same reservation don't have a departure status after a long period of time.
I changed the check to not rely on the departureStatus
returned by Southwest but instead see if the flight time is in the past.
from auto-southwest-check-in.
I commended on the commit and seems like i got some package import error. I fixed it by changing
from datetime import UTC as datetime_utc line 4 and return datetime.now(datetime_utc) line 79
to
return datetime.now(timezone.utc)
My check-in time is passed already so I won't be able to verify that tho, but I will also keep an eye on it. Thanks.
from auto-southwest-check-in.
Thank you, will fix that (the original only works for Python 3.11+).
My check-in time is passed already so I won't be able to verify that tho, but I will also keep an eye on it. Thanks.
No worries. I have a flight in a similar situation to yours now so the fix I have is tested on a real situation and is probably more robust. I'll merge the fix and close this issue, but if you still receive any issues with this in the future, I can reopen it.
from auto-southwest-check-in.
Related Issues (20)
- Failed to log in to account with username XXXXX. Reason: Invalid credentials. Status code: 400. Passwords with non-alphanumeric characters? HOT 11
- Element click intercepted: Login Button is not clickable (Docker) HOT 13
- ModuleNotFoundError: No module named 'requests' HOT 19
- Forbidden 403 HOT 58
- Encountered a Too Many Requests error while logging in. Skipping reservation retrieval HOT 3
- AttributeError: 'WebDriver' object has no attribute 'add_cdp_listener' HOT 1
- Hang during setting headers_set HOT 7
- Failed to check in due to local time being ahead HOT 17
- Hangs at "Loading Southwest Check-In page" HOT 24
- ModuleNotFoundError: No module named 'requests' HOT 3
- Add devcontainer.json configuration to run the project on GitHub Codespaces
- Continuously hitting 403 error HOT 1
- Add jitter to requests time(s) HOT 1
- Add account / reservation level notification settings HOT 2
- Introduce a custom POST endpoint for "other" notifications HOT 1
- Headers not present on some requests HOT 4
- Reservation monitor hung with lock HOT 6
- Check-in attempt occurred 3 minutes late (didn't sleep computer) HOT 8
- Occasionally getting NTPExceptions - uncaught HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-southwest-check-in.