Autoscan and autoconnect by signal strength to open wifi

I would like to put my gl-inet router in my car with a video camera. while I’m driving I use my phone hotspot. but lets say I go into a mall or shop and there are open wifi networks open where I park. I would like a script that allows the router to act as a wireless reapeater and scan for open wifi hotspts and connect to the one with the strongest signal. then from my car I can get alerts of motion detection etc in real time. this would be a great feature enhancement to the interface. I’m not using the video capabilties of a usb camera connected to the router but an external wireless one. thanks! or a starter script I can launch through the advanced luci menu. thanks