tpage.io

Selfhosting Searx With Filtron and Caddy

I’ve recently begun the process of changing my online lifestyle to be a bit more privacy inclined, this has involved a few changes: I have removed Chrome from my computer and replaced it with Firefox I’ve updated my pi-hole DNS block lists to block a significant number of privacy-breaching trackers/domains I’ve changed my domain’s email MX servers to use ProtonMail (I have a Professional account with them, which allows me to bring my own custom domain, setting up catch-all email forwarding, and a few other nice things) I’ve recently changed my search engine of choice to searX (a self-hosted instance of it as well) This post will discuss how I configured my self-hosted instance of searX with caddy as a reverse proxy and a filtering agent called Filtron to keep the searX instance from being abused by bad people/robots.

Caddy and Mail in a Box

Installation Recently I’ve decided to move away from using Vesta CP as my web control panel for my domain, since there hasn’t been any major releases for it in over a year (as of the time of this writing). I also found out that the EC2 instance ran out of disk space, despite me configuring Vesta CP to notify me when this happens. I researched alternative open source control panels and could not find a suitable replacement, so I decided to skip a web control panel all together and configure everything on the box myself.

Downloading Videos From Put.io using their API

I wanted to automatically download new videos from put.io as they got added to my account, so I took a look at their API and built a python script to do it. The script descends into the parent folder and any child folders and looks for video files that are above a certain size, and don’t contain the word “sample” in them. After all the videos that meet that criteria have been downloaded (using aria2c), the script deletes all the folders and cleans the History and Transfers tab.

Custom Crypto Currency Sensors in Homeassistant

I have recently diversified my investments in crypto-coins, and wanted to keep track of them all in order to track my investments. So I utilized the cryptocompare API and built a python dictionary of all the different crypto-coins I own, and the rest is history! Here is the script that I use: import requests import json import datetime # Custom Cryptocurrency sensor python script # HASS URL base_hass_url = "http://HASS URL/api/states/" # Define headers for HASS hass_headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'x-ha-access': "hunter2"} # Get yesterday timestamp for historical pricing yesterday = datetime.

Monitor Running Services Using Systemd and Homeassistant

I was having issues with my Raspberry Pi, specifically the Bluetooth service running through systemd. So naturally I wanted to be able to track when the service was reporting as failed or offline/disabled, and that manifested in another custom sensor setup for HomeAssistant. This is a python script that will iterate through system services given in a list and create sensors in your HomeAssistant instance and have their state mapped to the sensor state (running = on, failed/stopped = off).

Monitor Your Car With Homeassistant and Dash

Recently I picked up a nice new bluetooth OBDII adapter for my car, specifically this one. I wanted the ability to automatically check and record information about my car (average trip distance, odometer rating, etc.) without having to do anything but getting in the car and driving. The first part of the process was automatically recording my drives and uploading them to Dash. I achieved this by creating a Tasker profile to automatically launch the Dash app and start tracking my drive.