Using zigbee2mqtt with Electrolama zig-a-zig-ah! (zzh!) (CC2652R1 - External Antenna).
- Plug in zzh
sudo dmesg --human | grep "attached to"
- Observe that it's attached to something like
ttyUSB0
, AKA/dev/ttyUSB0
import os | |
import numpy as np | |
from PIL import Image, ImageDraw, ImageFont | |
def gettextwidth(font, text): | |
x_min, y_min, x_max, y_max = font.getbbox(text) | |
return (x_max - x_min, y_max - y_min) |
Using zigbee2mqtt with Electrolama zig-a-zig-ah! (zzh!) (CC2652R1 - External Antenna).
sudo dmesg --human | grep "attached to"
ttyUSB0
, AKA /dev/ttyUSB0
<# | |
.SYNOPSIS | |
Command that provides disk usage for a given path. | |
.DESCRIPTION | |
Command that provides disk usage for a given path. Needs DU from Sysinternals. | |
.EXAMPLE |
Download for 2MiB size.
dump1090-fa seems to be most up to date.
https://github.com/adsbxchange/dump1090-fa
TLDR (the dump1090-fa package kindof wants you to use lighttpd):
# Using Hashicorp Vault with Zabbix is not a very good idea | |
# https://www.zabbix.com/documentation/6.0/en/manual/config/secrets | |
mkdir /tmp/zabbix-vault-test | |
cd /tmp/zabbix-vault-test | |
git clone [email protected]:paalbra/zabbix-simple.git | |
cd zabbix-simple | |
echo 'diff --git a/docker-compose.yml b/docker-compose.yml | |
index 550ef48..c3dd95f 100644 | |
--- a/docker-compose.yml |
#!/bin/bash | |
cat > openssl.cnf <<EOF | |
[ ca ] | |
default_ca = ca_default | |
[ ca_default ] | |
dir = ./ca | |
certs = \$dir\certs | |
crl_dir = \$dir/crl |
import re | |
import sys | |
import bs4 | |
import requests | |
ref = sys.argv[1] | |
url = f"https://www.legelisten.no/leger/{ref}" | |
content = requests.get(url).text |
#!/bin/bash | |
# Steps on a clean Raspberry Pi OS memory card: | |
# 0. Edit variables at the start of this script | |
# 1. Add this script to /init.sh | |
# 2. Add a cronjob /etc/cron.d/init: echo '@reboot root /bin/bash /init.sh 1> /init.log 2>&1 && rm /etc/cron.d/init' | |
# 3. Add userconf to boot pratition: echo "pi:$(echo 'mypassword' | openssl passwd -6 -stdin)" | |
# 4. Add configuration for wifi: | |
# SSID="MySSID" | |
# PSK="mypassword" |
# Links | |
https://www.wireguard.com/install/ | |
https://www.wireguard.com/quickstart/ | |
# Install on Fedora | |
dnf install -y wireguard-tools | |
# Install on Raspberry Pi OS |