This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DURATION=120\n | |
STRING1=Now: \n | |
STRING2= by \n | |
FORMAT_RT=STRING1+TITLE+STRING2+ARTIST\n | |
AUTO_RT=Y\n | |
AUTO_RTPLUS=Y\n | |
RT_DELAY=3\n | |
TITLE=This is Living\n | |
ARTIST=Young and Free\n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
def updateRDS(comPort, title, artist, duration): | |
serialConnection = serial.Serial(comPort) | |
serialConnection.write("DURATION=" + str(int(duration)) + "\n") | |
serialConnection.write("STRING1=Now: \n") | |
serialConnection.write("STRING2= by \n") | |
serialConnection.write("FORMAT_RT=STRING1+TITLE+STRING2+ARTIST\n") | |
serialConnection.write("AUTO_RT=Y\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
line = ser.readline() | |
if (line.find("-") < 0) and (line.__len__() > 16): | |
hexdata = line.rstrip() | |
#We need five bits to detect the group type, so turn it into binary: | |
binaryLine = bin(int(hexdata, 16))[2:].zfill(64) | |
#RadioText-A: | |
if binaryLine[16:21] == "00100": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Sample Appeal Tally - Wordpress Plugin | |
// Provided by Anthony Eden | |
// Finds and returns various appeal figures for embedding on our pages | |
// This should be loaded via AJAX, as we don't want a blocking script on our page | |
//All returned data will be in JSON format | |
header('Content-type: text/json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function uploadDreamObjects { | |
# Uploads a single file to the DreamObjects S3-style API | |
# Sample code provided by http://mediarealm.com.au/ | |
# Based on https://gist.github.com/chrismdp/6c6b6c825b07f680e710 | |
# Also https://raw.githubusercontent.com/fredericofs/s3.bash/master/simple_version_working | |
# And http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Trello Time Tracker | |
// (C) 2017 Anthony Eden | |
// http://mediarealm.com.au/ | |
// This script takes an JSON export from a Trello board (saved as data.json) and shows you a timesheet | |
// It uses Custom Fields in Trello to read the hours spent working on each card, then displays it as a table | |
// Simple, yet very handy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Zetta Log Import Emailer | |
This script will email you whenever a new log is imported into Zetta | |
Written by Anthony Eden (https://mediarealm.com.au/) | |
""" | |
# You need to download this module: https://pypi.python.org/pypi/pypyodbc | |
# Email config options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<MetaNow> | |
<Type><![CDATA[%CATEGORY%]]></Type> | |
<StartTimestamp><![CDATA[%CURDATE% %CURTIME%]]></StartTimestamp> | |
<Duration>%LENGTHSECONDS%</Duration> | |
<Title><![CDATA[%TITLE%]]></Title> | |
<Artist><![CDATA[%ARTIST%]]></Artist> | |
<Album><![CDATA[%ALBUM%]]></Album> | |
<Filename><![CDATA[%FILENAME%]]></Filename> | |
</MetaNow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1:8016|<ProppFrexx><event><![CDATA[${event}]]></event><artist><![CDATA[${plstrackartistcurrent}]]></artist><title><![CDATA[${plstracktitlecurrent}]]></title><duration>${effectivesec}</duration><starttime>${effectivestart}</starttime><filename><![CDATA[${filename}]]></filename></ProppFrexx> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SAMBroadcaster> | |
<title><![CDATA[$song.title$]]></title> | |
<artist><![CDATA[$song.artist$]]></artist> | |
<duration>$song.SS$</duration> | |
<startTime>$NOW$</startTime> | |
<assetType>$song.songtype$</assetType> | |
<playoutId><![CDATA[$song.FILEFULL$]]></playoutId> | |
</SAMBroadcaster> |
OlderNewer