Profiles: auto-exec time interval#13399
Conversation
|
Have not looked into your code yet, but maybe you want to add a sunrise and sunset time too ;) (If that is the case, I could add some callbacks to the autowarmth plugin to get the dates directly.) |
|
Thanks, I look sometimes at your plugin when developing date-time features. |
|
Sorry, didn't have time yet to test this. Will do soon |
|
@hius07 Update: after both |
|
It didn't work for me in my use case: Otherwise, with no screen unlock gesture, it works great! Tested various time intervals - the all work. @hius07 Do you think the above issue can be fixed? |
Can you test with replaced koreader/frontend/dispatcher.lua Also asking @NiLuJe and @yparitcher: koreader/frontend/dispatcher.lua Line 1166 in 475280a |
|
Which ones? |
|
Any :) |
Thanks, @hius07 ! That did it, it works now. Other dispatcher events, like Quick Menu profiles, didn't break |
|
@hius07 |
|
I'm not sure yet, need to read more about events. |
|
Please restore original dispatcher.lua and use the new trigger from #13430. |
I think you probably meant to post that somewhere else? |
|
It's for @mergen3107 |
|
Some questions for the user guide:
|
|
It's a filter applicable to any trigger. |
|
So this is not a trigger but a limiter for the profiles? Something like:
These sound more like a restriction (negative action) instead of a trigger (positive action) so less chance to mix up with triggers. |
|
You could consider"only within" instead of "execute within"? |
+1
So in addition to Frenzie's suggested correction, I also suggest removing the second separator so the first line divides profile settings/triggers properly. |
Profiles: auto-exec time interval

To turn the light on in the night only:
This change is