Giter Club home page Giter Club logo

teams-call's Introduction

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

import teams_call

isInCall = 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

Using this script in combination with ControlPlane to trigger the LED on status change.

Limitations

Supports macOS and Linux. For Windows, see this project.

teams-call's People

Contributors

aleagnelli avatar grambas avatar mre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

teams-call's Issues

Question: How to detect ringing?

First of all, thank you very much for your script - it works like a charm.

I am wondering if there is a possibility to detect the ringing (i.e. an incoming or outgoing call) and not just being in call or not. Do you know that? If not, any suggestions how to figure that out?

Thank you very much!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.