示例#1
0
def syncPackages():
	try:
		sync_data = []
		cmdStatus = runCommand("opkg list-installed enigma2-p* > /tmp/packages.log")
		f = open('/tmp/packages.log')
		lines = f.readlines()
		f.close()
		for package in lines:
			infos = package.split(" - ")
			sync_data.append(metrixCloudSync.getSyncRow("Packages","Packages",infos[0],infos[0],infos[1].replace("\n","")))
		metrixCloudSync.syncNow(sync_data)
	except:
		pass
示例#2
0
def prepareInfo(session):
    try:
        statusinfo = e2info.getStatusInfo2(session)
        try:
            postAnonymous('program', statusinfo['currservice_name'])
            postAnonymous('channel', statusinfo['currservice_station'])
        except:
            pass

        sync_data = []
        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'inStandby', 'Standby status', statusinfo['inStandby'], 8))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Current Service', 'currservice_name', 'Program', statusinfo['currservice_name'], 1))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Current Service', 'currservice_description', 'Description', statusinfo['currservice_description'], 2))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Current Service', 'currservice_station', 'Channel', statusinfo['currservice_station'], 3))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Current Service', 'currservice_serviceref', 'ID', statusinfo['currservice_serviceref'], 4))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Current Service', 'currservice_begin', 'Begin', statusinfo['currservice_begin'], 5))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Current Service', 'currservice_end', 'End', statusinfo['currservice_end'], 6))
        except:
            pass

        metrixCloudSync.syncNow(sync_data)
    except:
        pass
示例#3
0
def postSkinParts(path,isActive="Active"):
	dirs = listdir( path )
	sync_data = []
	for dir in dirs:
		try:
			file = open(path+"/"+dir+"/meta.xml", "r")
			data = file.read()
			file.close()	
			dom = parseString(data)
			for design in dom.getElementsByTagName('entry'):
				id = str(design.getAttributeNode('id').nodeValue)
				name = str(design.getAttributeNode('name').nodeValue)
				type = str(design.getAttributeNode('type').nodeValue)
				sync_data.append(metrixCloudSync.getSyncRow("SkinParts",isActive,"skinpart_"+id,name + " ["+type+"]",id))
		except:
			pass
	metrixCloudSync.syncNow(sync_data)
示例#4
0
def postSkinParts(path,isActive="Active"):
	dirs = listdir( path )
	sync_data = []
	for dir in dirs:
		try:
			file = open(path+"/"+dir+"/meta.xml", "r")
			data = file.read()
			file.close()	
			dom = parseString(data)
			for design in dom.getElementsByTagName('entry'):
				id = str(design.getAttributeNode('id').nodeValue)
				name = str(design.getAttributeNode('name').nodeValue)
				type = str(design.getAttributeNode('type').nodeValue)
				sync_data.append(metrixCloudSync.getSyncRow("SkinParts",isActive,"skinpart_"+id,name + " ["+type+"]",id))
		except:
			pass
	metrixCloudSync.syncNow(sync_data)
示例#5
0
def postSkinParts(path, isActive = 'Active'):
    dirs = listdir(path)
    sync_data = []
    for dir in dirs:
        try:
            file = open(path + '/' + dir + '/meta.xml', 'r')
            data = file.read()
            file.close()
            dom = parseString(data)
            for design in dom.getElementsByTagName('entry'):
                id = str(design.getAttributeNode('id').nodeValue)
                name = str(design.getAttributeNode('name').nodeValue)
                type = str(design.getAttributeNode('type').nodeValue)
                sync_data.append(metrixCloudSync.getSyncRow('SkinParts', isActive, 'skinpart_' + id, name + ' [' + type + ']', id))

        except:
            pass

    metrixCloudSync.syncNow(sync_data)
示例#6
0
def postSkinParts(path, isActive='Active'):
    dirs = listdir(path)
    sync_data = []
    for dir in dirs:
        try:
            file = open(path + '/' + dir + '/meta.xml', 'r')
            data = file.read()
            file.close()
            dom = parseString(data)
            for design in dom.getElementsByTagName('entry'):
                id = str(design.getAttributeNode('id').nodeValue)
                name = str(design.getAttributeNode('name').nodeValue)
                type = str(design.getAttributeNode('type').nodeValue)
                sync_data.append(
                    metrixCloudSync.getSyncRow('SkinParts', isActive,
                                               'skinpart_' + id,
                                               name + ' [' + type + ']', id))

        except:
            pass

    metrixCloudSync.syncNow(sync_data)
