LinuxMCE Forums

General => Marketplace => Topic started by: totallymaxed on December 18, 2014, 01:06:16 pm

Title: Dianemo Exposed - Dynamically Switching between two ISP's Based on Data Usage
Post by: totallymaxed on December 18, 2014, 01:06:16 pm
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