RealTimeClock

Michael 'Mickey' Lauer mickey at vanille-media.de
Thu Mar 19 15:20:44 CET 2009


On Thursday 19 March 2009 15:12:44 Jozef Mlich wrote:
> On Thu, 2009-03-19 at 13:42 +0100, Sven Klomp wrote:
> > #!/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 think, that this is very useful code snippet. Is there any wiki page
> desired for gathering of this kind of tutorial code?

The FSO wiki should be the canonical place for these things, e.g. below 
http://www.freesmartphone.org/index.php/Tutorials

-- 
:M:




More information about the devel mailing list