Modify Google Earth Viewshed Radius
One of the tasks Google Earth Pro is really useful is getting a quick idea of the viewshed from a specific location. This is particularly useful for planning solar installations or other infrastructure projects such as LoRaWAN gateway deployments.
Whilst the tool is quite powerful, it has a very limited viewshed (roughly 5km) and this is not really useful when looking at gateway deployments that in flat regions of Australia easily can reach 25km+. Also it is not at all obvious how to modify the radius of the viewshed since that has not been a feature in the GUI and it is not documented at all.
Storing Raspberry PI timelapse images using Linode Object Storage
One common task for my Raspberry Pi Zero with (infrared) Camera is to do still image capture in regular intervals and upload the images for storage and post-processing. A simple way to achieve this with standard software tools available in the Raspberry Pi OS repositories is to use the S3 CLI tools and a simple bash script run by a scheduled cron job.
Working with Siemens IoT2000 series from Linux
The Siemens IoT2000 series has been a very interesting development from Siemens and it’s really encouraging to see the use of Open Source in the Automation sector definitely on the increase. And that can only be a good thing for developer productivity. Seeing a different IDE for each manufacturer of a PLC invokes some nasty memories of last century web-application development…
Download existing image
The image can be downloaded from the Siemens support site (if you don’t have an account with Siemens you might have to sign up for a login first. https://support.industry.siemens.com/cs/document/109741799/simatic-iot2000-sd-card-example-image
Extracting your Windows Licence Key from Ubuntu
Turns out that working with PLC equipment you are still fully stuck to Windows. Which means I have to bite the bullet and get an up to date version of a Windows VM running on my machine.
Since I have already paid for my Windows license with my laptop (even though I have never used it) this came in really handy.
<pre class="wp-block-preformatted">sudo apt install acpica-tools
sudo acpidump -n MSDM
This command should dump the Windows key in the bottom right of the output.
Goodbye Twitter - you were useful for (quite) a while.
After getting rid of my Facebook account a long time ago, finally, I have decided to pull the plug on Twitter as well.
I have become increasingly wary of the changes of the platform as it seeks for a way to monetise it’s user-base. The timeline has increasingly become infested with annoying ads and no way of getting rid of them. Since Twitter effectively killed the whole app ecosystem with their changes to API rules and banning anything that became useful to a substantial number of people.
Setting up MultiTech LoRaWAN gateway on Ubuntu
As the convener for the Adelaide community of The Things Network, I am frequently setting up Multitech Conduit Gateways. Depending on your PC or notebook hardware you might have some problems with the Exar USB-UART driver on Linux.
Here are the steps to getting this unit setup from an Ubuntu (should work for any other Linux distro) machine.
lsusb
Should show something like this:
Bus 002 Device 006: ID 04e2:1410 Exar Corp. XR21V1410 USB-UART IC
Moving to KVM virtual machines
Installing VirtualBox is getting increasingly painful on Ubuntu due to the problems with UEFI Secure Boot and the VirtualBox kernel modules. Another reason for an alternative is that running VirtualBox VM’s completely in the background is not as straightforward as it could be.
From the available alternatives I looked into (VMWare, Xen & KVM) it was KVM that fitted my needs (casual VM usage with mostly headless VM’s for testing purposes). Main reasons:
Microchip LoRaWAN Development Utility on Ubuntu
Having just wasted a few hours on getting this Java software running on Linux I am documenting this for future reference and hopefully saving other LoRa / TTN folks some time.
Prerequisites
Install a Java JDK + JavaFX. This should work with the default OpenJDK 8 or 9 which comes as part of the Ubuntu repositories. I ended up installing Oracle JDK 8 as well as I thought the error might be related to OpenJDK.
Display your Flickr Favourites as Screensaver Slideshow
Install XScreenSaver and remove Gnome default
sudo apt remove gnome-screensaver<br></br>sudo apt install xscreensaver xscreensaver-gl xscreensaver-gl-extra
Run the Screensaver UI and configure
In the “Advanced” section enter your Flickr RSS URL in “Choose Random Image”

https://api.flickr.com/services/feeds/photos_faves.gne?id=YOURFLICKRUSERID #replace with your Flickr User ID
Create a systemd user service to autostart
mkdir -p ~/.config/systemd/user/<br></br>vim ~/.config/systemd/user/xscreensaver.service
Past the following<br></br>[Unit]<br></br>Description=XScreenSaver<br></br>[Service]<br></br>ExecStart=/usr/bin/xscreensaver -nosplash<br></br>[Install]<br></br>WantedBy=default.target
Start and enable systemd user service
systemctl --user enable xscreensaver<br></br>systemctl --user start xscreensaver
GrovePi Zero - connecting your IoT sensors
I recently purchased a GrovePi Zero and expected this to be a reasonable straight forward way to connect Grove sensors to your Raspberry Pi, read sensor values via Python and pushing them upstream via MQTT. However the software side of things turns out anything but straight forward. Most of the suggestions on the Dexter Industries forum suggest to download some custom OS image – WTF? Hopefully this will save some people time to chase down the same rabbit holes…..
Set up a Raspberry Pi Zero headless
If you are using the GUI (Raspian full download) and want to connect your RPi Zero to a keyboard and monitor there are probably easier ways to do this. These notes are for people that want to use a headless (no monitor and GUI) setup ready to connect to your RPi after first boot via SSH from another terminal.
Connecting your LoPy to The Things Network in Australia
EDIT [2018-06-05]: I have updated the code with the Firmware 1.18.+ releases. The code is available at our Growing Data Foundation Github.
These notes are to assist Australian IoT enthusiasts to get started in connecting a LoPy to The Things Network as it is unfortunately (not yet) straight forward to make them work with the current AU-915 TTN Channel plans. As the initiator of the local Adelaide Community of The Things Network I have been experimenting with a number of devices to connect sensors to #TTNADL. One of my personal favourites is the Pycom LoPy as a nice middle-ground between capabilities and technical complexity.