This file contains 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/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 \ |
This file contains 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/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 |
This file contains 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/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 |
This file contains 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
/* | |
* 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 |
This file contains 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
""" | |
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 |