Hugh Jarse wrote:
I have made some updates since I first posted the remote mains socket controller info.
The link now contains an update to the source code to work with the latest versions of the bcm2835 library, an example of using cron for automatic timed switching of sockets on/off, and update the circuit diagram, and a few corrections.
Your work fascinated me so much that I decided to write an alternative web interface for it.
The one I saw was pretty basic and I hope you haven't yet started work on improvements.
What I made today has a few features that make your system even more usable.
1: Before accessing the switchboard you need to log in.
2: It is possible to use an alternate name for the sockets which can be updated via the website.
User data and socket names are stored in an embedded sqlite database.
The webserver I used is lighttpd which works out of the box with perl cgi.
Actual status of the ports is reflected in four variables; Socket01 - 04.
It is also really lightweight. The .tar file with all files from /var/www/ is just 61k.
This is the very first version, not yet fully tested. Everything can be customized further if necessary.