This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import telnetlib | |
def inittn(): | |
tn = telnetlib.Telnet("192.168.1.111", 23, 3) | |
tn.read_until("login:") | |
tn.write("lutron\r\n") | |
tn.read_until("password:") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import telnetlib | |
def inittn(): | |
tn = telnetlib.Telnet("192.168.1.24", 23, 3) | |
tn.read_until("login:") | |
tn.write("lutron\r\n") | |
tn.read_until("password:") | |
tn.write("integration\r\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import locale | |
import re | |
import time | |
import datetime | |
from htmlentitydefs import name2codepoint | |
#Original from https://gist.github.com/1957440, by s_quark | |
#Changes by davidfg4 | |
from util import hook, http |