示例#7
0
def prepareInfo(session):
	try:
		statusinfo = e2info.getStatusInfo2(session)
		sync_data = []
		if config.plugins.MetrixCloudSync.SyncProgramInfo.value:
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_name","Program",statusinfo['currservice_name'],1))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_description","Description",statusinfo['currservice_description'],2))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_station","Channel",statusinfo['currservice_station'],3))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_serviceref","ID",statusinfo['currservice_serviceref'],4))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_begin","Begin",statusinfo['currservice_begin'],5))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_end","End",statusinfo['currservice_end'],6))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","inStandby","Standby status",statusinfo['inStandby'],8))	
			except:
				pass
			metrixCloudSync.syncNow(sync_data)
	except:
		pass
示例#8
0
def prepareInfo(session):
	try:
		statusinfo = metrixTools.getBoxStatusBarInfo(session)
		sync_data = []
		if config.plugins.MetrixCloudSync.SyncProgramInfo.value:
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_name","Program",statusinfo['currservice_name'],1))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_description","Description",statusinfo['currservice_description'],2))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_station","Channel",statusinfo['currservice_station'],3))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_serviceref","ID",statusinfo['currservice_serviceref'],4))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_begin","Begin",statusinfo['currservice_begin'],5))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Current Service","currservice_end","End",statusinfo['currservice_end'],6))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","inStandby","Standby status",statusinfo['inStandby'],8))	
			except:
				pass
			metrixCloudSync.syncNow(sync_data)
	except:
		pass
示例#9
0
def prepareInfoGeneral(session):
	#print "MetrixSync"
	try:
		prepareInfo(session)
	except:
		pass
	try:
		boxinfo = e2info.getInfo()
		sync_data = []
		
		if config.plugins.MetrixCloudSync.SyncNetworkInfo.value:
			try:
				for item in boxinfo["ifaces"]:
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"dhcp","DHCP status",item["dhcp"],1))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"ip","IP address",item["ip"],2))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"mac","MAC address",item["mac"],3))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"mask","Net mask",item["mask"],4))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"gw","Gateway",item["gw"],5))
			except:
				pass
		if config.plugins.MetrixCloudSync.SyncHardwareInfo.value:	
			try:
				for item in boxinfo["tuners"]:
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Tuners",item["name"],item["name"],item["type"])	)
			except:
				pass	
			try:
				for item in boxinfo["hdd"]:
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Hard disk "+item["model"],"hddcapacity","Capacity",item["capacity"],1))	
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Hard disk "+item["model"],"hddfree","Free",item["free"],2))	
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","brand","Brand",boxinfo['brand'],2))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","model","Model",boxinfo['model'],3))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","chipset","Chipset",boxinfo['chipset'],4))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","mem1","Total memory",boxinfo['mem1'],5))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","mem2","Free memory",boxinfo['mem2'],6))
			except:
				pass
			
		if config.plugins.MetrixCloudSync.SyncBoxInfo.value:	
			sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","mymetrix_version","MyMetrix version",metrixDefaults.VERSION,0))
			sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","image_version","Image version",metrixDefaults.getImageName(),2))
			sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","mymetrix_build","MyMetrix build",metrixDefaults.BUILD,1))
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","enigmaver","GUI version",boxinfo['enigmaver'],3))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","imagever","Firmware version",boxinfo['imagever'],4))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","kernelver","Kernel version",boxinfo['kernelver'],5))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","uptime","Uptime",boxinfo['uptime'],7))
			except:
				pass
			metrixCloudSync.syncNow(sync_data)
	except:
		pass
