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 json | |
import requests | |
def get_show_id(title: str): | |
response = requests.get(f"https://www.episodate.com/api/search?q={title}&page=1") | |
json_data = json.loads(response.text) | |
if len(json_data["tv_shows"]) == 0: | |
exit("Not found") |
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 time | |
import yeelight | |
import sys | |
import socket | |
import colorsys | |
import argparse | |
from yeelight import BulbException | |
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 sys | |
import socket | |
import colorsys | |
import argparse | |
from lifxlan import LifxLAN | |
def search_lifx_bulb(name, lifx): | |
""" | |
Returns the LIFX device for the selected bulb name |