How marcells/streamdeck-microsoft365 works
This Stream Deck plugin lets users configure a Microsoft app and account, then displays unread-mail or upcoming-calendar information on a button and opens the related Outlook destination when pressed. The runtime separates shared Graph authentication and account coordination from the mail and calendar actions; both actions render status through shared SVG icon code. README describes account setup and the user-facing behaviors. Property-inspector HTML files are present but not sampled, so their action-specific wiring is not detailed here.
Main entry points: GraphAction{TSettings}.cs Graph action base · MailAction.cs Mail action · CalendarAction.cs Calendar action · GraphAuthenticator.cs Graph authenticator
Components 15
Plugin runtime
- Plugin entry
Elgato.Plugins.Microsoft365/Program.cs - Graph action base
Elgato.Plugins.Microsoft365/GraphAction{TSettings}.cs - Account notifier
Elgato.Plugins.Microsoft365/ActionNotifier.cs - Property inspector
Elgato.Plugins.Microsoft365/PropertyInspector - Inspector socket logic
Elgato.Plugins.Microsoft365/PropertyInspector/sdtools.common.js
Identity and accounts
- Graph authenticator
Elgato.Plugins.Microsoft365/GraphAuthenticator.cs - Microsoft identity
- Microsoft Graph
Stream Deck actions
- Mail action
Elgato.Plugins.Microsoft365/MailAction.cs - Calendar action
Elgato.Plugins.Microsoft365/CalendarAction.cs - Outlook destination
Button presentation
- SVG icon creator
Elgato.Plugins.Microsoft365/IconCreator.cs - Stream Deck button
Other components
- Stream Deck user
- Stream Deck host
Connections 21
- Stream Deck user → Stream Deck host: configures actions
README.md - Stream Deck host → Plugin entry: starts plugin
Elgato.Plugins.Microsoft365/Program.cs - Stream Deck host → Graph action base: dispatches action events
- Graph action base → Graph authenticator: initializes authentication
Elgato.Plugins.Microsoft365/GraphAction{TSettings}.cs - Graph authenticator → Microsoft identity: acquires tokens
Elgato.Plugins.Microsoft365/GraphAuthenticator.cs - Graph authenticator → Microsoft Graph: creates Graph client
Elgato.Plugins.Microsoft365/GraphAuthenticator.cs - Graph action base → Property inspector: sends account data
Elgato.Plugins.Microsoft365/GraphAction{TSettings}.cs - Property inspector → Inspector socket logic: loads shared scripts
- Inspector socket logic → Stream Deck host: sends settings
Elgato.Plugins.Microsoft365/PropertyInspector/sdtools.common.js - Graph action base → Account notifier: registers actions
Elgato.Plugins.Microsoft365/GraphAction{TSettings}.cs - Account notifier → Graph action base: notifies account removal
Elgato.Plugins.Microsoft365/ActionNotifier.cs - Graph action base → Mail action: hosts action
- Graph action base → Calendar action: hosts action
- Mail action → Microsoft Graph: queries unread mail
Elgato.Plugins.Microsoft365/MailAction.cs - Calendar action → Microsoft Graph: queries calendar events
Elgato.Plugins.Microsoft365/CalendarAction.cs - Mail action → SVG icon creator: creates status image
Elgato.Plugins.Microsoft365/MailAction.cs - Calendar action → SVG icon creator: creates status image
Elgato.Plugins.Microsoft365/CalendarAction.cs - SVG icon creator → Stream Deck button: sets button image
- Mail action → Outlook destination: opens inbox
README.md - Calendar action → Outlook destination: opens calendar
README.md - Stream Deck user → Property inspector: sets app and account
README.md