Constructor
new Trackbone(timezone)
Parameters:
| Name | Type | Description |
|---|---|---|
timezone |
string | The timezone trackbone should use |
- Source:
Methods
(static) verifyTrackboneTag(bone) → {boolean}
Verifies the correct syntax of the trackbone tag
Parameters:
| Name | Type | Description |
|---|---|---|
bone |
string |
- Source:
Returns:
- Type
- boolean
fetchInstances(dayOfWeek, time)
Fetches all instances and creates the according schedules. In the end, creates a start/stop object with two entries, first one "shouldStart" is an array with all the InstanceIds of instances, that should be started and the second one "shouldStop" contains all InstanceIds of instances, that should stop.
Parameters:
| Name | Type | Description |
|---|---|---|
dayOfWeek |
The ISO day of the week (1-7) |
|
time |
The time in format HH:mm |
- Source:
run() → {Promise}
Runs trackbone
- Source:
Returns:
- Type
- Promise