RealTimeClock

Sven Klomp sven at klomp.de
Thu Mar 19 13:42:09 CET 2009


On Thursday 19 March 2009 13:07:03 Sven Klomp wrote:
> OK, \'1237463865\' does the trick:
> mdbus -s org.freesmartphone.odeviced /org/freesmartphone/Device/RealTimeClock/0 org.freesmartphone.Device.RealTimeClock.SetWakeupTime \'1237463865.12\'
> 
> However, I'm still not able to set it with Python...

Finally, it works with Python ;-)

#!/usr/bin/env python

import dbus
import time

# Wakeup in 60 seconds
wakeuptime=str(time.time()+60)

system_bus = dbus.SystemBus()

rtc_object = system_bus.get_object('org.freesmartphone.odeviced', '/org/freesmartphone/Device/RealTimeClock/0')
rtc_interface = dbus.Interface(rtc_object, dbus_interface='org.freesmartphone.Device.RealTimeClock')
rtc_interface.SetWakeupTime(wakeuptime)

Sven



More information about the devel mailing list