def webcam(self, webcam): if webcam == 0: picture = config['cam1_url'] if webcam == 1: picture = config['cam2_url'] # return SnomXML.SnomIPPhoneImageFile(picture, refresh_time, xml_url) return SnomXML.SnomIPPhoneImageFile(picture)
def alarmcam(self, picture): ''' webcam: ''' MenuItems=[] # MenuItems.append((icon, 'System',config['base_url']+'system')) # print MenuItems return SnomXML.SnomIPPhoneImageFile(config['capture_url'] + picture)