Giter VIP home page Giter VIP logo

onairsign's Introduction

OnAirSign

The goal of this project is to rig up a smart plug to reflect my meeting status at work. This way my wife knows if I'm on a video call or not from a distance.

The Smart Plug is controlled with IFTTT. A GET request triggers the action, and the Smart Life integration toggles the switch. I store the API key needed to send these GET requests in a config.py file.

This was my first largely ChatGPT driven programming project. I have not programmed in Python in several years. The main thing I had no idea how to do was to determine whether or not I am in a meeting. My original request to ChatGPT was to provide a way to check if my camera was on. It recommended the psutil package, which allowed me to iterate through a list of processes running on my Mac. However, what it told me to search for in the processes list was completely wrong. The process never appeared regardless of whether I was using my camera or not. By comparing the list of processes when I was on a Zoom call with the processes when I was not, I was able to find a hacky workaround. The process titled 'CptHost' appears to only be active when I'm connected to a Zoom call. I have no idea what this process is so I am not sure if I'll ever run into a situation where this triggers without me being on Zoom. Also unfortunately, this doesn't work for other video conferencing calls (e.g. Google Meet). My original intent was to trigger the action based off either of my cameras being used (built in or USB), so if anyone has any tips on how to improve that, I'm all ears.

To run this constantly in the background I use the terminal command nohup python3 plugcontroller.py &. I haven't had any problems with the program dying as long as my computer isn't powered off

onairsign's People

Contributors

jntrcs avatar

Watchers

 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.