Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
core rebroadcast.sh
1.1 kB ยท 30 lines
Shell
12345678910111213141516171819202122232425262728293031#!/bin/bashecho "๐ฌ Rebroadcasting updated playlist (single item: 3-kidlisp-tests)"cd /workspaces/aesthetic-computer
echo "๐ก Fetching updated playlist..."curl -s "https://local.aesthetic.computer/api/playlist" > /tmp/current-playlist.json
echo "๐ Playlist items count:"cat /tmp/current-playlist.json | jq '.items | length'
echo "๐ Current item:"cat /tmp/current-playlist.json | jq -r '.items[0].source'
echo "๐ง Creating broadcast payload..."cat /tmp/current-playlist.json | jq '{"dp1_call": ., "intent": {"action": "now_display"}}' > /tmp/broadcast-payload.json
echo "๐ฆ Payload size: $(wc -c < /tmp/broadcast-payload.json) bytes"
echo "๐ Broadcasting to TV cast..."if [ -n "$FF1_CAST_API_KEY" ]; then curl -X POST \ "https://tv-cast-coordination.autonomy-system.workers.dev/api/cast?topicID=2Ps0iMbsZUvrXOFavFhrFwVmRmrzJD0rZ" \ -H "content-type: application/json" \ -H "API-KEY: $FF1_CAST_API_KEY" \ -d @/tmp/broadcast-payload.json echo "" echo "โ
Broadcast complete!"else echo "โ FF1_CAST_API_KEY not set"fi