mirror of git://git.sysmocom.de/ofono
Add some extra pretty decoding to monitor script
This commit is contained in:
parent
fa3fa12403
commit
640d2c95b9
|
@ -7,7 +7,15 @@ import dbus.mainloop.glib
|
||||||
|
|
||||||
def property_changed(name, value, path, interface):
|
def property_changed(name, value, path, interface):
|
||||||
iface = interface[interface.rfind(".") + 1:]
|
iface = interface[interface.rfind(".") + 1:]
|
||||||
if name in ["MobileNetworkCodeLength",
|
if name in ["Modems", "Interfaces",
|
||||||
|
"Technologies",
|
||||||
|
"SubscriberNumbers",
|
||||||
|
"AvailableOperators",
|
||||||
|
"PreferredLanguages"]:
|
||||||
|
val = ""
|
||||||
|
for i in value:
|
||||||
|
val += i + " "
|
||||||
|
elif name in ["MobileNetworkCodeLength",
|
||||||
"VoicemailMessageCount"]:
|
"VoicemailMessageCount"]:
|
||||||
val = int(value)
|
val = int(value)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue