byalextran / southwest-checkin

Easy-to-use gem to check in to Southwest flights automatically. Also supports sending email notifications.
MIT License
87 stars 15 forks source link

Schedule update? #4

Closed mkitchingh closed 2 years ago

mkitchingh commented 2 years ago

This seems simple, but I can't figure out how to do a cron task to update it. I'm not too familiar with Gems, and I think that is where my problem lies. I/ve tried putting the full command in a cron task, no luck. I put in in a script instead. script runs fine from a terminal window, but not from cron. Is this what I need? https://dev.to/risafj/cron-jobs-in-rails-a-simple-guide-to-actually-using-the-whenever-gem-now-with-tasks-2omi When it says "Include it in your app's Gemfile, and run bundle to install.", that's when I wasn't sure I should do this. Thanks for the fix! Glad it is working again.

byalextran commented 2 years ago

you shouldn't need to do anything from that guide.

once you've got southwest-headers installed (along with the other steps), you can add a cron job by doing this:

https://github.com/byalextran/southwest-headers#add-a-cron-job

i know it's a lot of steps, so let me know if you're still stuck.

mkitchingh commented 2 years ago

Oh crap! I had totally overlooked the part you are describing. I didn't even realize we had to do anything more than update the app. Guess I should have actually read the notes :) I was just trying to update the main app automatically. Thanks for the info.

mkitchingh commented 2 years ago

Perfect directions. Everything went as expected on up to date Ubuntu. I have 8 flights to test with this month. Thank again! Would you think we should do something like update the Chome version once a year on our Linux server?

byalextran commented 2 years ago

nice! you're my new beta tester. 😄 let me know how those check-ins go!

and i would say don't update chrome/chromedriver until something breaks and forces you to. if it ain't broke, don't fix it.