You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-6Lines changed: 41 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,9 @@ Plugin to "Launch" linux applications and scripts
58
58
}
59
59
```
60
60
61
-
### How to schedule an application/script
61
+
### How to schedule an application/script with relative time
62
62
63
-
1. Add schedule relative time information to the Launcher.json in the HH:MM.SS format (Hour:Minute.Second)
63
+
1. Add 'relative' time information to the Launcher.json in the HH:MM.SS format (Hour:Minute.Second)
64
64
```
65
65
"configuration": {
66
66
"command":"du",
@@ -69,15 +69,46 @@ Plugin to "Launch" linux applications and scripts
69
69
{ "option": "-h"}
70
70
],
71
71
"schedule": {
72
-
"absolute": false,
72
+
"mode": "relative",
73
73
"time": "06:04.10"
74
74
}
75
75
}
76
76
```
77
77
78
78
Note:
79
-
1. If field "absolute" is false or not set, it will treat the time as relative
79
+
1. If field "mode" is empty or not set, it will treat the time as relative
80
80
2. If relative time value is "00:00.00"/invalid format/not set, the launcher will ignore the given time and launch the application at the launcher activation time itself.
81
+
3. If time format given is
82
+
a. "XX", treat it as SS
83
+
b. "XX.XX" treat it as MM.SS
84
+
85
+
### How to schedule an application/script with absolute time
86
+
87
+
1. Add 'absolute' time information to the Launcher.json in the HH:MM.SS format (Hour:Minute.Second)
88
+
```
89
+
"configuration": {
90
+
"command":"du",
91
+
"parameters": [
92
+
{ "option": "-a", "value": "/etc" },
93
+
{ "option": "-h"}
94
+
],
95
+
"schedule": {
96
+
"mode": "absolute",
97
+
"time": "06:04.10"
98
+
}
99
+
}
100
+
```
101
+
102
+
Note:
103
+
1. If absolute time value is invalid format/not set, the launcher will ignore the given time and launch the application at the launcher activation time itself.
104
+
2. If time format given is
105
+
a. "XX", treat it as SS, and schedule the application launch at next SSth time. i.e. if absolute time given is 25 and current time is 08:10:45, then the application will be
106
+
launched at 08:11:25
107
+
b. "XX.XX" treat it as MM.SS, and scedule the application launch at next MM:SSth time. i.e. if absolute time given is 30.20 and current time is 08:10:45, then the application will be
108
+
launched at 09:30:20
109
+
c. "00:00.00" treat it as midnight.
110
+
3. If absolute time given is less than the current time, it will launch the application the same time at the subsequent day. i.e, if absolute time given is 13:00:00, it will launch
111
+
the application at same time at the next day.
81
112
82
113
### How to schedule an application/script to run in an interval
83
114
@@ -90,14 +121,18 @@ Note:
90
121
{ "option": "-h"}
91
122
],
92
123
"schedule": {
93
-
"absolute": false,
124
+
"mode": "interval",
94
125
"time": "06:04.10",
95
126
"interval": "00:40.10"
96
127
}
97
128
}
98
129
```
99
130
100
-
Note: If interval value is "00:00.00"/invalid format/not set, the launcher will treat it as invalid value and ignore the interval time settings.
131
+
Note:
132
+
1. If interval value is "00:00.00"/invalid format/not set, the launcher will treat it as invalid value and ignore the interval time settings.
133
+
2. If mode is interval (absolute with interval) and interval is set, it will identify next matching time and schedule application launch to that time.
134
+
i.e, if the absolute time given is 04:00:00, current time is 05:10:00 and interval is 00:30:00, then next scheduling time will be 05:30:00 (will be identified from the next intervals - 04:30:00, 05:00:00, 05:30:00)
135
+
3. If mode is relative or absolute, the interval time will be taken only for the subsequent scheduling
0 commit comments