Skip to content

Instantly share code, notes, and snippets.

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
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
@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
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <termios.h>
static unsigned char calculate_crc(unsigned char *addr, long len)
{
unsigned char data, crc = 0;
while(len--) {
@markwal
markwal / gpx-g28.c
Created July 3, 2015 22:46
G28 handling in gpx
// G28 - Home given axes to machine defined endstop
case 28: {
unsigned endstop_max = 0;
unsigned endstop_min = 0;
if(gpx->command.flag & F_IS_SET) gpx->current.feedrate = gpx->command.f;
if(gpx->command.flag & X_IS_SET) {
if(gpx->machine.x.endstop) {
endstop_max |= X_IS_SET;
}
@markwal
markwal / dabba.x3g.txt
Created July 11, 2015 19:28
s3g-decompiler translation of serial sent
Command count: (Command ID) Command description
1: (12) Read from EEPROM, offset 420, count 4
2: (12) Read from EEPROM, offset 424, count 4
3: (12) Read from EEPROM, offset 428, count 4
4: (12) Read from EEPROM, offset 432, count 4
5: (12) Read from EEPROM, offset 436, count 4
6: (12) Read from EEPROM, offset 528, count 4
7: (12) Read from EEPROM, offset 532, count 4
8: (12) Read from EEPROM, offset 536, count 4
9: (12) Read from EEPROM, offset 540, count 4
@markwal
markwal / -
Created October 2, 2015 09:42
diff --git a/src/octoprint/static/js/app/viewmodels/connection.js b/src/octoprint/static/js/app/viewmodels/connection.js
index d501e7e..613a57e 100644
--- a/src/octoprint/static/js/app/viewmodels/connection.js
+++ b/src/octoprint/static/js/app/viewmodels/connection.js
@@ -121,6 +121,7 @@ $(function() {
OctoPrint.connection.connect(data)
.done(function() {
+ self.requestData();
self.settings.requestData();
@markwal
markwal / -
Created October 7, 2015 09:25
commit dbc3430b34f94acc4bc7b8d11ded0a41f01fc8c5
Author: Mark Walker <markwal@hotmail.com>
Date: Wed Oct 7 02:22:56 2015 -0700
Typos
diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py
index 39b7a04..a10abc6 100644
--- a/{{cookiecutter.repo_name}}/setup.py
+++ b/{{cookiecutter.repo_name}}/setup.py
@markwal
markwal / -
Created October 7, 2015 09:34
commit 41b1e049322d5f5462fe89805b8591b157130c4b
Author: Mark Walker <markwal@hotmail.com>
Date: Wed Oct 7 02:32:47 2015 -0700
fix a couple of typos
diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py
index 39b7a04..5746721 100644
--- a/{{cookiecutter.repo_name}}/setup.py
+++ b/{{cookiecutter.repo_name}}/setup.py
@markwal
markwal / polygon_2060.cfg
Created October 14, 2016 23:13
Start on Redeem configuration for the Polygon 2060
[System]
machine_type = Polygon_2060
[Geometry]
# Delta
axis_config = 3
# Set the total length each axis can travel
travel_x = -0.5