Giter Club home page Giter Club logo

openerp-leddisplay's Introduction

OpenERP 6.1 POS - LED Display Daemon

Selling machine ledDisplay

Summary: this is a WSGI web socket that allows OpenERP 6.1 web-POS to communicate with the selling machine LED Display (connected to a COM serial port), from javascript.

Basically It allows the OpenERP web-POS to run within the browser but still be able to communicate with the COM port and and local peripheral connected to the machine.

Any request, improvement or bug can be reported at: https://github.com/guerrerocarlos/OpenERP-ledDisplay/issues

It is released under the GPL v3 licence see file COPYING or visit http://www.gnu.org/licenses/gpl-3.0.html

Install as a Windows Service:

Compiling Requirements:

  • eventlet
  • greenlet
  • py2exe

Build:

The easiest way to install the dependences is grabbing the compiled installer at: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Then execute

$ python setup.py py2exe

The Windows executable (Daemon) will be in the dist folder.

How to use:

Add this function to your web-POS javascript file located in: addons_folder/point_of_sale/static/src/js/pos.js

    function ledDisplay(line1,line2){  
        try{  
            if (window.XMLHttpRequest)  
              {// code for IE7+, Firefox, Chrome, Opera, Safari  
              xmlhttp=new XMLHttpRequest();  
              }  
            else  
              {// code for IE6, IE5  
              xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");  
              }  
              xmlhttp.open("GET","http://localhost:8100/"+String(line1)+"___"+String(line2),false);  
              xmlhttp.send();  
            }catch(err){  
        }  
    }  

and use it however you want to show the progress in every sale for example this would generate something like in this README first image:

ledDisplay("OpenERP 6.1 POS","LED DISPLAY DAEMON");

Examples:

Example1 Example2

openerp-leddisplay's People

Contributors

guerrerocarlos avatar

Watchers

Hendy A. Setiawan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.