March 25, 2024

NS Panel Pro with Home Assistant Companion

 


Follow these instructions first:

https://blakadder.com/nspanel-pro-sideload/

https://blakadder.com/android-panel-webview/

Finding WebView was a challenge:

wget "https://downloadr2.apkmirror.com/wp-content/uploads/2024/03/21/65fcf2058866d/com.google.android.webview_122.0.6261.120-626112001_minAPI26_maxAPI28(arm64-v8a,armeabi-v7a)(nodpi)_apkmirror.com.apk?verify=1711306407-ScEcMmYuEKBAaR9cDbxmsc5LzK1tLmhYMiI4gDakJkY"

then rename 

rename "'com.google.android.webview_122.0.6261.120-626112001_minAPI26_maxAPI28(arm64-v8a,armeabi-v7a)(nodpi)_apkmirror.com.apk?verify=1711306407-ScEcMmYuEKBAaR9cDbxmsc5LzK1tLmhYMiI4gDakJkY'" "Android-System-WebView-122.0.6261.120"

Install

wget https://github.com/seaky/nspanel_pro_tools_apk/releases/download/v2.1.0/nspanel-pro-tools-2.1.0-release.apk

Release v2.1.0 · seaky/nspanel_pro_tools_apk (github.com)

Releases · home-assistant/android (github.com)

March 05, 2024

Connecting FritzBox DSL port to POTS line


Enable Fibre with 2 degrees POTS voice service

Middle Pins 2&3 (RJ11)  to either side of middle pins 3&6 (RJ45)

Tested on 7490


https://www.johandraaisma.nl/pin-out-specification-of-fritzbox-y-cable/

February 19, 2024

Minecraft Java editon, ubuntu native Craft to Exile

 screen /usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms8G -Xmx32G -Xmn384m -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UseCompressedOops -XX:-UsePerfData -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=4 -XX:ConcGCThreads=2 -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=50 -XX:G1HeapRegionSize=1 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=8 -jar server.jar



/etc/systemd/system/multi-user.target.wants/minecraft-server.service

sixteen-unfilled-washboard


/media/nas-backup/scripts/backup-minecraft 

February 09, 2024

Matter - 5 Channel LED Setup

$23.22  200W (Aluminum), CHINA, DC 24V

$43.26 RGBCCT 840LEDs 12mm, IP20 Non-waterproof, 24V DC

$19.59 WM5


PSU 200 Watt 8Amps

        WM5 Output - 360 Watts - 72 Watts per channel  - 5 x 3A

        LED draw 18W per M - 90 Watts (5 Metres) -  18W per channel for 5M

December 30, 2023

TellyTV Docker for BBC News

 # References

# https://jonohill.nz/2019/3/11/plex-dvr-nz.html
# https://github.com/tellytv/telly
# https://www.matthuisman.nz/2017/07/new-updated-nz-iptv-files.html

mkdir /var/lib/telly-uk

nano /var/lib/telly-uk/telly.config.toml

[Discovery]                                    
  Device-Auth = "telly123"                     
  Device-ID = 12345678                         
  Device-UUID = ""
  Device-Firmware-Name = "hdhomeruntc_atsc"
  Device-Firmware-Version = "20150826"
  Device-Friendly-Name = "telly"
  Device-Manufacturer = "Silicondust"
  Device-Model-Number = "HDTC-2US"
  SSDP = true
[IPTV]
  Streams = 3
  Starting-Channel = 1
  XMLTV-Channels = true
  FFMpeg = true             
[Log]
  Level = "warn"
  Requests = false
[Web]
  Base-Address = "192.168.1.60:6077"
  Listen-Address = "0.0.0.0:6077"
[[Source]]
  Name = "BBC News"
  Provider = "Custom"
  M3U = "https://gist.githubusercontent.com/Shuggy999/5d1f287ca96c5b030b3d9f6a4bf61d80/raw/e2a1aa3de7bbda446a38761537dfbbfd22063432/bbc.m3u"
  Filter = ""
  FilterKey = ""
  FilterRaw = false
  Sort = ""

apt-get install docker.io

docker run -d \
  --name='telly-uk' \
  --net='bridge' \
  -e TZ="Pacific/Auckland" \
  -p 192.168.1.60:6077:6077/tcp \
  -v /var/lib/telly-uk:/etc/telly \
  --restart unless-stopped \
  tellytv/telly:dev-ffmpeg

December 06, 2023

Minecraft Java Server Backup

 #!/bin/bash

function rcon {
    /home/minecraft/minecraft-20231204/tools/mcrcon -H 127.0.0.1 -P 25575 -p YOURCONSOLEPASSWORD "$1"
}


rcon 'say [WARNING] Server backup process will begin in 15 minutes'
sleep 10m

rcon 'say [WARNING] Server backup process will begin in 5 minutes'
sleep 5m

rcon 'say [WARNING] Server backup process is starting NOW.'

rcon "save-off"
rcon "save-all"

day=$(date '+%d-%m-%Y_%H-%M-%S')
hostname=$(hostname -s)
archive_file="$hostname-$day.tgz"

tar czf /media/nas-backup/minecraft/quilt/$archive_file /media/nas-media/Aidan/minecraft-20231204

sleep 2

rcon "save-on"

rcon 'say [NOTICE] Server backup process is complete. Carry on.'

December 05, 2023

Minecraft Java, Quilt, Native, Ubuntu

upto 32GB 4Cores


screen /usr/lib/jvm/java-17-openjdk-amd64/bin/java -Xms8G -Xmx32G -Xmn384m -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UseCompressedOops -XX:-UsePerfData -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=4 -XX:ConcGCThreads=2 -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=50 -XX:G1HeapRegionSize=1 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=8 -jar quilt-server-launch.jar

https://gist.github.com/Obydux/55b967f5dcc00633fe895e5a473363d5

https://quiltmc.org/en/install/server/

https://www.minecraftforum.net/forums/support/server-support-and/3153252-server-java-version-issues

https://mcversions.net/download/1.19.4

Voice Chat               UDP 24454
Minecraft Server     TCP 25565

Backup the server:

https://www.reddit.com/r/admincraft/comments/qgeo2b/how_does_everyone_backup_their_servers/