Skip to content

Instantly share code, notes, and snippets.

View Evidlo's full-sized avatar
💭
what does this field do?

Evan Widloski Evidlo

💭
what does this field do?
  • Electrical Engineering
  • University of Illinois Urbana-Champaign
View GitHub Profile
--- a/package/Config.in
+++ b/package/Config.in
@@ -756,6 +756,7 @@ menu "External python modules"
source "package/python-docutils/Config.in"
source "package/python-dominate/Config.in"
source "package/python-dpkt/Config.in"
source "package/python-ecdsa/Config.in"
source "package/python-engineio/Config.in"
source "package/python-enum/Config.in"
@@ -765,6 +766,7 @@ menu "External python modules"
from twisted.logger import Logger
from twisted.internet.defer import inlineCallbacks
from autobahn.twisted.wamp import ApplicationRunner
from autobahn.twisted.wamp import ApplicationSession
import time
class RobotSession(ApplicationSession):
log = Logger()
#/bin/env python3
## Evan Widloski - 2017-01-06
## Asynchronous magstripe reader example
## Requires root and >= python 3.5
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio
import asyncio, evdev, json, os
# MSR100 reader vendor/product ids