• node.js, express, mongo, and passport

    Building on the tutorial from http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/ I wanted to add passport support to allow basic authentication to the site and there seemed to be a few too many conflicting and out of date instructions for what should have been a really simple process.

    The objective is local username/password authentication and as we are doing that we might as well be good and store a password hash not the actual password in the db. This could easily be extended to be properly salted etc.

    [Read More…]

  • Sams4s RS232 protocol

    I’ve just launched my new project to be able to talk to and program Sams4s cash registers using open source tools, the code can be found at https://github.com/robincornelius/ECRComms it is not finished but what of it there is currently works with an ER-230 and in theory the backup/download should work with many other models. The actual editing will be model/version dependent and I will need help from others to make it work with more than just the two models I have here (the ER230 and the ER380M).

    I’ve also started a documentation project that can be found here this is the documentation of the protocol and file format as I work it out.