dms-storage

command module
v0.0.0-...-fbeccb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2017 License: LGPL-3.0 Imports: 8 Imported by: 0

README

dms-storage

DMS Project Storage Management System

Setup

download latest raspian lite, sudo apt-get update, upgrade. set keyboard locale set hostname

sudo apt-get install python-pip python-dev build-essential sudo apt-get install libjpeg-dev pip install python-imaging sudo pip install pyserial sudo pip install pillow sudo pip install python-escpos https://python-escpos.readthedocs.io/en/latest/user/installation.html

Run this python to test out printer:

from escpos.printer import Usb
p = Usb(0x04b8, 0x0e15, 0)
p.text("Hello World\n")
p.barcode('1324354657687', 'EAN13', 64, 2, '', '')
p.cut()

Download latest go, https://golang.org/doc/install Add go to PATH sudo apt-get install git go get github.com/brandonagr/dms-storage

go build dms-storage.go

Make it auto start: sudo nano /etc/rc.local

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080 cd /home/pi/go/src/github.com/brandonagr/dms-storage ./dms-storage >> /var/log/storage.log 2>&1 &

Setup arduino rfid reader: Write sketch to arduino

lsusb udevadm info -a -n /dev/ttyACM0 | grep '{serial}'

added following to /etc/udev/rules.d/98-usb-serial.rules SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="serialfrom udevadm info", SYMLINK+="rfidReader"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL