Skip to content

Instantly share code, notes, and snippets.

View RouquinBlanc's full-sized avatar

Jonathan Martin RouquinBlanc

View GitHub Profile
@RouquinBlanc
RouquinBlanc / rtl_baudline.sh
Created August 25, 2017 08:19
rtl_sdr to baudline script for mac os
#!/bin/bash
if [[ $# -ne 3 ]]; then
echo "usage: rtl_baudline.sh <frequency> <samplerate> <gain>"
exit 1
fi
FFT=$((${2}/1000000*2048))
rtl_sdr -f $1 -s $2 -g $3 - | /Applications/baudline.app/Contents/Resources/baudline \
@RouquinBlanc
RouquinBlanc / hackrf_baudline.sh
Last active August 25, 2017 08:12
HackRF to Baudline script for mac os
#!/bin/bash
# Original generic gist: https://gist.github.com/c5e3/eb90e9524821b3fb39d1979f873f0cb7
# ./hackrf_baudline.sh <frequency> <samplerate> <IFgain> <BBgain>
if [[ $# -ne 4 ]]; then
echo "usage: hackrf_baudline.sh <frequency> <samplerate> <IFgain> <BBgain>"
exit 1
fi
@RouquinBlanc
RouquinBlanc / stream_cam.sh
Created February 2, 2016 21:16
Streaming Sainsmart NoIR camera over RTSP on Raspberry Pi 2
#!/bin/bash
# Run raspivid and pipe it to VLC
raspivid -o - -t 0 -vf -hf -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/x}' :demux=h264
# On the other side: rtsp://raspberrypi:8554/x
@RouquinBlanc
RouquinBlanc / BTHR918N_ArduinoSender.ino
Created August 13, 2015 10:42
Send Temperature, Humidity and Pressure data as an Oregon BTHR918N Sensor using Arduino and 433MHz Transmitter
/*
* connectingStuff, Oregon Scientific v2.1 Emitter
* http://www.connectingstuff.net/blog/encodage-protocoles-oregon-scientific-sur-arduino/
*
* Copyright (C) 2013 olivier.lebrun@gmail.com
* Modified by Jonathan Martin <therouquinblanc@gmail.com>, August 2015
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
@RouquinBlanc
RouquinBlanc / MPL3115A2_domoticz.py
Created August 9, 2015 20:29
Retrieving pressure and temperature from MPL3115A2 sensor and publishing to Domoticz via MQTT broker
"""
Script interacting with MPL3115A2 sensor via I2C and publishing the resulting
pressure and temperature to a Domoticz server, via MQTT broker.
"""
from smbus import SMBus
import paho.mqtt.publish as publish
import time
import json