https://github.com/guerrerocarlos/openerp-leddisplay
OpenERP web POS connection to COM serial port for Led Display access
https://github.com/guerrerocarlos/openerp-leddisplay
Last synced: about 1 month ago
JSON representation
OpenERP web POS connection to COM serial port for Led Display access
- Host: GitHub
- URL: https://github.com/guerrerocarlos/openerp-leddisplay
- Owner: guerrerocarlos
- License: gpl-3.0
- Created: 2012-03-31T18:11:04.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-28T03:16:18.000Z (over 12 years ago)
- Last Synced: 2025-04-03T06:42:09.783Z (2 months ago)
- Language: Python
- Homepage:
- Size: 113 KB
- Stars: 18
- Watchers: 9
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- License: COPYING
Awesome Lists containing this project
README
OpenERP 6.1 POS - LED Display Daemon
===========================
**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/issuesIt is released under the *GPL v3* licence see file ``COPYING`` or visit
http://www.gnu.org/licenses/gpl-3.0.htmlInstall as a Windows Service:
----------------------------* Download the latest .zip from https://github.com/guerrerocarlos/OpenERP-ledDisplay/downloads
* Unzip the file
* Execute:
ServiceLauncher.exe -install
* Start it or/and configure to start automatically at Windows startup in the Windows Services Manager
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 py2exeThe 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:
---------
