forked from gcgarner/IOTstack
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added rtl_433 and docker bash commands
- Loading branch information
Showing
9 changed files
with
134 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
alias iotstack_up="docker-compose -f ~/IOTstack/docker-compose.yml up -d" | ||
alias iotstack_down="docker-compose -f ~/IOTstack/docker-compose.yml down" | ||
alias iotstack_start="docker-compose -f ~/IOTstack/docker-compose.yml start" | ||
alias iotstack_stop="docker-compose -f ~/IOTstack/docker-compose.yml stop" | ||
alias iotstack_update="docker-compose -f ~/IOTstack/docker-compose.yml pull" | ||
alias iotstack_build="docker-compose -f ~/IOTstack/docker-compose.yml build" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
sudo touch /etc/modprobe.d/blacklist-rtl.conf | ||
[ $(grep -c rtl28xxu /etc/modprobe.d/blacklist-rtl.conf) -eq 0 ] && sudo echo "blacklist dvb_usb_rtl28xxu" >>/etc/modprobe.d/blacklist-rtl.conf | ||
|
||
sudo touch /etc/modprobe.d/blacklist-rtl8xxxu.conf | ||
[ $(grep -c rtl8xxxu /etc/modprobe.d/blacklist-rtl8xxxu.conf) -eq 0 ] && sudo echo "blacklist rtl8xxxu" >>/etc/modprobe.d/blacklist-rtl8xxxu.conf | ||
|
||
sudo apt-get update | ||
sudo apt-get install -y libtool \ | ||
libusb-1.0.0-dev \ | ||
librtlsdr-dev \ | ||
rtl-sdr \ | ||
doxygen \ | ||
cmake \ | ||
automake | ||
|
||
git clone https://github.com/merbanan/rtl_433.git ~/rtl_433 | ||
cd ~/rtl_433/ | ||
mkdir build | ||
cd build | ||
cmake ../ | ||
make | ||
sudo make install | ||
|
||
echo "you should reboot for changes to take effect" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
#TZ=Africa/Johannesburg | ||
GF_PATHS_DATA=/var/lib/grafana | ||
GF_PATHS_LOGS=/var/log/grafana | ||
GF_PATHS_LOGS=/var/log/grafana | ||
# [SERVER] | ||
#GF_SERVER_ROOT_URL=http://localhost:3000/grafana | ||
#GF_SERVER_SERVE_FROM_SUB_PATH=true | ||
# [SECURITY] | ||
#GF_SECURITY_ADMIN_USER=admin | ||
#GF_SECURITY_ADMIN_PASSWORD=admin |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
#TZ=America/Chicago | ||
WEBPASSWORD=pihole | ||
|
||
#DNS1=8.8.8.8 | ||
#DNS2=8.8.4.4 | ||
#DNSSEC=false | ||
#DNS_BOGUS_PRIV=True | ||
#CONDITIONAL_FORWARDING=False | ||
#CONDITIONAL_FORWARDING_IP=your_router_ip_here (only if CONDITIONAL_FORWARDING=ture) | ||
#CONDITIONAL_FORWARDING_DOMAIN=optional | ||
#CONDITIONAL_FORWARDING_REVERSE=optional | ||
#ServerIP=your_Pi's_IP_here << recommended | ||
#ServerIPv6= your_Pi's_ipv6_here << Required if using ipv6 | ||
#VIRTUAL_HOST=$ServerIP | ||
#IPv6=True | ||
INTERFACE=eth0 | ||
#DNSMASQ_LISTENING=local |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM debian:buster-slim | ||
|
||
ENV MQTT_ADDRESS mosquitto | ||
ENV MQTT_PORT 1883 | ||
ENV MQTT_USER "" | ||
ENV MQTT_PASSWORD "" | ||
ENV MQTT_TOPIC RTL_433 | ||
|
||
RUN apt-get update && apt-get install -y git libtool libusb-1.0.0-dev librtlsdr-dev rtl-sdr cmake automake && \ | ||
git clone https://github.com/merbanan/rtl_433.git /tmp/rtl_433 && \ | ||
cd /tmp/rtl_433/ && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake ../ && \ | ||
make && \ | ||
make install | ||
|
||
CMD ["sh", "-c", "rtl_433 -F mqtt://${MQTT_ADDRESS}:${MQTT_PORT},events=${MQTT_TOPIC},user=${MQTT_USER},pass=${MQTT_PASSWORD}"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TZ=Africa/Johannesburg | ||
MQTT_ADDRESS=mosquitto | ||
MQTT_PORT=1883 | ||
#MQTT_USER="" | ||
#MQTT_PASSWORD="" | ||
MQTT_TOPIC=RTL_433 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
rtl_433: | ||
container_name: rtl_433 | ||
build: ./services/rtl_433/. | ||
env_file: | ||
- ./services/rtl_433/rtl_433.env | ||
devices: | ||
- /dev/bus/usb | ||
restart: unless-stopped |
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