8 print "This application is deprecated. It will disappear in the future. Use ambctl"
10 parser = argparse.ArgumentParser()
11 parser.add_argument("get", help="{objectName}")
12 parser.add_argument("start", help="{startTime}")
13 parser.add_argument("end", help="{endTime}")
14 parser.add_argument("zone", help="{zone}")
16 args = parser.parse_args()
19 start = float(args.start)
23 bus = dbus.SystemBus()
24 managerObject = bus.get_object("org.automotive.message.broker", "/");
25 managerInterface = dbus.Interface(managerObject, "org.automotive.Manager")
27 object = managerInterface.FindObjectForZone(objectName, zone);
29 propertiesInterface = dbus.Interface(bus.get_object("org.automotive.message.broker", object),"org.automotive."+objectName)
30 print json.dumps(propertiesInterface.GetHistory(start,end),indent=2)