-
-
Call an action
This method is called from within a plugin and sends the id, the scheduler determines what should then happen
Parameters:
Name |
Type |
Description |
id |
number
|
|
-
-
Cleans the configuration to store in the database
Parameters:
Name |
Type |
Description |
config |
Object
|
|
Returns:
Object
-
-
Loads plugin based parameters
These parameters are dynamic and aren't stored to the database, but are
needed for the front end. For example, the configuration description.
Parameters:
Name |
Type |
Description |
event |
Object
|
|
Returns:
Object
- Event object with plugin passed params
-
-
Register or unregister an event from being watched
Parameters:
Name |
Type |
Default |
Description |
config |
Object
|
|
|
add |
boolean
|
true
|
Add or remove the event from the watch schedule |
-
-
Get event index from an event ID
Parameters:
Name |
Type |
Description |
id |
number
|
|
Returns:
number
-
-
Get the bank and button number from a string
Parameters:
Name |
Type |
Description |
button |
string
|
|
Returns:
Array.<number>
-
-
Get the next unique event ID
Returns:
number
-
-
Gets the plugin from a request type
Parameters:
Name |
Type |
Description |
type |
string
|
|
Returns:
Object
-
-
Sends the event list to the callback
-
-
Initialize the configuration and start any schedules
-
-
Loads plugins from the schedule plugin directory
-
-
Replaced an event configuration
Parameters:
Name |
Type |
Description |
socket |
SocketIO
|
|
newData |
Object
|
|
cb |
scheduleSaveCb
|
|
-
-
Saves to database
-
-
-
-
Starts all event schedules
-
-
Updates a schedule
Minor updates and deletions
Parameters:
Name |
Type |
Description |
socket |
SocketIO
|
|
id |
number
|
Event ID |
newData |
Object
|
If deleted property is set, event is deleted |
cb |
scheduleUpdateCb
|
|