ARTICLES

Articles

Postgres Tricks

Log-the-frick-in sudo -u postgres psql dbname # typical root user psql -h localhost -U user -W dbname # default host is unix-domain (not tcp to localhost) More detail here. Create read-only user # login to …

Periodic Emails with Django

Rough notes on meeting these requirements: Using Django Send weekly / daily emails to someone Log results Be robust and simple Packages Based on stars, maintenance, simplicity in 2021 post_office for emails: it may be …

Wordpress Setup (and Migration)

Wordpress: meh. But anyway: # # server1 # scp -r /var/html/www/sitey/ server2:. mysqldump sitey-db-name -u root -p > sitey-sql scp sitey-sql server2:. # # server2 # mv sitey /var/html/www/ # for nginx. owned by user …

Energy Dashboards

Currently (2021) PhiSaver has one billlion data points. It's a bit hard to display in a single user dashboard. An efficient user dashboard should answer questions. This page charts my progress to the mythical perfect …

Raspi (Zero W or Rpi 4) router with wlan1 Wifi Dongle

Pi Zero There are a few options to do this. I used the official documentation and adapted it to create a script: https://gist.github.com/brettbeeson/4ecf4eb21b39f502a4c50bd1e196e90c On the Raspi Zero W, plug in a USB OTG adaptor and …

IoT

InfluxDB1 to InfluxDB2 with SSL

Install new Ubuntu 20 LTS on AWS (t3.medium). 't3 is better value than t2' (tried installing influxdb2 (auto upgrade from v1) then upgrade distro. Ok but influxdb crashed after upgrade.) Install InfluxDB2 using one big …

IoT

Robustel 3G Router Setup

Setting up a R1510-4L 3G router in Australia The setup is R1510-4L router with Telstra SIM card and Jasper web control. The goal is to setup the router on 3G and configure data allowances, etc. …

IoT