Turn off TPLink Smart plug LED

The HS100/HS110 LED can be bright and obnoxious. If you are looking to turn off the LED status lights on the TPLink Kasa smart plugs, then look no further – the solution resides in this post. It does involve some Python interaction, but I promise that it is a gentle passing with the programming language. This solution works for: HS100 HS103 HS105 HS110 The only real drawback is that when the LED is disabled, you can not see when the device might have become disconnected from the wireless network – this is normally indicated by a RED or orange LED status. ...

August 22, 2021 · 2 min · Tom Cocking

Customising the PowerShell prompt to show date and time

Depending on your reason for using the PowerShell prompt at it, it might be useful to include data such as timestamps in your recorded output, to enable better auditing. This post will walk you through the simple steps needed for customising the PowerShell prompt, including how to show the current date and time. What exactly do I mean by the PowerShell prompt and what does the typical prompt look like by default? Well let me dial it back to default and show you: ...

July 24, 2021 · 3 min · Tom Cocking

Adding Bluetooth to a VW RCD 300

I own a basic VW Caddy MK3 (2009) which was equipped with a RCD 300 head unit. It did not come with the aux function/connectivity and this post explains how I added Bluetooth connectivity. This was a very simple installation with no requirement for VCDS coding; the Bluetooth adapter replicates a CD changer. When I wrote this post in 2021 the adapter cost about £35 on Amazon UK. On 26 October 2026 it was in stock at £45.90: Handsfree Bluetooth Audio 12pin for VW on Amazon UK. It’s an affiliate link, so I earn a small commission if you buy through it. The price to you is the same. ...

June 18, 2021 · 3 min · Tom Cocking

RTX 3060 NiceHash Overclocking and the 470.05 Hash Rate Unlock (2021 Archive)

Note: NVIDIA has since patched the RTX 3060 hash rate limiter across multiple driver versions. The developer driver 470.05 used in this article is no longer available from NVIDIA. Crypto mining on consumer GPUs is generally no longer economically viable. If you still have the card, it is far more useful today running local LLMs. See running Ollama in a Proxmox LXC with NVIDIA GPU passthrough. ...

April 7, 2021 · 4 min · Tom Cocking

Honeygain Docker Compose Setup: Run It on a Home Server

Updated October 2026: I re-tested the container on 8 October 2026. It’s now Honeygain CLI 0.9.0, every flag my original post used still exists, and the compose file below keeps your login out of the YAML. I also fixed the last command, which was wrong in the original. I didn’t log in with a real account for the test, so I haven’t re-checked what appears on the dashboard. This post contains my Honeygain referral link, which earns me a bonus if you sign up through it. ...

March 4, 2021 · 4 min · Tom Cocking

Unraid USB Controller Passthrough - VM hot swap USB

For the longest time, I have been running VMs on my Unraid server and had the need to passthrough USB devices. I will be the first to admit that I have too many computers and a shrink might classify it as an addition. Coupled with my quest for a clutter-free desk, I have been faced with the issue of swapping USB devices like a keyboard and mouse, from one machine to another Unraid virtual machine (vm). ...

March 3, 2021 · 3 min · Tom Cocking

Collect bitcoin price data with python and Coinbase

Cryptocurrencies have been back on the popular agenda lately, thanks mostly to the surging value of Bitcoin. I have been interested, but not massively invested in cryptocurrency for many years. If I had the courage to buy and hold all those years ago, I might be writing to you from a beach – I assure you, this is not the case! I have been getting into InfluxDB lately and its fantastic ability to store heaps of time series data. Well, using python and Coinbase, I am going to show you how to collect bitcoin (and other crypto assets) price data and store it in InfluxDB… then we are going to make some neat panels in Grafana to help us realise our data. This is going to be a longer write up than most, so here is here are links to each section: ...

February 2, 2021 · 6 min · Tom Cocking

Writing to an InfluxDB server with Python3

A quick GitHub gist for anyone looking to write to an InfluxDB server with Python3. This is a generic function that accepts three inputs; as an example, I am using temperature data in degrees Celsius. Turning DHT11 readings into beautiful graphs in Grafana Once you have your data in influxDB, a great way to visualise it is using Grafana. I hope to bring you more posts in the future about visualising your python data with Grafana. ...

January 19, 2021 · 1 min · Tom Cocking

Fortigate: AP-Bridge with a hardware switch

Following on from a previous post on how to setup a VLAN on a Fortigate hardware switch, this post is going to explain how we can link an AP-bridge SSID to a hardware switch and VLAN. For the most part, the only reference material you will need to complete this configuration can be found here: https://docs.fortinet.com/document/fortiap/6.4.0/fortiwifi-and-fortiap-cookbook/252439/configuring-the-fortigate-interface-to-manage-fortiap-units. However, if you have been working with Fortigates and by extension FortiOS for quite some time, you may be wonder where the CAPWAP option vanished to? Fortinet adopted this into the security fabric naming convention. CAPWAP has even been replaced in the CLI by ‘fabric’. ...

January 17, 2021 · 2 min · Tom Cocking

Fortigate: Add a VLAN to a hardware switch

In this post, we are going to discuss how to add a VLAN to a hardware (sometimes referred to as physical) switch or interface on a Fortigate. It is worth noting that I actually do my testing on a FortiWifi, so I can assure you that this also applies there too. I will be focusing on the configuration which is relevant to FortiOS v6.0 and above, so your millage vary between versions. However, you need can usually be found over at the Fortinet Handbook: https://docs.fortinet.com/product/fortigate/6.0. ...

January 9, 2021 · 4 min · Tom Cocking

Calculating compound interest with Python 3

Compound stonks only go up! I have a growing interest in finance and analytics, so it felt like a great idea to start creating my own set of financial tools with Python. This article will explain how I created a simple but effective script for calculating compound interest with Python. I wrote this in Python 3 (as all new Python projects should be from now onwards), but the library dependencies are very lightweight, making this something that could easily be re-written from Python 2. ...

January 3, 2021 · 3 min · Tom Cocking

How to invoke UAC in a Windows Batch script

Here is my quick and easy way to raise the privilage level of a Windows Batch script; allowing you to run your code at an administrator level. This is not a new question and has been asked many times on StackOverflow forums. The best answer I was able to find was the following from dbenham: https://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file/10052222#10052222 That being said there are many ways to skin this cat, so I came up with my own method, all be it derivative. The main difference in the following code is that you will always get a UAC prompt in my variant of the code, even if you are currently running it as an account that is a member of the local administrators group: ...

December 29, 2020 · 2 min · Tom Cocking

How To call a bash command with variables in Python

Updated October 2026: the code in my 2020 version of this post didn’t run. It used : where it needed =, wrote Import with a capital, and passed a command string to Popen without a shell, which raises FileNotFoundError. I’ve rewritten the examples, run every one on Python 3.14.4, and added the part I should have warned you about, which is shell injection. A quick Google of the title only gave me answers for the inverse, calling a Python script from bash and handing it variables. At least the first three results did, and I’m probably not alone in scrolling past the Stack Overflow answers. ...

December 28, 2020 · 6 min · Tom Cocking