Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mre/teams-call
Shell script to detect when you're in a Microsoft Teams Call. Supports Linux and macOS.
https://github.com/mre/teams-call
meeting microsoft microsoft-teams status teams
Last synced: 3 months ago
JSON representation
Shell script to detect when you're in a Microsoft Teams Call. Supports Linux and macOS.
- Host: GitHub
- URL: https://github.com/mre/teams-call
- Owner: mre
- License: mit
- Created: 2020-10-26T23:29:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-19T14:59:14.000Z (about 2 years ago)
- Last Synced: 2024-10-04T11:54:23.834Z (4 months ago)
- Topics: meeting, microsoft, microsoft-teams, status, teams
- Language: Python
- Homepage:
- Size: 146 KB
- Stars: 69
- Watchers: 4
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# teams-call
Shell script to detect when you're on a Microsoft Teams Call.
## Bash script
When calling the script it will exit with
* 0 if you're on a call
* 1 if you're not## Python script
```python
import teams_callisInCall = teams_call.isInCall()
```
## How?You don't wanna know.
## Seriously... how?
When I connect to a call I see
`eventData: s::;m::1;a::1` in ~/Library/Application\ Support/Microsoft/Teams/logs.txt and when I disconnect it writes `eventData: s::;m::1;a::3`.
Sad, but you asked for it.
Couldn't find any other way.
Specifically, the GraphQL API for checking the call presence is deprecated since v1.0 and I didn't want to scrape the network traffic or screengrab the status icon.* eventData: s::;m::1;a::0 call in call + screen is shared
* eventData: s::;m::1;a::1 call started / joined
* eventData: s::;m::1;a::3 call left## Why?
I couldn't find a script that does this.
Using it to indicate that I'm busy with a status LED outside the office.![LED in front of my office](led.jpeg)
Using this script in combination with [ControlPlane](https://www.controlplaneapp.com/) to trigger the LED on status change.
## Limitations
Supports macOS and Linux. For Windows, see [this project](https://github.com/EBOOZ/TeamsStatus).