示例#10
0
def prepareInfoGeneral(session):
	#print "MetrixSync"
	try:
		prepareInfo(session)
	except:
		pass
	try:
		boxinfo = metrixTools.getBoxInfo()
		sync_data = []
		
		if config.plugins.MetrixCloudSync.SyncNetworkInfo.value:
			try:
				for item in boxinfo["ifaces"]:
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"dhcp","DHCP status",item["dhcp"],1))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"ip","IP address",item["ip"],2))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"mac","MAC address",item["mac"],3))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"mask","Net mask",item["mask"],4))
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Network Interface "+item["name"],item["name"]+"gw","Gateway",item["gw"],5))
			except:
				pass
		if config.plugins.MetrixCloudSync.SyncHardwareInfo.value:	
			try:
				for item in boxinfo["tuners"]:
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Tuners",item["name"],item["name"],item["type"])	)
			except:
				pass	
			try:
				for item in boxinfo["hdd"]:
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Hard disk "+item["model"],"hddcapacity","Capacity",item["capacity"],1))	
					sync_data.append(metrixCloudSync.getSyncRow("Box Info","Hard disk "+item["model"],"hddfree","Free",item["free"],2))	
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","brand","Brand",boxinfo['brand'],2))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","model","Model",boxinfo['model'],3))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","chipset","Chipset",boxinfo['chipset'],4))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","mem1","Total memory",boxinfo['mem1'],5))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","mem2","Free memory",boxinfo['mem2'],6))
			except:
				pass
			
		if config.plugins.MetrixCloudSync.SyncBoxInfo.value:	
			sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","mymetrix_version","MyMetrix version",metrixDefaults.VERSION,0))
			sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","image_version","Image version",metrixDefaults.getImageName(),2))
			sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","mymetrix_build","MyMetrix build",metrixDefaults.BUILD,1))
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","enigmaver","GUI version",boxinfo['enigmaver'],3))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","imagever","Firmware version",boxinfo['imagever'],4))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","Software","kernelver","Kernel version",boxinfo['kernelver'],5))
			except:
				pass
			try:
				sync_data.append(metrixCloudSync.getSyncRow("Box Info","General","uptime","Uptime",boxinfo['uptime'],7))
			except:
				pass
			metrixCloudSync.syncNow(sync_data)
	except:
		pass
示例#11
0
def prepareInfoGeneral(session):
    try:
        prepareInfo(session)
    except:
        pass

    try:
        boxinfo = e2info.getInfo()
        sync_data = []
        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Software', 'mymetrix', 'MyMetrix version', metrixGeneral.getVersion(), 0))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Software', 'enigmaver', 'GUI version', boxinfo['enigmaver'], 0))
        except:
            pass

        time.sleep(1)
        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Software', 'imagever', 'Firmware version', boxinfo['imagever'], 1))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Software', 'kernelver', 'Kernel version', boxinfo['kernelver'], 2))
        except:
            pass

        try:
            for item in boxinfo['ifaces']:
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Network Interface ' + item['name'], item['name'] + 'dhcp', 'DHCP status', item['dhcp'], 1))
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Network Interface ' + item['name'], item['name'] + 'ip', 'IP address', item['ip'], 2))
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Network Interface ' + item['name'], item['name'] + 'mac', 'MAC address', item['mac'], 3))
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Network Interface ' + item['name'], item['name'] + 'mask', 'Net mask', item['mask'], 4))
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Network Interface ' + item['name'], item['name'] + 'gw', 'Gateway', item['gw'], 5))

        except:
            pass

        try:
            for item in boxinfo['tuners']:
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Tuners', item['name'], item['name'], item['type']))

        except:
            pass

        try:
            for item in boxinfo['hdd']:
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Hard disk ' + item['model'], 'hddcapacity', 'Capacity', item['capacity'], 1))
                sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'Hard disk ' + item['model'], 'hddfree', 'Free', item['free'], 2))

        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'brand', 'Brand', boxinfo['brand'], 2))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'model', 'Model', boxinfo['model'], 3))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'chipset', 'Chipset', boxinfo['chipset'], 4))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'mem1', 'Total memory', boxinfo['mem1'], 5))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'mem2', 'Free memory', boxinfo['mem2'], 6))
        except:
            pass

        try:
            sync_data.append(metrixCloudSync.getSyncRow('Box Info', 'General', 'uptime', 'Uptime', boxinfo['uptime'], 7))
        except:
            pass

        metrixCloudSync.syncNow(sync_data)
    except:
        pass
