A remote control to reset your router

HOME SWITCHER

Article from Issue 78/2007
Author(s):

My low-budget router has just crashed, and there is no way to reset the beast remotely via a network. Never fear – an X10 module, controlled by a web GUI with an Ajax interface, can actuate the mains switch.

Regular readers will recall that last month’s Perl column relied on X10 technology to transmit switching signals over normal power lines at home. In this article, I will extend the scenario to include three new devices with X10 receivers: my DSL modem, my DSL router, and my TiVo digital video recorder. The lights in the bedroom and living room are already connected to X10 boxes.

Figure 2 shows the results of running the scripts in this article. As you can see, the browser displays intuitive names for the devices in question, and a button in the right-hand column of the table for each row lights up green or red, depending on the current device status. Clicking the button toggles the device state. This all relies on state-of-the-art Ajax technology – the browser does not need to reload the whole web page, just single fields that have changed.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Universal Plug and Play

    Universal Plug and Play provides an easy framework for seamless integration of network devices. Learn how to build your own UPnP solution using the open source BRisa framework.

  • Linux-Controlled Model Train

    Controlling a miniature train empire with concurrent Linux processes.

  • Perl: Network Monitoring

    To discover possibly undesirable arrivals and departures on their networks, a Perl daemon periodically stores the data from Nmap scans and passes them on to Nagios via a built-in web interface.

  • Perl: E-Books for the Kindle

    At the press of a button, convert the tried-and-trusted POD format for Perl documentation to the digital Mobi format for the Kindle and a wide variety of mobile devices running the Kindle app.

  • Perl: PerlPanel

    One panel has a neat collection of applets and another has spectacular looks – but a combination of the two is rare. Now help draws nigh for the desktop: PerlPanel is extensible with do-it-yourself widgets.

comments powered by Disqus

Direct Download

Read full article as PDF:

Perl_X10_Module.pdf  (232.33 kB)

News