Skip to content

Instantly share code, notes, and snippets.

@xvwang
xvwang / sendIRThroughEmail.py
Created July 9, 2016 06:35
Control air-condition by e-mail and IR-emmiter from PC
import poplib
import getpass
import sys
import subprocess
import time
while 1:
mServer = poplib.POP3('mailserver(example: seed.net.tw)')
mServer.user('username')
@xvwang
xvwang / recordSendIRWav.py
Last active November 26, 2020 12:59
Record IR Signal from IR audio receiver, and record as wav file for sending through IR audio transmitter
from array import array
from struct import pack
import numpy as np
import wave
import pyaudio
import codeset
import subprocess
import signal, sys