Categories
Raspberry Pi

Raspberry Pi torrent box with VPN, a guide that actually works

In this post I’m going to show you how to setup a torrent box (transmission) on a raspberry pi, that sits on a VPN so your privacy is protected. If the VPN disconnects, it will automatically stop the torrent service so you can rest assured that you are protected. I’ve setup a torrent box on […]

Categories
IoT

BME280 BMP280 on Wemos Lolin32 with Mongoose OS

The weekend IoT warrior is back again! I bought a pack of 5 BME280s from ebay, unfortunately they sent BMP280s instead and wouldn’t offer a refund. A colleague at work had the same issue, it’s actually really hard to get the BME and not get fobbed off with the BMP. Another colleague mentioned to buy […]

Categories
IoT

Building a water tank sensor using ESP32, JSN SR04T sensor, Mongoose OS and AWS IoT

There’ll be quite a lot going on in this post, I’ve had a crash course in Mongoose OS the past few weeks so this serves as a brain dump! The goal To create a low powered, wifi enabled device that I can install under the access hatch in my rainwater tank, that will periodically take […]

Categories
Cloud & Web Development

Convert JSON to YAML in one command

I’ve been playing around with AWS CloudFormation recently, which supports both JSON and YAML. I prefer to use YAML, but a lot of the examples I was looking at were based in JSON. Fortunately there’s a quick way to convert a JSON file to it’s YAML equivalent. ruby -ryaml -rjson -e ‘puts YAML.dump(JSON.load(ARGF))’ < linux-bastion.template […]

Categories
IoT

Getting started with the Mongoose OS and ESP32, an easy tutorial

This year, my goal is to learn as much as I can about IoT and AWS, they go well together and a $10 ESP32 board and a few dollars on the AWS account is a great way to get started. I’ve spent a few weeknights playing around with Mongoose, most of my time was lost […]

Categories
Raspberry Pi

Listing devices on your local network

Plugged my ancient Raspberry Pi in to my router (yeah the original, that doesn’t have on board wifi) and wanted to SSH into it, found this command to easily show you what devices are on your network, listing the IP address and the hostname nmap -sL 192.168.1.* | grep \(1 Nmap scan report for D-Link.Home […]

Categories
Cloud & Web Development

Exporting data from Enphase APIs

I bought an Enphase solar powered system in early 2017, one of the major appeals of the Enphase brand was that is has developer APIs, so I could track my systems power generation and even household usage. My aim is to get this data out of the Enphase APIs then try to make sense of […]

Categories
DevOps

A quick delve into Docker

The problem When you run an application such as tomcat, you need to make sure you have the correct version of Java installed and configured, and then download the version of tomcat that is compatible with that version of Java. If you upgrade the version of Java, you’ve then got to setup a new JDK […]

Categories
Wordpress

Backing up wordpress automatically

I’ve had some difficulties getting the BackWPup plugin to work, it seems that you can’t backup everything in one job as the script takes too long to run and the server will terminate it, causing a failed job. The 2 errors I was seeing are WARNING: Job restart due to inactivity for more than 5 […]

Categories
Big Data

Pig Latin parsing CSV files with quoted commas

In the not too distant past, I was working on a BigData engagement using Apache Pig. I took CSV parsing for granted and expected it to just work, however if you have quoted strings with commas, it won’t behave as you’d expect. Given: When you use: It delimits based on the comma, regardless of it […]