Linux-Scripts/docast.py

8 lines
228 B
Python
Raw Permalink Normal View History

#!/usr/bin/python
2017-06-22 19:59:56 -05:00
from __future__ import print_function
import time
import pychromecast
home=pychromecast.Chromecast('192.168.1.103')
home.media_controller.play_media("http://192.168.1.14/doorbell.mp3",'audio/mpeg')
2017-06-22 19:59:56 -05:00
home.wait()