Skip to content

Instantly share code, notes, and snippets.

@markwal
markwal / myserial.py
Created May 20, 2015 21:43
Serial sniffer
from serial import Serial
class MySerial(Serial):
def __init__(self, *args, **kwargs):
Serial.__init__(self, *args, **kwargs)
def readline(self, *args, **kwargs):
rval = Serial.readline(self, *args, **kwargs)
if "response" in rval:
self.save = rval
2015-04-07 00:08:34,655 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available
2015-04-07 00:08:34,658 - octoprint.plugin.core - INFO - Found 3 plugin(s) providing 3 mixin implementations, 1 hook handlers
2015-04-07 00:08:34,664 - octoprint.filemanager - INFO - Adding backlog items from local to analysis queue
2015-04-07 00:08:34,749 - octoprint.plugin.core - INFO - 3 plugin(s) registered with the system:
| CuraEngine (bundled) = /home/pi/OctoPrint/src/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/OctoPrint/src/octoprint/plugins/discovery
| GPX (0.1) = /home/pi/OctoPrint-GPX/octoprint_GPX
2015-04-07 00:08:34,931 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2015-04-07 00:08:34,932 - octoprint.server - INFO - Listening on http://0.0.0.0:5000
2015-04-07 00:09:29,620 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.6
2015-04-02 22:36:34,917 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available
2015-04-02 22:36:34,920 - octoprint.plugin.core - INFO - Found 3 plugin(s) providing 3 mixin implementations, 1 hook handlers
2015-04-02 22:36:34,925 - octoprint.filemanager - INFO - Adding backlog items from local to analysis queue
2015-04-02 22:36:34,985 - octoprint.plugin.core - INFO - 3 plugin(s) registered with the system:
| CuraEngine (bundled) = /home/pi/OctoPrint/src/octoprint/plugins/cura
| Discovery (bundled) = /home/pi/OctoPrint/src/octoprint/plugins/discovery
| GPX (0.1) = /home/pi/OctoPrint-GPX/octoprint_GPX
2015-04-02 22:36:35,165 - octoprint.server - INFO - Listening on http://0.0.0.0:5000
2015-04-02 22:36:35,167 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on octopi for SSDP
2015-04-02 22:36:35,729 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.20