Giter Site home page Giter Site logo

maxi07 / teams-presence Goto Github PK

View Code? Open in Web Editor NEW
40.0 6.0 16.0 9.32 MB

Displays the current Microsoft Teams presence as LED with a raspberry pi.

License: MIT License

Python 97.71% Shell 2.29%
teams-presence microsoft-graph-api presence-types raspberry-pi phat unicorn-phat microsoft-teams

teams-presence's People

Contributors

machv avatar maxi07 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

teams-presence's Issues

Use with generic LED

How can this be adapted to work with a generic RGB LED hooked up via the GPIO?

Brightness argument does not work

The --brightness argument does not work. When doing values between 0.1 and 1, the script fails to run. It appears the argument is looking for an int type value instead of float.
image

The other issue with the brightness is there are 2 variables. brighness_led appears to be the variable adjusting the brightness while the --brightness arg changes the brightness variable. This fixed it for me:
if args.brightness: if args.brightness < 0.1 and args.brightness > 1: printerror("Value must be between 0.1 and 1") exit(5) brightness = args.brightness printwarning("Option: Brightness set to " + str(brightness))

Probably could do away with the 'brightness' variable all together.

error on authenticate

I keep getting
Failed to authenticate. 'access_token'
Failed authorizing, empty token (1/10). Will try again in 10 seconds.
Starting authentication workflow.

also, the appi id from the original page no longer works as well.

any ideas?

2FA option

I was wondering if this is possible to add the 2FA authentification ? I would like to use the application but my account is protected with Duo Mobile. Feel free to pm me on Discord at thebabeu#1709

Typo on page

There is a little error on the main page.
Under the header 'Run the script' there is a line:
sudo python3 teams-presency.py
but this should be:
sudo python3 teams-presence.py

Auto start teams-presence.py

I have this setup and working with a UnicorHD LED hat. But I have to SSH in to start teams-presence.py and it quits working if I close out of the SSH session. I'd like to have this auto start when the Pi boots, and run indefinitely. I've tried using auto-start like this https://www.raspberrypi-spy.co.uk/2015/02/how-to-autorun-a-python-script-on-raspberry-pi-boot/ but I have to connect with a monitor and keyboard to complete the azure config, and then after half an hour or so it will need me to re authenticate with microsoft. I've also tried setting up systemd to run the script as a service, but I wasn't successful with that either.

Is there a good way to handle auto starting teams-presence.py that will keep it running indefinately.

I love this project and have one setup outside my home office and at my work office.
Thanks!

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.