This application should not be taken too seriously. It was built around one stupid idea, which is - riding around your apartment from anywhere in the world on a robot vacuum cleaner, it has some basic "robot vacuum app" functionality as well. Robot vacuum cleaners usually don't have a forward pointing camera on board, so I had to get creative...
Python requests camera image from running on the phone web server. This is done using IP webcam android app. Then pygame displays received from server image on the screen. To control robot's movements and to get robot related information python-miio module is beeing used.
- pygame
- miio
- configparser
- pillow
- numpy
- requests
I only had a chance to test it with 1S vacuum model, but it should work with similar models as well.
- Download or clone this repository.
- Extract to some location.
- Download IP webcam app on your android phone and configure it: Resolution: 720x480, Quality: 30 - optimal value.
- Attach the phone to your vacuum cleaner and point it's camera forward.
- Start server.
- Fill in the robot's network infomation and video feed url in the config.txt file.
- Run main.py from Xiaomi-Vacuum-Cleaner-App folder.