RealTimeClock

Michael 'Mickey' Lauer mickey at vanille-media.de
Thu Mar 19 14:05:05 CET 2009


On Thursday 19 March 2009 13:42:09 Sven Klomp wrote:
> 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 ;-)

Congrats.

> #!/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)

I wonder why it takes a string as opposed to a double.

If you think double is more appropriate, feel free to open a bug report 
(trac.fso)
-- 
:M:




More information about the devel mailing list