Simple web control with PiFace Digital

Difficulty: easy

Learn how to control your PiFace Digital using an Internet browser from any computer on your local network.

Changing ports with simple web control

If you want to use a different port (instead of the 8000 default) for controlling your PiFace device through a browser, then you can do this by passing the web server the number of the port you wish to use when you run it, e.g:
$ python3 /usr/share/doc/python3-pifacedigitalio/examples/simplewebcontrol.py 12345
Or
simplewebcontrolcad.py 12345

Note: Replace 12345 with the port number you wish to use.