Skip to content

Instantly share code, notes, and snippets.

View dnas2's full-sized avatar

Dominic Smith dnas2

View GitHub Profile
@dnas2
dnas2 / DXLog.NET-TriggerPTT.cs
Created January 26, 2021 19:28
DXLog.NET add-on script trigger a PTT
//INCLUDE_ASSEMBLY System.dll
//INCLUDE_ASSEMBLY System.Windows.Forms.dll
//INCLUDE_ASSEMBLY IOComm.dll
using System;
using System.Windows.Forms;
using IOComm;
namespace DXLog.net
{
@dnas2
dnas2 / gb3py_mon.py
Last active April 8, 2018 08:26
Play a file when radio carrier signal drops
#!/usr/bin/python
# Run this with RTL-SDR connected to Raspberry Pi and Pipe rtl_power to it as follows:
# rtl_power -f 433.175M:433.225M:0.005M -p 42 -g 20 -i 3 | python gb3py_mon.py
# Set the -p (Parts per million calibration) and -g (Gain) as required for your SDR. You may also need to change the threshold for detecting a carrier at line 27
import sys
import datetime
import os
do_run = True
@dnas2
dnas2 / getInreach.pl
Last active March 5, 2017 12:41
Fetch data from Delorme Inreach tracker
#!/usr/bin/perl
# Run as an hourly cronjob. It auto-learns when spots are sent, so handles them as quickly as possible after they are available.
# use module
use XML::Simple;
use Data::Dumper;
use LWP::Simple;
use Time::Local;
@dnas2
dnas2 / mp3list.ps
Created July 22, 2016 12:09
Powershell for exporting CSV of MP3 tracks in directory with length
$resultsarray = @()
$shell = New-Object -COMObject Shell.Application
Get-ChildItem "[PATH HERE]" |
Foreach-Object {
$linkObject = new-object PSObject
$path = $_.FullName
$folder = Split-Path $path
$file = Split-Path $path -Leaf
$shellfolder = $shell.Namespace($folder)
$shellfile = $shellfolder.ParseName($file)
@dnas2
dnas2 / readcsv.cs
Last active August 29, 2015 14:12
Read radio mic strength CSV
/*
This file takes a CSV output from rtlsdr_scanner (http://eartoearoak.com/software/rtlsdr-scanner)
and parses it to see whether three distinct radio mic channels have a carrier on them.
Call the CLI version of rtlsdr_scanner using something like:
rtlsdr_scan.py -s 863 -e 865 -f 256 -g 20 "Z:\RadioMicMonitor\scan.csv"
Created by Dom Smith as part of Red Gate Software's Down Tools Week, March 2014
*/
private Dictionary<string, bool> parseCsv()