Building a Smart Home Hub with Home Assistant

Background With the increasing popularity of smart homes, major Internet giants have entered the market one after another, resulting in more and more smart home platforms and brands, and the products of various platforms and brands cannot be interoperable. For example, you cannot use Mijia smart switches to control homekit smart lights unless your product supports dual platforms, but currently there are very few smart homes that support more than two platforms at the same time. ...

2022-04-09 · Mason

Living with Suffering, Living Alongside Hope

Perhaps there is no such thing as an unbreakable tradition. Five years ago, Lunar New Year’s Eve in my hometown still passed in the nonstop sound of firecrackers that lasted until dawn. Under the government’s “strong encouragement,” however, this ancient tradition, carried on for more than a thousand years, disappeared in just a few short years. And now, on this silent New Year’s Eve, I sit alone remembering 2021, still holding on to the usual ritual feeling of saying goodbye to the old and welcoming the new. ...

2022-02-01 · Mason

Using Portainer to Enable Jellyfin Hardware Decoding in Docker

Principle and environment detection With the continuous iteration of versions, Jellyfin has gradually surpassed Plex and its brother Emby to become the personal media management solution with the largest number of users. This is not only because all its functions are free, but also because its source code is completely open source and has extremely high room for maintenance and expansion. Regardless of the specific operating system used to run Jellyfin, as long as the system is based on Linux, we can achieve extremely simple and consistent deployment through Docker containers. But compared with the native package, Docker has an obvious shortcoming, that is, it cannot directly call various system resources, and the integrated GPU driver is one of them. ...

2021-09-09 · Mason

Adding a Favicon to a Hugo Static Site

When using Hugo to generate a static site, we often run into small problems that are not fatal but still annoying. One example is not having a custom site icon. If we simply follow the default configuration of a theme, the generated site usually has no icon, or it uses the theme’s built-in icon. That obviously cannot satisfy my strong DIY impulse. Readers who visit this blog often may have noticed that the Hugo theme I use is a third-party theme that supports automatic switching between light and dark mode: AutoFuji . While reading its documentation today, I discovered that it supports Favicon code. After a few simple steps, my blog finally had its own icon. ...

2021-05-27 · Mason

Accessing the Optical Modem Admin Page from an OpenWrt Router in Bridge Mode

After an optical modem is switched to bridge mode, the OpenWrt router becomes the default gateway and handles dialing and NAT. As a result, client devices cannot obtain IP addresses on the same subnet as the modem, and therefore cannot log in to the modem’s admin page. In everyday use, modem configuration is almost a one-time thing, so the admin page is rarely needed. Still, it is annoying to connect a device directly to the modem by cable or Wi-Fi every time you want to log in. With a few simple settings, you can access the modem admin page at any time while still connected to the OpenWrt router. ...

2021-05-05 · Mason