Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import re
import octoprint.plugin
TIME_REMAINING_THRESHOLD = 2 # mins
COOLDOWN_COMMAND = "M140 S0"
M73_R_REGEX = re.compile(r"R(\d*)")
@jneilliii
jneilliii / lightshow.agent.nut
Last active January 3, 2016 06:54 — forked from ElectricImpSampleCode/lightshow.agent.nut
Micro Light Show project code
// Agent Code
function getForm(msg){
local effects = ["glow","random","looper","larson","awaiting command"];
// HTML output
local returnValue = @"<!DOCTYPE html>
<html>
<head>
<title>RGB Tail Light Show</title>