Author Topic: Dianemo Exposed - Dynamically Switching between two ISP's Based on Data Usage  (Read 24 times)

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4540
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Dianemo Exposed is a series of posts that explore how Dianemo works and how its used by our customers all over the world;

Dianemo is a very flexible & customizable Smart Home system right 'out of the box' and our users are always impressing us with their ingenuity. But sometimes what they are trying to achieve is beyond their ability to customize the system or they simply don't have the time to do whatever the change is themselves. In these situations we can provide a service that will create new software or customize the system to suit your needs all for a fixed pre-agreed cost.

We were recently asked to implement a capability that would enable a customers Dianemo system to automatically switch ISP providers when a data-cap limit on the first ISP had expired. The customers primary ISP had a faster service but there was Data usage cap in place while his second ISP had no Data Cap but a slower speed connection. Our custom solution allows the system to use eth0 for its external connection to the Primary ISP and we monitor data usage on that NIC until we reach the Data Cap (we have a config setting so that we actually trigger the switch-over before the Data Cap is reached). When the Data Cap limit is reached our software switches to eth2 which connects to a second ISP without a Data Cap for the remainder of the current Month. At 00:01 on the 1st of the next month our software switches back to eth0 and starts monitoring data usage again.

The system basically continually swaps between the two ISP's automatically and transparently and therefore automating the switch-over of the ISP service in use. This is a great example of being able to shape Dianemo for a customer with a very specific need.

All the best

Andy
Andy Herron,
Convergent Home Technologies Ltd

My Blog; http://ellipticalcurve.com

Get RaspSqueeze-CEC or Raspbmc-CEC Wifi enabled for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

For Smart Home consulting advice;
@herron on Twitter, inquiries@ellipticalcurve.com via email or PM me here.

Get a Dianemo License: http://forum.linuxmce.org/index.php?topic=8880.msg100221#msg100221
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk