microsoft / hack-together

Hack Together: Microsoft Graph and .NET is a hackathon for .NET developers to learn Microsoft Graph and Microsoft 365.
MIT License
524 stars 85 forks source link

Project: Presence to Home Assistant #56

Open Tanddant opened 1 year ago

Tanddant commented 1 year ago

Project name

Presence to Home Assistant

Description

I built an system tray app (windows forms) that using Microsoft Graph and Home Assistants API controls a the color of a lamp that sits outside my office - that way others know before entering the office if I'm in a call or not

The code is designed to be easily reused to do different things, the PresenceWatcher that is responsable for keeping an eye on they users presence accepts multiple subscribers, so if you wanted to control several lights, you could do that, if you wanted to integrate to a timetracking system you could do that, possibilities are endless

Repo URL

https://github.com/Tanddant/Teams-Presence-to-Home-Assistant

Team members

Tanddant

waldekmastykarz commented 1 year ago

Very cool! Thank you for sharing your hack with us! 👏

svrooij commented 1 year ago

This sound really promising! Awesome experiment with the TrayApp, I never got my mind around that. It's just console apps for me.

Tanddant commented 1 year ago

Pretty sure my Trayicon implementation would terrify people who know what they're doing 😂

First time ever even creating a windows form app, but got it working!

aycabas commented 1 year ago

Hey @Tanddant awesome project! Would you mind recording a short video walkthrough of your hack? Any format will work. It's not required for the hackathon but it would help us showcase your work both internally at Microsoft and publicly in the community. 😊

Tanddant commented 1 year ago

Hi @aycabas,

When you say a walkthrough, what do you mean, like walkthrough of the code or? 😊

I made a demo video initially demonstrating what it does, but I'm assuming you're looking for something else? - I'm more than happy to help

https://www.youtube.com/watch?v=v89xS8rHM74

waldekmastykarz commented 1 year ago

This video is good @Tanddant! 👍

Tanddant commented 1 year ago

@waldekmastykarz Awesome, here by my full consent to use any random tool to rip the video from YouTube 😅 - let me know if you want the raw video, the file is rather large, so didn't wanna toss it in the repo

svrooij commented 1 year ago

https://support.microsoft.com/en-us/office/connect-third-party-devices-to-teams-aabca9f2-47bb-407f-9f9b-81a104a883d6 👀

Local api for meeting status.