Blogs
Storing Raspberry PI timelapse images using Linode Object Storage
"possum cam testing" (CC BY-NC-SA 2.0) by leogaggl 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.
Install S3CMD tools on RaspberryPi sudo apt install python3-pip sudo pip3 install s3cmd Configure Linode Raspberry Pi AWS-CLI s3cmd --configure The values:
Blogs
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.
Blogs
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.
Blogs
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.
Blogs
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.
Blogs
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).
Blogs
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.
Blogs
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
To copy the settings (including RSS URL) onto other PC’s or re-install it might be a good idea to backup or copy the contents of ~/.
Blogs
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….
Blogs
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.
wget -O raspbian-lite-latest.zip https://downloads.raspberrypi.org/raspbian_lite_latest
Download link: https://www.raspberrypi.org/downloads/raspbian/
Write Image to SD Card dd bs=4M if=2017-08-16-raspbian-stretch-lite.
Blogs
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.
Blogs
Using DNSMadeEasy as Dynamic DNS provider on Synology Diskstations
Since Synology (despite requests) still has not added DNS Made Easy as a listed provider (despite listing some really obscure services – go figure!) here is the steps to add a custom provider.
DNS Made Easy Setup Create a new A-Record
Set the name Set the IP (initial – any valid IP) Tick the “Dynamic DNS” tickbox Enter your chosen Dynamic DNS Password Save the new record When saving the record you will see a “Dynamic DNS ID” – note down this number.