A Christmas Fire Project

xrayspx's picture
Music: 

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:

  • Holiday Yule Log - by PES. This is stop motion candy corn fire with pretzel logs.
  • Cacafire - an ASCII art fire demo using libcaca, an ASCII art library.
  • Some "4k cozy fireplace" that looked pleasant and advertised No AI (Seems to have disappeared?)
  • The original WPIX fire from 1966*
  • DNA Lounge Fire*
  • * - COMING SOON