Skip to content

Commit b54d89a

Browse files
authored
Merge pull request #7 from stagetimerio/main
Release v2.0.0: Full rewrite of module for Companion v3 and Stagetimer API v1
2 parents e5f9de1 + 8097b32 commit b54d89a

29 files changed

+3516
-4166
lines changed

.github/workflows/release.yaml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1+
# nodejs
12
node_modules/
2-
package-lock.json
3+
package-lock.json
4+
5+
# companion
6+
/pkg
7+
/pkg.tgz
8+
9+
# other
10+
.DS_Store

.prettierignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.releaserc.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# 1.0.0 (2021-11-16)
1+
# Changelog
22

3+
## 2.0.0 (2023-07-05)
34

4-
### Features
5+
New Stagetimer.io module for Companion, rewritten from scratch for Companion v3.
6+
Uses the new Stagetimer.io API v1.
57

6-
* add initial actions and presets ([aedc551](https://github.com/bitfocus/companion-module-hermann-stagetimerio/commit/aedc55146a0a8ea7c04dc464c4606c5313116dd0))
8+
## 1.0.0 (2021-11-16)
9+
10+
Initial version of Stagetimer.io module for Companion.

HELP.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

LICENSE

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
1-
Copyright 2021 Johnny Estilles <johnny@estilles.com>
1+
MIT License
22

3-
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
3+
Copyright (c) 2022 Bitfocus AS - Open Source
44

5-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
# companion-module-hermann-stagetimerio
1+
# companion-module-stagetimerio-api
22

3-
![Build](https://img.shields.io/github/workflow/status/bitfocus/companion-module-hermann-stagetimerio/Release)
4-
![Version](https://img.shields.io/github/package-json/v/bitfocus/companion-module-hermann-stagetimerio)
5-
[![Compatibility](https://img.shields.io/badge/compabibility-Stagetimer%20API%20v0-blue)](https://stagetimer.io/docs/api/)
3+
This module lets you remotely control your [Stagetimer.io](https://stagetimer.io/) timers.
64

7-
This module will allow you to control your [Stagetimer.io](https://stagetimer.io/) using the [Stagetimer API](https://stagetimer.io/docs/api/).
8-
9-
See [HELP.md](./HELP.md) and [LICENSE](./LICENSE)
5+
See [HELP.md](./companion/HELP.md) for usage instructions.

companion/HELP.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
![Stagetimer.io logo](https://stagetimer.io/assets/logo-full-dark.svg)
2+
3+
# Stagetimer.io module for Companion
4+
5+
This module lets you remotely control [Stagetimer](https://stagetimer.io/) using Companion.
6+
7+
It connects using the [Stagetimer HTTP RPC API](https://stagetimer.io/docs/api-v1) and [Stagetimer Socket.io endpoint](https://stagetimer.io/docs/api-v1/#socket-io-endpoint).
8+
9+
## Requirements
10+
11+
To use this module you need:
12+
13+
- A Stagetimer account on a **paid plan** (*Pro* or *Premium*).
14+
- **Room ID**: The ID of the Stagetimer room you want to control.
15+
- **API Key**: A key that authorizes you to use the Stagetimer API. You can generate an API key on the controller page.
16+
17+
## Configuration
18+
19+
1. Click on the module in the Connections list to reveal the configuration pane.
20+
2. Enter your **Room ID** and **API Key** in the form and click *Save*.
21+
3. If the details you entered are correct, the module will connect. If the module fails to connect, please review the output in the Companion Logs tab.
22+
23+
## Presets
24+
25+
There are multiple presets available for the most common actions, ready to drop into your button layout.
26+
27+
## Actions
28+
29+
The following Actions are available:
30+
31+
- **Message: Hide**
32+
Hide a message in the room
33+
- **Message: Show**
34+
Show a message in the room
35+
- **Message: Toggle visibility**
36+
Show/hide a message in the room
37+
- **Timer: Reset**
38+
Reset a specific timer to original duration
39+
- **Timer: Start**
40+
Start or resume a specific timer in the room
41+
- **Timer: Stop**
42+
Stop a specific timer in the room
43+
- **Timer: Toggle playback**
44+
Toggle (start/stop) a specific timer in the room
45+
- **Transport: Add time**
46+
Add an amount of time to the highlighted timer in the room.
47+
- **Transport: Next**
48+
Highlight the next timer in the list
49+
- **Transport: Previous**
50+
Reset the highlighted timer in the room if it is running. If the highlighted timer is not running, highlight the previous timer in the list. Optionally, you can automatically start the previous timer once it's highlighted.
51+
- **Transport: Start**
52+
Start or resume the highlighted timer in the room
53+
- **Transport: Start/stop**
54+
Start/stop the highlighted timer in the room
55+
- **Transport: Stop**
56+
Stop the highlighted timer in the room
57+
- **Transport: Subtract time**
58+
Subtract an amount of time from the highlighted timer in the room.
59+
- **Utility: Get room**
60+
Get status of the room
61+
- **Utility: Get status**
62+
Get playback status of the room
63+
- **Utility: Test auth**
64+
Test connection and authentication
65+
- **Viewer: Disable blackout mode**
66+
Disable blackout mode in the room
67+
- **Viewer: Disable focus mode**
68+
Disable focus mode in the room
69+
- **Viewer: Enable blackout mode**
70+
Enable blackout mode in the room
71+
- **Viewer: Enable focus mode**
72+
Enable focus mode in the room
73+
- **Viewer: Flash the screen**
74+
Flashes the screen in the room. Can be used to grab the attention of speakers.
75+
- **Viewer: Stop flashing**
76+
Stops any flashing timers and message on the screen.
77+
- **Viewer: Toggle blackout mode**
78+
Toggle (enable/disable) blackout mode in the room
79+
- **Viewer: Toggle focus mode**
80+
Toggle (enable/disable) focus mode in the room
81+
82+
## Variables
83+
84+
- `$(stagetimer:currentTimerDuration)` - Timer duration
85+
- `$(stagetimer:currentTimerDurationAsMs)` - Timer duration (ms)
86+
- `$(stagetimer:currentTimerId)` - Timer ID
87+
- `$(stagetimer:currentTimerName)` - Timer name
88+
- `$(stagetimer:currentTimerNotes)` - Timer notes
89+
- `$(stagetimer:currentTimerRemaining)` - Timer remaining time
90+
- `$(stagetimer:currentTimerRemainingAsMs)` - Timer remaining time (ms)
91+
- `$(stagetimer:currentTimerSpeaker)` - Timer speaker
92+
- `$(stagetimer:roomId)` - Room ID
93+
- `$(stagetimer:roomName)` - Room name
94+
95+
## Feedbacks
96+
97+
- Blackout mode
98+
- Flashing
99+
- Focus mode
100+
- Message showing
101+
- Playback running
102+
- Playback stopped
103+
- Timer is over time
104+
- Timer is running and on time
105+
- Timer is showing red wrap-up warning
106+
- Timer is showing yellow wrap-up warning

0 commit comments

Comments
 (0)