Having been playing around with NodeJS recently,
I (naturally?) started re-writing some of the OpenSesame code using Node last night.
I think I've only worked on it around 2 hours so far,
but I've already set up a basic client interface (a socket.io chat tutorial rip) with a server that the Raspberry Pi can connect to and receive requests to open the door.
This is probably due to socket.io's socket management (socket.io is the WebSocket module for Node); for my first implementation, I had to manually write up a structure that managed sockets, but that is pretty much handled by socket.io.
Also, the servo control logic is pretty much recycled (and the Raspberry Pi code is still Python), and I do remember spending some good time figuring that out.
Cool neverthelss.
I'll probably keep both versions around.
Comments
Post a Comment