Giter Club home page Giter Club logo

m5zoomctl's Introduction

これはなに

M5Stackのボタンでリモート会議アプリZoomの音声や映像のON/OFFを切り替えるものです。MacOS専用です。

なにがいいの

Zoomのアプリがアクティブでないときも、ボタンを押せば音声や映像のON/OFFを切り替えることができます。

Zoomで会議をしているとき、自身の音声や映像をOFFにして、別の作業をしていることがあります。そのときに会議の参加者から話しかけられると、 「Zoomをフォアグラウンドに持ってくる」「ミュートボタンやビデオの開始ボタンを押す」というように作業が必要になります。焦るとこれがなかなかうまくいきません。 そんなときにこのボタンが有効です。

どうやって動かすの

zoomctl.py

Python3のプログラムです。Python3.7とFlaskフレームワークで動きます。Flaskがインストールされていない場合は、pip install flaskでインストールしてください。 動かし方は以下のとおりです。ポート番号5000でWebサーバが立ち上がります。セキュリティには一切の配慮がありません。

> python3 zoomctl.py

M5Stack

M5Stackのプログラムがあります。main.hSSIDPASSWDにお使いのWiFiアクセスポイントとそのパスワードを、SERVERにはzoomctl.pyを動かしているPCのIPアドレスやドメイン解決できる名前を入れてください。

PlatformIOなどでコンパイルしてお手持ちのM5Stackにアップロードしてください。

M5Stack上の左のボタンを押すとMuteのON/OFFが、右のボタンを押すとカメラのON/OFFが切り替わります。

どういう仕組み?

M5Stack -(HTTP GET Request)-> zoomctl.py -(JXA)-> Zoom という流れで制御しています。 zoomctl.pyはos.system()を使ってJXAを実行するコマンドを呼び出しています。JXAでは、(1) Zoom.usという名前のアプリをフォアグラウンドに持ってくる、(2) キーボードショートカットを送る、という処理を実行しています。JXAはAppleScriptのJavascript版だと思ってください。

m5zoomctl's People

Contributors

matsumur avatar

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.