Did you know that you might be able to remotely control or program your polyscience chiller?


import pyaudio
import wave

def rickRoll():
    chunk = 1024
    f = wave.open("rickRoll.wav","rb")  

    p = pyaudio.PyAudio()  
    stream = p.open(format = p.get_format_from_width(f.getsampwidth()),
                channels = f.getnchannels(),
                rate = f.getframerate(),
                output = True)

    data = f.readframes(chunk)

    while data:
        stream.write(data)
        data = f.readframes(chunk)

    stream.stop_stream()
    stream.close()
    p.terminate()

try:
    ... 
except:
    rickRoll()

:stuck_out_tongue:

6 Likes