This file contains hidden or 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
| #!/usr/bin/python | |
| import RPi.GPIO as GPIO | |
| import time | |
| GPIO.setmode(GPIO.BOARD) | |
| BTN_G = 11 # G17 | |
| BTN_R = 12 # G18 | |
| BTN_Y = 13 # G27 |
This file contains hidden or 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
| brew tap dholm/sdr | |
| brew install dholm/sdr/liquid-dsp | |
| # problem: installs liquid-dsp 1.2.0, released Apr 26, 2012, | |
| # FIX: brew install --HEAD dholm/sdr/liquid-dsp | |
| git clone https://github.com/miek/inspectrum | |
| # https://github.com/miek/inspectrum/tree/fc9e575052a069923a21b496f73f2b4867539a2f | |
| cd inspectrum | |
| cmake . | |
| make |
This file contains hidden or 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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: nec-pwr | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: NEC IR power-off daemon | |
| # Description: Receives IR messages from a RTLSDR dongle | |
| # and shuts down when the remote power button is pressd |
This file contains hidden or 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
| #!/usr/bin/python | |
| # Quick & dirty script to power down the computer when receiving | |
| # a "power button" IR signal from the RTL remote over RTL-SDR dongle | |
| # via rpc_ir librtlsdr: https://github.com/rxseger/librtlsdr/pull/1 | |
| # Intended for use with Raspberry Pi, which lacks a built-in power button | |
| # Usage: | |
| # rtl_rpcd -I 1235 |
This file contains hidden or 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/sh | |
| ### BEGIN INIT INFO | |
| # Provides: rtl_rpcd | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: rtl_rpcd RTL-SDR RPC daemon | |
| # Description: Receives RF and IR messages from a RTLSDR dongle | |
| ### END INIT INFO |
This file contains hidden or 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
| decoding NEC pulses for power down button (0x4d) of RTL remote | |
| http://www.sbprojects.com/knowledge/ir/nec.php | |
| pulse, pause = 0 | |
| pulse, pause pause = 1 | |
| received using rtl_ir https://github.com/librtlsdr/librtlsdr/pull/9 | |
| $ ./rtl_ir | |
| press the power button on the RTL remote, shows pulses: |
This file contains hidden or 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' encoding='utf-8'?> | |
| <?grc format='1' created='3.7.9'?> | |
| <flow_graph> | |
| <timestamp>Tue Jul 22 14:34:09 2014</timestamp> | |
| <block> | |
| <key>options</key> | |
| <param> | |
| <key>author</key> | |
| <value></value> | |
| </param> |
This file contains hidden or 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
| #!/usr/bin/env python2 | |
| # -*- coding: utf-8 -*- | |
| # see https://gist.github.com/rxseger/4c6fce39cffa149424a4780a37fae426 | |
| ################################################## | |
| # GNU Radio Python Flow Graph | |
| # Title: Receive ATSC from UHD | |
| # Generated: Wed Jun 22 00:27:50 2016 | |
| ################################################## | |
| from gnuradio import analog |
This file contains hidden or 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' encoding='utf-8'?> | |
| <?grc format='1' created='3.7.9'?> | |
| <flow_graph> | |
| <timestamp>Tue Jul 22 14:34:09 2014</timestamp> | |
| <block> | |
| <key>options</key> | |
| <param> | |
| <key>author</key> | |
| <value></value> | |
| </param> |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # Show PSIP data (and other packets) from MPEG TS streams from ATSC broadcasts | |
| # Warning: very rough, incomplete, you're probably better off using VLC 3.0 (show Media Information, | |
| # go to Codec Details, then scroll down to the EPG (electronic program guide) sections) | |
| import sys | |
| import struct | |
| def decodeTSpacket(packet): |