andrew-codes / playnite-web

Self-hosted Playnite companion web app; offering remote control, automation, sharing what’s in your library with friends.
GNU Affero General Public License v3.0
27 stars 7 forks source link

Real time notification when Playnite is running #569

Open andrew-codes opened 4 days ago

andrew-codes commented 4 days ago

In order to aid in automation of starting, stopping and restarting games, it would be nice to be notified when Playnite starts and stops running. This will allow automation to know whether Playnite is running or not on the gaming host machine.

cvele commented 3 days ago

There is already a "connected" topic, but the message is not persistent. This could potentially be resolved by simply making that message persistent. However, I’m concerned about how the plugin will behave when MQTT goes offline (due to restarts, network issues, etc.), though that's a separate issue. I've already submitted a brief PR to try and address this.