Teleport

<<pictures of phone>>

This is a template of a web interface using the Rpi as a server. Any server will do even a public server. The main advantage of using a web server is that it can be accessed via a phone or laptop with a browser and thus no special 'Apps' are needed.

Installation

If using an RPi then you need to install Lighttpd and them modify the config file so that it will run Python as a CGI. There are plenty of reference on how to do this so it will not be presented here.

This is the web site that will normally be placed in /var/www/ if using an RPi

How It Works

Python is used for the control as it appears to provide a much better 'socket' interface over PHP, however PHP could also be used. In fact the project started out by using PHP.

This is an example of using the wifi relay (BV4115)

The index.html collects the IP address and port number. When the user submits this it is passed via a query string to iprequest.py. The Python program will attempt to open the socket (ip+port number) and if successful checks for a particular device. At the moment there is only one device but this could easily be extended.

Assuming a wifi relay has been found, iprequest will gather information from the physical device and pass this on to the html form as a query string. The wfrelay.html will present this information to the user. The user can then modify and submit which will then pass a query string to wfrelay.py. This will update the physical device ad return to the index.

There is a library called 'teleport.py' used in both of the other .py programs.

The flow of this could be vastly improved but has been left this way as it represents the simplest template.