Monorepo for Aesthetic.Computer
aesthetic.computer
1#!/bin/bash
2echo "🎬 Rebroadcasting updated playlist (single item: 3-kidlisp-tests)"
3cd /workspaces/aesthetic-computer
4
5echo "📡 Fetching updated playlist..."
6curl -s "https://local.aesthetic.computer/api/playlist" > /tmp/current-playlist.json
7
8echo "📊 Playlist items count:"
9cat /tmp/current-playlist.json | jq '.items | length'
10
11echo "📝 Current item:"
12cat /tmp/current-playlist.json | jq -r '.items[0].source'
13
14echo "🔧 Creating broadcast payload..."
15cat /tmp/current-playlist.json | jq '{"dp1_call": ., "intent": {"action": "now_display"}}' > /tmp/broadcast-payload.json
16
17echo "📦 Payload size: $(wc -c < /tmp/broadcast-payload.json) bytes"
18
19echo "🚀 Broadcasting to TV cast..."
20if [ -n "$FF1_CAST_API_KEY" ]; then
21 curl -X POST \
22 "https://tv-cast-coordination.autonomy-system.workers.dev/api/cast?topicID=2Ps0iMbsZUvrXOFavFhrFwVmRmrzJD0rZ" \
23 -H "content-type: application/json" \
24 -H "API-KEY: $FF1_CAST_API_KEY" \
25 -d @/tmp/broadcast-payload.json
26 echo ""
27 echo "✅ Broadcast complete!"
28else
29 echo "❌ FF1_CAST_API_KEY not set"
30fi