@@ -0,0 +1,1030 @@
+import requests%0Aimport json%0Afrom config import config%0A%0APUSHBULLET_API_URL = 'https://api.pushbullet.com/v2/pushes'%0APUSHBULLET_API_KEY = config.get('PUSHBULLET_API_KEY')%0APUSHBULLET_IDEN_KEY = config.get('PUSHBULLET_IDEN_KEY')%0A%0A%0Adef send_push(stream_data):%0A    %22%22%22Send pushbullet notifications - Type: Link%22%22%22%0A    headers = %7B'content-type': 'application/json'%7D%0A    name = stream_data%5B'name'%5D%0A    status = stream_data%5B'status'%5D%0A    url = stream_data%5B'url'%5D%0A    data = %7B'type': 'link',%0A            'title': '%7B0%7D is now streaming!'.format(name),%0A            'body': status,%0A            'url': url,%0A            %7D%0A    # If iden key not set then push to all devices%0A    if PUSHBULLET_IDEN_KEY:%0A        data%5B'device_iden'%5D = PUSHBULLET_IDEN_KEY%0A    req = requests.post(PUSHBULLET_API_URL,%0A                        data=json.dumps(data),%0A                        headers=headers,%0A                        auth=(PUSHBULLET_API_KEY, '')%0A                        )%0A    if req.status_code == requests.codes.ok:%0A        return True%0A    return False%0A

Add push function