#!/usr/bin/python3 import cgi import cgitb import codecs import configparser import datetime import hashlib import json import os import stat import sys import time import collections import socket import urllib import requests import time import pychromecast chromecasts = pychromecast.get_chromecasts() ####################### Enter friendly name of Chromecast device below ############# cast = next(cc for cc in chromecasts if cc.device.friendly_name == "Sun Lounge TV") cast.wait() mc = cast.media_controller #TEST FILE; mc.play_media('http://192.168.1.183/Hit Mornings With Pandora.mkv', 'video/mp4') mc.block_until_active() #time.sleep(9999) #mc.seek(0)