Web server to control pan tilt hat


#1

I have a pant tilt hat and would like to use it via a website with up down left and right buttons.

How could I make this doable via a website and python, I’m new to iot But I know HTML and css era well and would like to know: how to set up a web server and how to interface it with python?

Thanks


#2

Using the Flask framework would probably be the easiest way to do it. It is very light-weight and should be easy if you already know Python, HTML, and CSS.


#3

http://forums.pimoroni.com/t/help-building-an-pan-tilt-webinterface-for-pimoroni-pan-tilt-hat-full-kit-with-webcam-server/

Works well

Gordon


#4

You can probably adapt my STS-Pilot software for this purpose. It was designed for the explorer hat, but it should not be that difficult to adapt it for PAN / TILT.
It uses flask as web framework and gevent as web server. Works with both native Pi camera or UVC compatible USB cameras.