Hacklet Build Status

A library, written in Ruby, for controlling the Modlet outlet.

If you haven't heard of the Modlet before, it's a smart outlet cover which allows you to convert any outlet into your house into a smart outlet. This means that you can control whether a plug is on or off and you can also determine how much energy it's using with a sampling frequency of 10 seconds.

There are alot of other similar products but this is the first one that I've see that costs $50 and includes control as well as monitoring of the independent sockets.

Why

So why write another client?

Unfortunately the client software included with the device isn't available on all platforms (Linux) and it's pretty heavyweight for what it does.

The goal of this project is provide all the same functionality of the bundled client but do it in a lightweight manner, to provide total control and availability of the data.

Getting Started

Right now things are pretty rough and won't work without modifying bin/hacklet. Eventually the hacklet script will allow for specifying which Modlet and socket you'd like to read or control.

bundle install
sudo modprobe ftdi_sio vendor=0x0403 product=0x8c81
bin/hacklet

Status

  • [X] Reading Data
  • [X] Controlling Sockets
  • [X] Multiple Modlet Support
  • [X] Commissioning New Devices
  • [X] Useful utility
  • [ ] Set time on New Devices
  • [ ] Documentation