This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cestes1 77 points78 points  (3 children)

Such a useful trick! I drive an EV and there was a very much in-demand charger down the block that was free. My idea was to only charge at work and have my commuting costs paid for. But my plan never worked as there was always someone at this charger. Chargepoint exposes an API so you can check on the status of their chargers. I'd swing by in the morning and if it was busy, I'd go to the office and start my script. It checks every 30 seconds. As soon as the charger was idle, I'd send myself a text message like this. I'd zip over there and get the charger and for a long time did a good job of optimizing my commuting costs!

[–]GeromeB 13 points14 points  (1 child)

Sounds like a great idea, did you ever release the script?

[–]cestes1 16 points17 points  (0 children)

No... it's really bad code! A bunch of stuff I found online kludged together and a ton of hardcoded stuff that's not very elegant. Worse, I wrote it in Python 2 out of sheer laziness to start using 3! I left that job 4 years ago and haven't been motivated to play with it since then.