Wiki Making Dumb Water Tank Monitor Smart for Home Assistant If you have an old water tank monitor that only shows water levels through glowing lights, you can easily convert it into a smart device that reports to Home Assistant. This guide will walk you through the entire process, from understanding the circuit to writing the configuration. Many older water...
Wiki Solar/Battery DC Energy Meter for Home Assistant If you want to monitor your solar system's performance and track energy production in real-time, this guide will show you how to build a reliable DC energy monitoring system. This guide is also apply to track battery system as well. We'll use the PZEM-017...
Tips Fix GitHub Copilot for Xcode crashes immediately when opened If GitHub Copilot for Xcode crashes or closes immediately when opening a specific project but works fine with others, the issue is likely due to cached data created by Copilot for that project. This issue is observed when agent mode is enabled for large projects. To fix this, you can...
Homelab Install Plex on Raspberry Pi with Linux 1. Prerequisites * Raspberry Pi 4 or 5 (Raspberry Pi OS 64-bit recommended for Plex). * Basic knowledge of the terminal. * Optional: External storage for media files. 2. Install Plex Follow these steps to install Plex Media Server. 2.1 Update package list Make sure your system package list is up...
Tips How to remove known ssh host? There are multiple option to remove a known ssh host from the known_hosts file. 1. Use the ssh-keygen command This is the easiest and safest method to remove the known ssh host form known_hosts file. Run the following command by replacing the <hostname_or_ip>...
Tips Delete .DS_Store and _.DS_Store files recursively To delete all .DS_Store files from subfolders (on macOS), you can use Terminal. Below are the steps to do it safely: 1. Open Terminal 2. Navigate to the directory where you want to delete all .DS_Store files. For example, if the folder is in Documents, type: cd ~/Documents/...
Plex Install Plex on Raspberry Pi using Docker 1. Prerequisites * Raspberry Pi 4 or 5 (Raspberry Pi OS 64-bit recommended for Plex). * Basic knowledge of the terminal. * Optional: External storage for media files. 2. Install Docker 2.1. Add Docker's official GPG key sudo apt-get update sudo apt-get install ca-certificates curl sudo...
HLS Sample HLS (m3u8) streams test URLs (VOD and LIVE) When you're working with HLS, whether you're testing an HLS player or just trying to figure out how HLS works, it's super handy to have some sample HLS m3u8 URLs ready to test. I often catch myself googling for these URLs, so I'...
FairPlay FairPlay Streaming Error Codes When working with FairPlay Streaming (FPS), we may encounter errors with random error codes that lack proper documentation or explanation. An example of such an error is: Error Domain=CoreMediaErrorDomain Code=-42803 "(null)" Various errors may occur when working on FairPlay Streaming. The following provides the error codes...
Nginx Install/Update Nginx to the latest stable version on Ubuntu If you're using nginx on Ubuntu, you'll quickly discover that the default Ubuntu version bundled with the operating system is quite outdated. This implies the necessity of running the latest Nginx version to mitigate potential security issues. This article guides you through the process of upgrading...
Debug Debug Google Analytics 4 / Firebase Analytics using Charles Proxy for Mobile Apps Debugging Google Analytics 4 (GA4) or Firebase Analytics using Charles Proxy involves intercepting and inspecting the network requests made by the app. The following is a guide on configuring Charles Proxy to decode the *.app-measurement.com/a calls initiated by the Firebase Analytics SDK on iOS/tvOS or Android....
Apple Apple Fairplay Streaming Overview Apple's FairPlay Streaming (FPS) is a DRM (Digital Right Management) technology used to securely deliver streaming media content to devices. It works with the HTTP Live Streaming (HLS) protocol. Here are some key points about FPS: * FPS allows content providers to encrypt content, securely exchange keys, and protect...
Swift How to measure function execution time in Swift? Runtime code execution duration monitoring is crucial. Swift provides ContinuousClock to measures the time that always increments. The ContinuousClock acts like a stopwatch, measuring time relative to when a program starts or some other specific reference point. This is suitable for high resolution measurements of execution. 1. Measure function execution...
SwiftUI How to clear/reset SwiftUI Preview Caches? If you run into any SwiftUI Preview related issue, then there are high chance that you are facing that issue due to some cached preview data. Here are the steps to reset the SwiftUI Preview Caches: 1. Close Xcode. 2. Run the following command in the terminal: xcrun simctl --set...
Xcode Use Xcode 14 to run/debug code on iOS 17 or tvOS 17 As you might know, Apple doesn't include the iOS 17 or tvOS 17 device support files in Xcode 15. So, the old trick of copy-paste the device support files from newer Xcode to older Xcode is not possible. But there is a trick in Xcode 14 which...