Skip to content

Instantly share code, notes, and snippets.

View llamafilm's full-sized avatar

Elliott Balsley llamafilm

View GitHub Profile
-- Qsys Text Controller to print a log message every time an AES67 or Atmos receiver input changes
Components=Component.GetComponents()
for _,v in pairs(Components) do
if v.Type == 'input_box' then
local rx = Component.New(v.Name)
rx['sdp.lan.a'].EventHandler = function(ctl)
print(v.Name .. ' SDP LAN A changed to ' .. ctl.String)
Log.Message(v.Name .. ' SDP LAN A changed to ' .. ctl.String)
lyngdorf_info,audio_input="HDMI",audio_type="Dolby ATMOS 0.0.0",device="MP-60",interface="IP",room_perfect_position="Bypass",room_perfect_voicing="Neutral",active_source="HDMI 1",video_type="2160p60 YCbCr 4:2:0",zone_b_source="Follow Main",zone_b_stream_type="None",zone_b_audio_input="HDMI",stream_type="None",video_input="HDMI 1",hdmi_main_output="HDMI Out 1" value=1
lyngdorf_mute_status zone_b=1,main=0
lyngdorf_power_status zone_b=0,main=1
lyngdorf_lipsync value=0
lyngdorf_loudness status=0
lyngdorf_volume max_vol=0,trim_bass=0,trim_center=0,trim_height=0,trim_lfe=0,trim_surrs=0,trim_treble=0,zone_b_volume=-55,volume=0
@llamafilm
llamafilm / debug.recipe.yaml
Created July 17, 2024 01:28
Autopkg recipe that fails when you run it a second time
Identifier: debug
Input:
NAME: telegraf
Process:
- Processor: URLDownloader
Arguments:
url: https://dl.influxdata.com/telegraf/releases/telegraf-1.31.1_darwin_arm64.dmg
- Processor: PkgRootCreator
Arguments:
pkgroot: '%RECIPE_CACHE_DIR%/payload'
@llamafilm
llamafilm / barco_projector_test.md
Created April 8, 2024 15:16
Telegraf config for Barco projector

This is the base SNMP config for Barco projector, with string fields recorded as tags.

[agent]
  omit_hostname = true
  snmp_translator = "gosmi"
  quiet = true

[[inputs.snmp]]
  alias = "5913"
@llamafilm
llamafilm / Dockerfile
Last active March 26, 2024 01:32
LG WebSocket connection
FROM ubuntu:latest
RUN apt update && apt install -y \
git \
lua5.3 \
liblua5.3-dev \
luarocks \
libssl-dev \
nano
RUN luarocks install http
@llamafilm
llamafilm / sunset_appreciation.gs
Created December 18, 2023 05:47
Create google calendar event for sunset appreciation each day
/**
* Creates an event in the user's default calendar.
* @see https://developers.google.com/calendar/api/v3/reference/events/insert
*/
function createEvent(start) {
const calendarId = 'primary';
// make end time 15 minutes after start
var m = 15; // minutes
var end = new Date();
@llamafilm
llamafilm / QDP-faker.py
Created November 27, 2023 22:23
QDP faker
import time
import socket
import requests
import xml.etree.ElementTree as ET
# Tested with Qsys Core Nano version 9.9.0
# Packets captured from TSC-80-G2 using tcpdump
# This looping code allows the Core to discover a touchpanel on a network without multicast
CORE_IP = 'xxx.xxx.xxx.xxx'
@llamafilm
llamafilm / python-sap.py
Created January 16, 2022 03:29
unfinished partial implementation of SAP (Session Announcement Protocol)
import socket
import time
import sdp_transform
# unfinished partial implementation of SAP (Session Announcement Protocol)
# https://datatracker.ietf.org/doc/html/rfc2974
MCAST_GRP = '239.255.255.255'
MCAST_PORT = 9875
MCAST_TTL = 255

Installing a Colorfront central linux database

Instructions are current for Transkoder 2020.
This has been tested on Ubuntu 20.04, but you can adapt to other distributions.

Install LAMPP web server

Supported versions:

  • PHP 7.1 - 7.2
  • MariaDB 10.1 - 10.3
  • Apache 2.4

Installing a Colorfront central linux database

Instructions are current for Transkoder 2020.
This has been tested on CentOS 7.9, but you can adapt to other distributions. Throughout this guide, the # symbol signifies running a shell command as root.

Install LAMPP web server

Supported versions:

  • PHP 7.1 - 7.2
  • MariaDB 10.1 - 10.4
  • Apache 2.4