On 13.04.2012 21:29, Matthias Apitz wrote:
> El día Friday, April 13, 2012 a las 06:38:41PM +0200, Simon Busch escribió:
> 
>>> #                                                         
>>> # my own tests
>>> #                               
>>> -                               
>>>     trigger: Time(14, 40)                                  
>>>     actions:                                              
>>>             - Debug("my first test")
>>>             - Command('touch /tmp/action')
>>>
>>> Then I restarted the daemon with
>>>
>>> /etc/init.d/frameworkd restart
>>>
>>> the registration of the trigger is mentioned in the log file:
>>>
>>> # fgrep first frameworkd.log
>>> 2012.04.13 14:31:01.877 oeventsd             INFO     Created new rule :
>>> on Time(14:40) if And() then [Debug("my first test"),
>>> CommandAction(touch /tmp/action, {})]
>>> 2012.04.13 14:31:03.544 oeventsd.rule        INFO     enable rule : on
>>> Time(14:40) if And() then [Debug("my first test"), CommandAction(touch
>>> /tmp/action, {})]
>>>
>>> but nothing visible happened at 14:40h; I have also no proc 'oeventsd',
>>> maybe this is part of the problem?
>>
>> oeventsd is part of the frameworkd which you should see in the process list.
>>
>> As the TimeTrigger uses the org.freesmartphone.otimed service in a very
>> old version your example can't work. If you look at the source of the
>> TimeTrigger [1] and the specification of the API which is implemented in
>> the fsotdld service [2] there is no signal named "Minute" anyore.
> 
> Hi Simon,
> 
> Just to make sure: I only see frameworkd, but no oeventsd:
> 
> root@om-gta02 ~ # ps ax | egrep 'oevent|frame'
>   722 ?        Ss     0:26 python /usr/bin/frameworkd
> 
> and the URL for [1] and [2] was not visible in my mail; thanks for your
> feedback anyway;

Sorry for this. Here it goes.

[1]:
http://git.freesmartphone.org/?p=framework.git;a=blob;f=framework/subsystems/oeventsd/fso_triggers.py;h=8c1006c73f4c1fec78d25ae989749fb45dfa5932;hb=HEAD#l309
[2]:
http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Time.Alarm.html;hb=HEAD

regards,
Simon

-- 
Simon Busch - http://mm.gravedo.de/blog/
_______________________________________________
Shr-devel mailing list
Shr-devel@lists.shr-project.org
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to