TheThingSystem / steward

The Thing System is a set of software components and network protocols that aims to fix the Internet of Things. Our steward software is written in node.js making it both portable and easily extensible. It can run on your laptop, or fit onto a small single board computer like the Raspberry Pi.
http://thethingsystem.com
Other
346 stars 81 forks source link

No maker registered #91

Closed RussNelson closed 10 years ago

RussNelson commented 10 years ago

I'm getting new bulbs found! But I'm getting this message: "warning: [devices] no maker registered for LIFX". I checked and in the start() function, I'm calling devices.discover(info); after I set devices.makers['/device/lighting/LIFX/led'] = LIFX; and info.deviceType = '/device/lighting/LIFX/led'; So I'm not understanding why it's not finding the maker.

RussNelson commented 10 years ago

It looks like I'm doing the same think as (say) the blink1 does. It sets up an 'info' hash/dict (or whatever javascript calls them) with info.deviceType = '/device/lighting/blink1/led'; and then calls devices.discover after it has set devices.makers['/device/lighting/blink1/led'] = Blink1 ......

Oh. Except that I'm NOT setting info.deviceType. I'm doing what the template does, which is to set info.DeviceType to '/device/lighting/LIFX/led' and then ALSO set info.DeviceType to 'LIFX'.

YAY! notice: [devices] adding Office deviceType=/device/lighting/LIFX/led