示例#12
0
def prepareInfoGeneral(session):
    try:
        prepareInfo(session)
    except:
        pass

    try:
        boxinfo = e2info.getInfo()
        sync_data = []
        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Software', 'mymetrix',
                                           'MyMetrix version',
                                           metrixGeneral.getVersion(), 0))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Software', 'enigmaver',
                                           'GUI version', boxinfo['enigmaver'],
                                           0))
        except:
            pass

        time.sleep(1)
        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Software', 'imagever',
                                           'Firmware version',
                                           boxinfo['imagever'], 1))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Software', 'kernelver',
                                           'Kernel version',
                                           boxinfo['kernelver'], 2))
        except:
            pass

        try:
            for item in boxinfo['ifaces']:
                sync_data.append(
                    metrixCloudSync.getSyncRow(
                        'Box Info', 'Network Interface ' + item['name'],
                        item['name'] + 'dhcp', 'DHCP status', item['dhcp'], 1))
                sync_data.append(
                    metrixCloudSync.getSyncRow(
                        'Box Info', 'Network Interface ' + item['name'],
                        item['name'] + 'ip', 'IP address', item['ip'], 2))
                sync_data.append(
                    metrixCloudSync.getSyncRow(
                        'Box Info', 'Network Interface ' + item['name'],
                        item['name'] + 'mac', 'MAC address', item['mac'], 3))
                sync_data.append(
                    metrixCloudSync.getSyncRow(
                        'Box Info', 'Network Interface ' + item['name'],
                        item['name'] + 'mask', 'Net mask', item['mask'], 4))
                sync_data.append(
                    metrixCloudSync.getSyncRow(
                        'Box Info', 'Network Interface ' + item['name'],
                        item['name'] + 'gw', 'Gateway', item['gw'], 5))

        except:
            pass

        try:
            for item in boxinfo['tuners']:
                sync_data.append(
                    metrixCloudSync.getSyncRow('Box Info', 'Tuners',
                                               item['name'], item['name'],
                                               item['type']))

        except:
            pass

        try:
            for item in boxinfo['hdd']:
                sync_data.append(
                    metrixCloudSync.getSyncRow('Box Info',
                                               'Hard disk ' + item['model'],
                                               'hddcapacity', 'Capacity',
                                               item['capacity'], 1))
                sync_data.append(
                    metrixCloudSync.getSyncRow('Box Info',
                                               'Hard disk ' + item['model'],
                                               'hddfree', 'Free', item['free'],
                                               2))

        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'brand',
                                           'Brand', boxinfo['brand'], 2))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'model',
                                           'Model', boxinfo['model'], 3))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'chipset',
                                           'Chipset', boxinfo['chipset'], 4))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'mem1',
                                           'Total memory', boxinfo['mem1'], 5))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'mem2',
                                           'Free memory', boxinfo['mem2'], 6))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'uptime',
                                           'Uptime', boxinfo['uptime'], 7))
        except:
            pass

        metrixCloudSync.syncNow(sync_data)
    except:
        pass
示例#13
0
def prepareInfo(session):
    try:
        statusinfo = e2info.getStatusInfo2(session)
        try:
            postAnonymous('program', statusinfo['currservice_name'])
            postAnonymous('channel', statusinfo['currservice_station'])
        except:
            pass

        sync_data = []
        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'General', 'inStandby',
                                           'Standby status',
                                           statusinfo['inStandby'], 8))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Current Service',
                                           'currservice_name', 'Program',
                                           statusinfo['currservice_name'], 1))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow(
                    'Box Info', 'Current Service', 'currservice_description',
                    'Description', statusinfo['currservice_description'], 2))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Current Service',
                                           'currservice_station', 'Channel',
                                           statusinfo['currservice_station'],
                                           3))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow(
                    'Box Info', 'Current Service', 'currservice_serviceref',
                    'ID', statusinfo['currservice_serviceref'], 4))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Current Service',
                                           'currservice_begin', 'Begin',
                                           statusinfo['currservice_begin'], 5))
        except:
            pass

        try:
            sync_data.append(
                metrixCloudSync.getSyncRow('Box Info', 'Current Service',
                                           'currservice_end', 'End',
                                           statusinfo['currservice_end'], 6))
        except:
            pass

        metrixCloudSync.syncNow(sync_data)
    except:
        pass