]> ###2026.03.23-beta - Beta build for testing ###Test PLG - Direct file installation from GitHub (no package build required) A plugin to create a dashboard widget that shows your active streams from Plex, Emby, and Jellyfin servers (TEST - direct install) # Remove old webUI files to prevent conflicts rm -f "&emhttp;/*.page" rm -f "&emhttp;/*.php" rm -f "&emhttp;/*.png" # Create plugin directories mkdir -p "&plgPATH;" mkdir -p "&emhttp;" &gitURL;/src/ActiveStreamsDashboard.page &gitURL;/src/ActiveStreamsSettings.page &gitURL;/src/activestreams_api.php &gitURL;/src/activestreams_servers.php &gitURL;/metadata/emby.png &gitURL;/metadata/jellyfin.png &gitURL;/metadata/plex.png &gitURL;/metadata/streams.png # Set permissions chmod -R 755 "&emhttp;" chmod 644 "&emhttp;"/* # Set Default Config if missing if [ ! -f "&plgPATH;/activestreams.cfg" ]; then echo "POLL_INTERVAL='5'" > "&plgPATH;/activestreams.cfg" echo "WIDGET_ICON='streams'" >> "&plgPATH;/activestreams.cfg" echo "WIDGET_TITLE='Active Streams'" >> "&plgPATH;/activestreams.cfg" fi # Create empty servers config if missing if [ ! -f "&plgPATH;/servers.json" ]; then echo "[]" > "&plgPATH;/servers.json" fi echo "" echo "-----------------------------------------------------------" echo " &name; (TEST) has been installed." echo " Version: &version;" echo " Files installed directly from GitHub (no package)" echo "-----------------------------------------------------------" echo "" echo "Uninstalling &name;..." rm -rf &emhttp; # Configuration files are preserved for future reinstallation # To manually remove configs, delete: &plgPATH;/activestreams.cfg and &plgPATH;/servers.json echo "" echo "-----------------------------------------------------------" echo " &name; has been uninstalled." echo " Your server configurations have been preserved at:" echo " &plgPATH;/" echo "" echo " To completely remove all settings, manually delete:" echo " &plgPATH;/activestreams.cfg" echo " &plgPATH;/servers.json" echo "-----------------------------------------------------------" echo ""