Adapter to control X10 modules via CM11A Serial Interface

Hi, first I’d like to introduce myself. My name is Alan and I just found the Mozilla IoT project this week. I created a similar project myself a year ago, and am excited about this project!

I’ve ported a Python script for controlling the CMA11 to Javascript (cma11-js), and I’m working to create an addon to IoT which will define an adapter to use this interface. However, I have not been able to find in the documentation where to install (side load) my addon in order to test it. It gets deleted from “mozilla-iot/gateway/build/addons/”.

How do I side-load my addon in order to test it?

Thank you,
alan

After some additional digging and testing, I found package is installed (and removed) from “~/mozilla-iot/gateway/build/addons/” to “~/.mozilla-iot/addons/” where it can continue to be edited as necessary.

Found this out via trial & error, but then noticed it the latest comment on the blog tutorial. :slight_smile:

For development, make sure that there is a .git directory in your addon. The gateway skips certain checks (it won’t bother with SHA256SUMS and it won’t try to update your plugin).

When it starts, the gateway will load all addons found in ~/.mozilla-iot/addons

To find new add-ons, the gateway consults the listUrl found here: https://github.com/mozilla-iot/gateway/blob/a31a8b4a6445ea835f6046acb5cc2356cf8634d4/config/default.js#L30 in order to get a list of available add-ons. These addons will be installed into the ~/.mozilla-iot/addons directory.

Thank you, Dave. That information is quite helpful!

The X10 interface is now working, but may not be stable. If anyone here would like to try it out, it can be installed from https://github.com/AlanDThiessen/x10-cm11-adapter.

I have a few tweaks left to make before I’m ready to publish a preliminary version of the add-on.