mirror of
https://github.com/shadoll/playing_now_2_mm.git
synced 2025-12-20 06:29:52 +00:00
90bd6c66abe5847e8660ade37181b51d9a239b7c
Music Status Updater
This is a Python application that fetches the currently playing track from either Apple Music or Spotify and sets it as your status on Mattermost.
Features
- Fetches current playing track from
Apple MusicorSpotify - Sets the track as your status on Mattermost
- Using Appscript and Osascript for Music Track Information on MacOS
Dependencies
- MacOS
- Python 3
- Apple Music or Spotify
- Mattermost
Environment Variables
MUSIC_APP: This variable determines which music service the application will fetch the currently playing track from. It can be either apple_music or spotify.
How to Run
- Clone the repository
- Install the dependencies with
pip install -r requirements.txt - Set Mattermost token and host in
.env - Set the
MUSIC_APPenvironment variable to your preferred music service - Run the application with
python music_app.py
Note
The application runs in an infinite loop, constantly checking for changes in the currently playing track and updating your Mattermost status accordingly.
Description
Languages
Python
100%