Sign in
nest-open-source
/
nest-learning-thermostat
/
5.5
/
connman
/
refs/heads/master
/
.
/
connman
/
test
/
get-global-timeservers
blob: adcf175a27e0c52c59a55ff4a0b9470d6995301b [
file
] [
log
] [
blame
] [
edit
]
#!/usr/bin/python
import
dbus
bus
=
dbus
.
SystemBus
()
clock
=
dbus
.
Interface
(
bus
.
get_object
(
'net.connman'
,
'/'
),
'net.connman.Clock'
)
properties
=
clock
.
GetProperties
()
print
"Timeserver is %s"
%
(
properties
[
"Timeservers"
])