예제 #1
0
 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)
예제 #2
0
 def alarmcam(self, picture):
     '''
     webcam:    
     '''
     MenuItems=[]
     # MenuItems.append((icon, 'System',config['base_url']+'system'))
     # print MenuItems
     
     return SnomXML.SnomIPPhoneImageFile(config['capture_url'] + picture)