- Download script
- Install mqtt-wrapper
pip install mqtt-wrapper
- Open OBS Studio
- In OBS Studio add a script (Tools -> Scripts)
- Configure script parameters (my base channel is homeassistant and my sensor name is obs, creating the path homeassistant/sensor/obs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on getiTunesCurrentSong() | |
tell application "iTunes" | |
try | |
if not (exists current track) then return "" | |
return (get name of current track) & " - " & (get artist of current track) | |
end try | |
end tell | |
end getiTunesCurrentSong | |
using terms from application "Messages" |