Is an hour away worth it?

I’m 21 years old & I recently had gotten fired from my job, I haven’t told my parents I got fired because I know they would yell at me. Anyways I got myself into a huge pickle I’m negative in my account due to bills & I have another round of bills coming up in 10 days so roughly I’m negative $1,500 right now. I’m scraping by for gas money right now. I NEVER want to be in this situation again so I decided to pick up two jobs. Both warehouse jobs. They both are an hour away from my house but 5 minutes from each other. My schedule for my first job is W,T,F,S,S 6:20Pm-12:50am. My second job is 5 days a week 3Am-8am. Both jobs pay weekly and are a little bit over $17/hr. I’m in a crappy position because I just got another job offer $17/hr but it is 18 Minutes from my house. Issue is I already accepted the other jobs because I was just going to sleep in my car for x amount until my other shift started since they are walking distance from each other. If anyone can give me advice on what they would do or if its worth it working two jobs or just the close one. Thank you!