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 […]