Skip to content

Instantly share code, notes, and snippets.

Avatar

Dominic Smith dnas2

View GitHub Profile
@dnas2
dnas2 / DXLog.NET-TriggerPTT.cs
Created Jan 26, 2021
DXLog.NET add-on script trigger a PTT
View DXLog.NET-TriggerPTT.cs
//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 Apr 8, 2018
Play a file when radio carrier signal drops
View gb3py_mon.py
#!/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 Mar 5, 2017
Fetch data from Delorme Inreach tracker
View getInreach.pl
#!/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 Jul 22, 2016
Powershell for exporting CSV of MP3 tracks in directory with length
View mp3list.ps
$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 Aug 29, 2015
Read radio mic strength CSV
View readcsv.cs
/*
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()