Nine years ago I wrote an
app for my Hewlett-Packard Pocket-PC that communicated with my train layout control software and could thus be used as a wireless mobile controller for the layout. It worked fine, but with time, the HP device is no longer current, can't hold its charge and is not really useful. I thus decided to replace the app with a plain browser-based solution. This would mean that any browser based device could be used, meaning that any modern smart phone could be used. Visitors to my layout can use their own device to operate trains!
This means that I essentially had to add an HTTP server to my software, and generate the HTML pages dynamically. It took a couple of weekends and I am very pleased with the results.
The main functional features are:
1. Switching the layout power.
Power can be switched on, off, or the 'halt mode' can be set on. These controls are available at the top of every screen (including the '404 not found page!).
This ensures that the power can always be switched off in case of emergency, such as a derailment.