Skip to content

Sets your Microsoft Teams status message to your currently scrobbling track on Last.fm.

License

Notifications You must be signed in to change notification settings

plusreed/MsTeamsLastFmStatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MsTeamsLastFmStatus

Sets your Microsoft Teams status message to your currently scrobbling track on Last.fm.

Example showing me listening to Gila Monster by King Gizzard & The Lizard Wizard

Setup

# if not already installed, install Microsoft.Graph.Beta
Install-Module Microsoft.Graph.Beta -Scope CurrentUser
# either set LAST_FM_API_KEY in your environment variables, or:
$env:LAST_FM_API_KEY = "your_api_key_here"
.\LastFmStatus.ps1 -LastFmUser "plusreed" # -SleepTime <int32> to adjust the Last.fm API polling rate. Default is 10.
# Press Ctrl + C to end the script and disconnect from Microsoft Graph.

Dependencies

You need Microsoft.Graph.Beta specifically for this to work. This is due to the fact that the Microsoft Graph API for user status messages is still in beta. You also need to be able to grant applications access to your Microsoft 365 account with the User.ReadWrite and Presence.ReadWrite scopes (typically, you will be able to do this just fine.)

You also need a Last.fm API key. You can get one here.

License

MIT

About

Sets your Microsoft Teams status message to your currently scrobbling track on Last.fm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published