Listed on

Tronixlabs DS321 hardware clock config for Rasperberry Pi

For various reasons I need to make a Raspberry Pi into an NTP time server and for this to work I need time to be roughly right when it starts. hence we need to add an RTC to the Raspberry Pi running Raspberian.



Tronixlabs supplies a very nice module (http://tronixlabs.com/raspberry-pi/real-time-clock/ds321-real-time-clock-module-for-raspberry-pi/) but the instructions are a little less than optimal.


Read More...

Internet Woes: Delivering the mail in spite of the weather

My ADSL connection is having difficulties at home ... one of the few services I really care about is getting email ... and without a working externally accessible IP address it is hard to deliver mail to your mail server. Many large telcos’ NAT mechanisms make it extremely difficult to connect to services behind their 3G dongles; fortunately with the help of ssh, inetd and socket a solution can be temporarily cobbled together. Read More...

Weatherstation Upgrade

The new weather station at Labertouche is operational (http://eos.castro.aus.net/weewx/).



My increasingly unreliable and impossible to buy parts for Oregon Scientific WMR928NX with its custom software suite (http://www.castro.aus.net/~maurice/weather/) has finally retired. Instead a shiny new Davis Vantage Pro 2 has been installed with new software. Read More...

Do not use a cannon to kill a mosquito

Some time ago I installed a series of IP cameras to keep an eye on the horses at the farm. With the dodgy power, the sometimes less than stellar performance of the IP link to the farm (it is a long radio link) and the generally poor firmware found on domestic IP cameras, it is not a rare event that that the cameras lock up and need a power cycle.

My original plan for fixing the issue was to install an Arduino with an Ethernet driving a relay and have a Nagios event handler tell the Arduino to bounce the relay. I already use something like this to help fix the WiMAX radio link when it gets confused. Reducing the number of calls I make to my saintly mother-in-law and brother-in-law to help bring the link back up.

After a face-palm moment I realised I was over engineering this problem and already had a piece of equipment that gave 90% of the solution - a ToughSwitch POE. This PoE switch has a watchdog facility that reboots devices if they fail to ping for a sufficiently long period of time - I deployed this device to control my outdoor APs in November of 2013 to great success. All that was needed was to make the cameras PoE devices ...
Read More...

PostgreSQL CLI utility with SSL

The Postgres CLI utility can sometimes prove a little painful to use when trying to connect to a server. In this case the sticking point was require SSL on the server. Read More...