Greg Heywood

UK based tech enthusiast. This is my blog.

Monitoring Your Home Freezer with a Raspberry Pi

We have an old freezer in the garage that has a checkered history recently. A few weeks ago, it looked like either it stopped working, or someone flipped a switch intside that stopped it cooling. Some food had to be thrown out, and it was a bit of a massacre. We turned it back on and it seemed to work OK again, but we didn't have a huge amount of confidence, so the obvious solution was to (finally) get a Raspberry Pi, a temperature sensor, and connect it up to the freezer. What we needed though was not just a record of the temperature, but some for of alerting for when the temperature went out above a threshold.

Editing your HOSTS file with Powershell for your AWS Instance

I have a Linux2 instance in AWS that I used for playing around with Python. I connect to it using Remote Explorer (which uses SSH) in VSCode which means I can do the Python bits on my own Windows 10 device, but the code actually runs (and lives) on the instance. All good, but I don't want to keep my t2.micro running all the time, and I don't want to have to keep editing the SSH target information everytime I stop and start the instance. Lastly, I don't want to pay for an elastic IP.

Ansible and Your AWS Inventory

This was just something I wanted to play around with for a while. I wanted an immutable Ansible server in AWS, so I could just fire it up on demand, and I didn't want to have to build my inventory file manually each time. Who wants that kind of pain? Yes, I know there is an AWS module for Lambda, but sometimes it is nice to do things your own way, and learn a bit at the same time. Originally I was going to do it all with Powershell, but I though I would include bits in my Terraform configuration, and also make use of Lambda to call a Python script. Because why not just use everything?