A Christmas Fire Project
Crystal Method - Trip Like I Do
Here's a quick demo of a video fireplace I made yesterday for Natalie. Some of her improvised decorations didn't make it this year, so I stuck a TV in the fireplace with a Raspberry Pi 3 and now we have fire again.
Sorry for the shit quality of the cellphone video, but whatever you can see well enough.
The loop that is running this is below. The if statement is checking to make sure we're at the actual console rather than connecting over ssh. The while loop is using the timeout command to rotate between three video sources, changing every 120 seconds. This gives flexibility to add more fireplace videos as we find them.
#!/bin/bash
trm=$(tty)
if [ "$trm" = "/dev/tty1" ]
then
while :; do
timeout --foreground 120 mpvĀ --really-quiet ~/yt-fireplace-ox3pm7bRK8I.webm
timeout --foreground 120 cacafire
timeout --foreground 120 cacademo
done
else echo "Not Local"
fi
The current list of videos in my rotation - updated as we go:
* - COMING SOON
- xrayspx's blog
- Log in to post comments
- 56 reads

