ARTICLES

Software

Enclosures for electronics and RF

Investigations into using ABS, polycarbonate and sheet metal enclosures to house electronics with a focus on getting that radio signal (wifi, 3G/4G) out of the box Requirements Weatherproof. IP66 = no dust and no water …

linux commands

Test OpenVPN server on it's standard UDP port ping myserver.com nc -vzu myserver.com 1194 telnet is so 2020 so use nc which does UDP too -v verbose -z test daemon -u UDP Get a list …

Debugging Pi from VSCode

There's a few tutorials and references for debugging a python program on a remote (e.g. pi) computer. I had to fiddle a fair bit to get VSCode, ssh and debugpy to work. Here is how. …

Time Travel, unittest.mock, freezegun and monkeypatch

To test time-dependant programs, such as timelapse camera, we can fudge the system time (sleep,. now()) in Python. Some options are: https://github.com/spulec/freezegun/ This is easy to use, but doesn't manage sleep(). Use monkeypatch to override …

Ubuntu 18 on Dell Windows 10

Notes on how to install and tune a HyperV VM running Ubuntu linux, for development. Did this March 2020. Did it on an older 6430u Dell and a brand new Dell laptop. VM HyperV Need …

image 14

Battery PiZero W, PiJuice Zero and a Camera

Goal Make a really simple timelapse camera. Runs on a Pi and uploads photos when WiFi available Always taking photos and saving. Always trying to upload photos. Wifi setup to act as host or client …

Raspberry Pi Setup (Linux)

Setup SD Card on another linux machine to install headless I use Desktop Raspberry Pi OS distro. This is tested on a Pi Zero and a Pi 4 in Feb 2020. Insert a new SD …

image 13

SSH Port Forwarding

There's heaps on this on the internet and a good book . Here is my usage, which is useful for IoT connections. Remote Server Access I want to connect remotely to a web server on …

electrical box for 3 CT sampling

Hacking an IotaWatt ESP8266

I need to flash the IotaWatt firmware (and write new files to the SD card) for two reasons: firstly I have a bricked IotaWatt, and secondly I want to try to modify the firmware to …

Grafana and InfluxDB on a Pi

Instructions as of late 2019! I used a Pi Zero W. This works but was pretty slow and awful for a my application. I then tried with a RPi 4B 2Gb and a RPi 3B. …

Access Grafana without a login screen

Unlike Grafana 5, we can't use the ' old' method of a proxy login to get a cookie for semi-permanent login. This post investigates options to achieve the goal of: Provide a user a "secret" …