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
# How to backup and restore Tvheadend settings located in /home/hts/.hts (used on Raspberry Pi OS) | |
# | |
# Backup .hts folder incl. all sub-folders and files | |
# | |
sudo su hts | |
cd /home/hts | |
tar cvjf backup_hts.tar.bz2 .hts | |
# Consider /home/hts/icons in case they should be saved, too |
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
# How to download AverMedia TD310 (DVB-C/T/T2 USB stick) firmware files (used on Raspberry Pi 4 Model B) | |
# | |
sudo wget https://github.com/OpenELEC/dvb-firmware/raw/master/firmware/dvb-usb-it9303-01.fw -O /lib/firmware/dvb-usb-it9303-01.fw | |
sudo wget https://github.com/OpenELEC/dvb-firmware/raw/master/firmware/dvb-demod-si2168-02.fw -O /lib/firmware/dvb-demod-si2168-02.fw | |
sudo wget https://github.com/OpenELEC/dvb-firmware/raw/master/firmware/dvb-demod-si2168-b40-01.fw -O /lib/firmware/dvb-demod-si2168-b40-01.fw | |
# After that, when plugging the stick into the RPi and the firmware gets fetched from /lib/firmware/, the log file should show it in warm state, e.g. like this: | |
# | |
# Sep 28 17:36:37 pi4 kernel: [ 695.216493] usb 1-1.1: new high-speed USB device number 5 using xhci_hcd | |
# Sep 28 17:36:37 pi4 kernel: [ 695.321165] usb 1-1.1: New USB device found, idVendor=07ca, idProduct=1871, bcdDevice= 1.00 |
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
# How to download and install NoMachine on Raspberry Pi OS | |
# | |
# Download latest deb file, e.g. version 8.1.2.1 | |
# | |
wget https://download.nomachine.com/download/8.1/Raspberry/nomachine_8.1.2_1_arm64.deb | |
# Install package | |
# | |
sudo dpkg -i nomachine_8.1.2_1_arm64.deb |
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
# How to install mosquitto broker on Raspberry Pi OS and to enable remote access/authentication | |
# | |
# Source: https://randomnerdtutorials.com/how-to-install-mosquitto-broker-on-raspberry-pi/ | |
# | |
# Install mosquitto broker (optionally also install mosquitto clients) | |
# | |
sudo apt install mosquitto mosquitto-clients | |
# Test mosquitto broker installation |
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
# How to test mosquitto broker and client on Raspberry Pi OS | |
# | |
# Source: https://randomnerdtutorials.com/testing-mosquitto-broker-and-client-on-raspbbery-pi/ | |
# | |
# Install mosquitto clients (if not already installed together with mosquitto broker) | |
# | |
sudo apt install mosquitto-clients | |
# Subscribe to topic "testTopic" |
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
# Connect mobile device to PC/laptop via USB | |
# Connect to your Wifi network (PC/laptop and mobile device must be in the same Wifi) | |
# Enter command: | |
adb kill-server | |
# Enter command: | |
adb usb |
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
# Enter following command to disable write protection for fhem.cfg (consider making a backup of fhem.cfg) | |
# | |
attr WEB editConfig 1 |
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
# How to enable MQTT2_CLIENT: | |
# | |
define MyMQTT MQTT2_CLIENT <IP of MQTT server>:1883 | |
# How to set MQTT user name: | |
# | |
Go to FHEM => MyMQTT => attr MyMQTT | |
Select 'username' from drop-down menu (under 'MQTT2_CLIENT' heading) | |
Enter username in empty field and hit [Return] key |
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
# How to ensure that ser2net starts not too early (ie. not before the device is recognized) | |
# | |
sudo nano /lib/systemd/system/ser2net.service | |
# Add the following 2 lines in the [Unit] section: | |
After=network-online.target | |
Wants=network-online.target | |
# See also there: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000622 |
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
# How to define Tecalor THZ heatpump: | |
# | |
define Mythz THZ <IP of device connected to heatpump>:2000 | |
define FileLog_Mythz FileLog ./log/Mythz-%Y.log Mythz | |
attr Mythz interval_sDHW 600 | |
attr Mythz interval_sHC1 600 | |
attr Mythz interval_sGlobal 600 | |
attr Mythz interval_sElectrDHWDay 3600 | |
attr Mythz interval_sHeatDHWDay 3600 | |
attr Mythz interval_sHeatRecoveredDay 3600 |
OlderNewer