Not cheap, but £30 can score you a Raspberry Pi Zero - Wifi variant
https://www.amazon.co.uk/Raspberry-...words=raspberry+pi+zero&qid=1582900171&sr=8-6
As for the Tesla DashCam side as folk have mentioned:
- PiZero(wifi) can work great, but you need to be mindful of the configuration file you throw onto it as using the bare minimum defaults can leave you with a device that's only managing 1 to 2 mb/s when you should realistically be able to score between 20-40 mb/s.
Ultimately the PiZero is not as simple as a straight up USB approach, but it does grant you more control over how the recordings are handled. I've not spent terribly long troubleshooting the configuration, but I have noticed that the moment i step outside standard WPA-PSK and 2.4Ghz wifi to anything more 'modern' i.e. WPA-PSK2/3 and 5Ghz Wifi, the connectivity fails and back to the drawing board.
In a two day span of parking in towns/cities and well trodden areas, i've managed to get about 20-25GB of footage accrued on the drive, so based on my scenario 256GB works out well at allowing enough time to 'retain' the footage before cycling back round and overwriting the old stuff - if in under two weeks i dont already need the footage then i would be deleting it anyway.
A good way to test the whole setup would be to grab a laptop and run it in Mobile Hotspot mode - on Windows this is just a few clicks to create a hotspot (whilst remaining connected to your source wifi/network).
- Give your PiZero(wifi) the hotspot configuration (in my case, set to 2.4ghz because life hates me) and then anytime your car is within 10 meters or so you've then got "the option" at any point to have the files uploaded on your own terms vs having your Pi constantly trying to latch on to your home network.
Obviously the Pi will only remain powered whilst the car is alive (i personally dont see the point in giving the Pi the API details to the car to 'keep it alive'), so next best thing would be to grab either a usb power pack that supports passthrough charging (simple option) or source a PiJuiceZero (secondary board that sits on top of the PiZero) and plug into that a dedicated battery to keep the whole thing small/manageable.
- Got the 1200mah pack hooked up to the PiJuice on my PiZero, and comfortably getting 2-3hours (anecdotally) of life without any external power from the car (goes without saying that the car would charge the pack up whilst the tesla is turned on).
Good thing to note is that if you struggle with sourcing a PiZero with Wifi, then a Pi 4b would work exactly the same as the configuration is near interchangeable i.e. you can remove the configured TeslaUSB SD card from the PiZero (wif) and pop it into a RaspPi-4b and it will boot up, emulate the USB drives and join your wifi quite happily - only now with the added bonus that its Wifi range/bandwidth is much higher.
- Downside being it uses double-triple the juice on average.
Long post, but hope it helps.