Skip to content

Instantly share code, notes, and snippets.

View anthonyeden's full-sized avatar
💭
Working on changing the world.

Anthony Eden anthonyeden

💭
Working on changing the world.
View GitHub Profile
@anthonyeden
anthonyeden / README.md
Created December 3, 2023 22:35
MetaRadio Template - Smarts Broadcast Skylla
@anthonyeden
anthonyeden / README.md
Last active February 14, 2023 06:33
MetaRadio: MegaSeg Template

This template allow you to send data from MegaSeg to MetaRadio.

Either template can be used, but users of MegaSeg 6.2.3 or later should use the JSON format.

To set this up, go to MegaSeg > Settings > Logging, select 'Telnet' from the dropdown, paste the template into the "Server URL field" and check the box next to "Send track info to server". All other fields can be left empty.

Ensure you change the IP Address "127.0.0.1" to the IP Address of your computer running MetaRadio, and make sure you use the same port number (e.g. 23901) in both MegaSeg and MetaRadio.

@anthonyeden
anthonyeden / example.json
Created April 12, 2022 06:54
MetaRadio: Station Guide API Endpoint Example
{
"generated": "Tue, 12 Apr 2022 06:37:18 GMT",
"guide": [
{
"programId": "1",
"name": "Anthony's Music",
"presenter": "Mr Eden",
"image_600": "https://amrap-pages-image.s3.amazonaws.com/profile/8773.jpg?cacbeb=3703307",
"image_post_featured": null,
"image_post_featured_square": null,
@anthonyeden
anthonyeden / readme.md
Last active January 7, 2022 01:20
MetaRadio PlayIt Live Template
@anthonyeden
anthonyeden / example.json
Created April 7, 2021 06:24
MetaRadio: Station Now API Endpoint Example
{
"station": {
"name": "Test Station",
"shortName": "test-station",
"playerUrl": "https://example-com-10.mediarealm.dev/radioplayer/test-station/",
"programguideUrl": "https://example-com-10.mediarealm.dev/guide/",
"streams": [
{
"url": "https://stream1.hopemedia.com.au/hope-mp3",
"format": "audio/mp3",
@anthonyeden
anthonyeden / qsys-esp32-tally.ino
Created March 6, 2021 10:40
Q-SYS Camera Tally - ESP32 M5StickC
/*****************
ESP32 Tally Light for Q-SYS
Version 1.0
A wireless (WiFi) tally light for Q-SYS, based on the M5StickC ESP32 development board and the Arduino IDE.
Based on: https://github.com/oneguyoneblog/tally-light-esp32-for-blackmagic-atem-switcher/blob/master/tally-light-esp32-for-blackmagic-atem-switcher.ino
******************/
#include <M5StickC.h>
#include <WiFi.h>
@anthonyeden
anthonyeden / example.html
Created June 4, 2020 08:33
MetaRadio: Now Playing JS Example
<span id="metaradio-now-title"></span>
<span id="metaradio-now-artist"></span>
<span id="metaradio-now-artwork"></span>
<script>
// Setup our HTTP request
var xhr_metaradio_now = new XMLHttpRequest();
// Setup our listener to process completed requests
xhr_metaradio_now.onload = function () {
@anthonyeden
anthonyeden / MetaRadio-Myriad-Template.xml
Last active September 4, 2020 08:34
MetaRadio Myriad OCP Template
<?xml version="1.0"?>
<MetaRadioNow>
<Title><OCP_NOW_ITEMTITLE></Title>
<Artist><OCP_NOW_ARTISTNAMES></Artist>
<Duration><OCP_NOW_DURATIONSECS></Duration>
<StartTimestamp><OCP_SPECIAL_NOW_yyyy-mm-dd hh:nn:ss></StartTimestamp>
<Type><OCP_NOW_ITEMTYPEDESCRIPTION_1></Type>
<PlayoutId><OCP_NOW_ITEMNUMBER></PlayoutId>
</MetaRadioNow>
@anthonyeden
anthonyeden / template.xml
Created April 24, 2020 11:50
MetaRadio Generic File & IP Templates
<?xml version="1.0"?>
<MetaRadioNow>
<Type><![CDATA[SONG]]></Type>
<StartTimestamp><![CDATA[YYYY-MM-DD HH:MM:SS]]></StartTimestamp>
<Duration>240</Duration>
<Title><![CDATA[Song Title]]></Title>
<Artist><![CDATA[Artist Name]]></Artist>
<Album><![CDATA[Album Name]]></Album>
<PlayoutId><![CDATA[Unique ID / Filename]]></PlayoutId>
<ExternalId><![CDATA[Scheduling system ID - optional]]></ExternalId>
@anthonyeden
anthonyeden / facebook-live-video-scraper.txt
Last active June 27, 2021 12:46
Facebook Live Embed Scraper
This script allows you to scrape a Facebook page for live videos, and generate a iframe embed code for your website. It uses Selenium Firefox web driver. You may get banned if you run this too often - this is yet to be seen.
The file `livestream-data.json` will be updated with extra fields if/when a live video is found.