Raspbian Jessie as OpenHAB + MQTT Server: Part 3: Add Websockets

Nowhere near completely usable, BUT, what IS working so far:

  • Websocket javascript with Paho library subscribes succesfully to the Websocket listener on Mosquitto
  • I can subscribe, and recieve all the published messages on the HAB
  • I am using the data received, to dynamically, and automatically, build up a device tree – it looks at the topic path (remember how a year a ago I wrote a post about why the topic name is important (;  – here you see why – from the topic names i can deduce the entire hierarchy automatically)
  • Clicking any item in the tree brings ip a CONTROL interface – to be extended with sensorvalues, etc
  • The basic concept here is working great – by setting my devices to announce themselves, or response to a broadcast requesting them to announce themselves, I can cut a LOT of configuration out – theoretically I can have a new device connect to MQTT, send the page its name, location, connected devices, what those devices are (switch, dimmer, sensor, or actuator) and the javascript can automagically make a UI for it.  This means you can mostly get away without a server, without a database.

Source being shared here: https://github.com/openhardwarecoza/ESP8266-Sketches/tree/master/htt-websocket-esp8266


LaserWeb Support Community:

LaserWeb Support Community: https://plus.google.com/communities/115879488566665599508

If you have been wondering…

If you have been wondering what happened to the Pick and Place project…

Check: the collection of posts on Google Plus https://plus.google.com/collection/wKbAgB


Do you like a good…

Do you like a good deal? Follow my Google Plus Collection of “Hacker/Maker Deals”

Hacker Deals


Check out my collection on Google Plus: https://plus.google.com/collection/ERlkgB for more details!


16 - 1 (1)

LaserWeb Version 2


LaserWeb 2.0 is ready for use!

See openhardwarecoza.github.io/LaserWeb2

Big toys

In a follow up from https://openhardwarecoza.wordpress.com/2016/03/17/setting-up-an-electronics-lab/, here’s a list of the items that’s getting heavy on my wishlist these days (as production starts to ramp up and the projects get more complex)

Note I have not ordered any of these yet, but, the selected parts are all well researched and recommended by the independant repair community and makers alike:

  • Laser: The infamous K40, after conversion to Smoothieware, becomes a useful prototyping tool:

AliExpress.com Product – small 40W laser engraver carving machine 3020

  • Infrared Reflow Oven:  A hacked Toaster works, up to a point (;

AliExpress.com Product – 220V/110V Smart Reflow Oven Infrared IC Heater Soldering Machine 800 W 180 x 235 mm BGA SMD SMT Rework CE Certificate / T962

  • Hotplate: Not just for assembly but also for rework preheating

AliExpress.com Product – YIHUA 946A BGA Preheating Station

  • Heated Ultrasonic Cleaner
    I had the unheated model before and that didnt work to get flux off the board. Apparently I was supposed to get the heated model (;

AliExpress.com Product – Digital Heated Ultrasonic Cleaner Cleaning Machine 6L

  • Solder Paste Dispenser:  Currently use one of Magnum’s little manual models that look like a caulking gun.  Really a pain in the hand (literally)

AliExpress.com Product – YDL-983A Professional Precise Digital Auto Glue Dispenser Solder Paste Liquid Controller Dropper 220V Free Shipping

AliExpress.com Product – Free Shipping Mini CNC Milling Machine Router CNC 3040 Z-DQ 3 AXIS 220V 230W With Ball Screw