A small How-to for compiling the rtl8822bu
wifi drivers on a Raspberry Pi.
Tested with the EDIMAX EW-7822UTC AC1200
sudo apt install raspberrypi-kernel-headers
#!/usr/bin/env bash | |
shopt -s nullglob | |
lastgroup="" | |
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do | |
for d in $g/devices/*; do | |
if [ "${g##*/}" != "$lastgroup" ]; then | |
echo -en "Group ${g##*/}:\t" | |
else | |
echo -en "\t\t" |
# Converts Flipper SubGhz RAW Files to PSCustomObject[] | |
function ConvertFrom-SubGhzRAW { | |
param( | |
[Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)] | |
[String] $Path | |
) | |
process { | |
$data = Get-Content $Path | |
if(!$data.Contains("Filetype: Flipper SubGhz RAW File")) { |
A small How-to for compiling the rtl8822bu
wifi drivers on a Raspberry Pi.
Tested with the EDIMAX EW-7822UTC AC1200
sudo apt install raspberrypi-kernel-headers
# set the folder format in your shanaproject.com settings to: {title} ({year}) | |
templates: | |
global: | |
magnets: no | |
thetvdb_lookup: yes | |
transmission: | |
enabled: yes | |
host: 127.0.0.1 |
HA_HOST=http://myhomeassistant:8123 | |
HA_TOKEN=long lived token | |
HA_SWITCH=entity_id |
@echo off | |
setlocal enableextensions | |
chcp 65001 | |
set input=%1 | |
set device=%2 | |
set loglevel=quiet | |
for %%i in ("%~f1") do set dirname=%%~dpi | |
for %%i in ("%~f1") do set extension=%%~xi | |
set tempfile=%dirname%%RANDOM%-temp.m4a |
Inject the printer uri via the msg.topic
from your calling node (e.g. Timestamp node).
Printer uri should look like this: ipp://mycupsserver:632/printers/Brother_HL2030
Add a function to your flow and add the module @sealsystems/ipp
on the Setup
tab.
Then add the following code to the On Message
tab.
function Read-AudioBookChecksum { | |
param( | |
[Parameter(Mandatory=$true, | |
Position=0, | |
ParameterSetName="Path", | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateScript({ Test-Path $_ -Type Leaf })] | |
[string] |
This explains how to use any smartplug connected to Home Assistant with Octoprint PSU Control
.
It's based on a comment by tht and a Tasmota sonoff thread in the Octoprint forum.
The installation consist of three simple steps: create a config file, copy the script and change the PSU Control settings