Live stream to http://twitch.tv/adafruit showing part 4 in the Raspberry Pi Cat Laser 2.0 series. This part looks at how to build a cloud server with Python, flask, and flask-socketio which allows multiple people to control the cat laser. Instead of each user trying to individually access the Pi they instead access the cloud server (running a virtual machine for now) and it sends control messages to the Pi (using MQTT) and serves up the Pi's video stream. Adding the cloud server allows many more users to control the laser vs. if they tried to access the Pi directly and overloaded it's meager CPU.
Links mentioned in the video:
- Code on github: https://github.com/adafruit/CatLaser2
- Pt. 1 video: https://www.youtube.com/watch?v=FRvKtcemXkM
- Pt. 2 video: https://www.youtube.com/watch?v=Z_TMkX0qy_Y
- Pt. 3 video: https://www.youtube.com/watch?v=gRB0HXrSlZc
- Ubuntu 16.04 LTS vagrant box issue and fix for synced folders: https://bugs.launchpad.net/cloud-images/+bug/1565985
- Flask-socketio: https://flask-socketio.readthedocs.io/en/latest/
- Paho MQTT python library: https://pypi.python.org/pypi/paho-mqtt/1.1
Acknowledgements:
- Music: bartlebeats
- Intro shuttle footage: NASA
- Intro fonts: Typodermic
- Intro inspiration: Mr. Wizards's World
- Matrix background: cool-retro-term & cmatrix
-----------------------------------------
Visit the Adafruit shop online - http://www.adafruit.com
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
Join our weekly Show & Tell on G+ Hangouts On Air: http://adafru.it/showtell
Watch our latest project videos: http://adafru.it/latest
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
Music by bartlebeats: http://soundcloud.com/bartlebeats
-----------------------------------------