I don't know what means open my flap, but here is a general method to execute something only at certain times.
You will have to use a python script, and translate your action into python.
to do this, right click on your action Open My Flap, select copy as python
Had a new action : Python Script.
in the script editor, paste the previous copied action.
Disables the original action, and see if it's working.
Now, just add the needed code to filter based on time of the day :
Code: Select all
import time
now = time.localtime()
if now.tm_hour in [20,21,22,23,0,1,2]:
put here the code needed to open your flap
Here is a sample action :
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1610">
<Action>
EventGhost.PythonScript(u"import time\ntime = time.localtime()\nif time.tm_hour in [20,21,22,23,0,1,2]:\n eg.plugins.EventGhost.ShowOSD(u'Open My Flap', u'0;-64;0;0;0;700;0;0;0;0;3;2;1;34;Arial', (0, 255, 0), (0, 0, 0), 4, (0, 0), 0, 3.0, False)")
</Action>
</EventGhost>