Posts

Showing posts from December, 2020

GPS Test KML to CSV

Image
As part of surveying my local cemetery, I am using an Android app called GPS Test by Chartcross. I start with list a list of graves in my cemetery I need to get GPS coordinates for. I then gather those by taking samples with the app and changing the names of the points to the GraveID from my report. I export the KML file from the app and transfer it to my PC.  (I used Google Drive as my go-between, but any method will do, such as Bluetooth transfer.) I modified the code slightly from my previous post,  MyMaps to Spreadsheet, KML to CSV and back (rvnllc.com) .   import sys import xml.etree.ElementTree as ET # KML namespace ns = {"": "http://www.opengis.net/kml/2.2",       "gpstestkml":"http://www.chartcross.co.uk/XML/GPXDATA/1/0"} # Where is "coordinates" in each Placemark? wherecoords = 'Point/coordinates' # Where is "TimeStamp" in each Placemark? wherets = 'TimeStamp/when' # Where is accuracy in each Placemark

From iframe to Joomla article with Sourcerer

Image
From iframe to Joomla article with Sourcerer This post is a shameless plug for an especially useful plug-in from Regular Labs called Sourcerer .   I'll demonstrate some of the base functionality with the free version of Sourcerer.   If you can run a piece of PHP code on your website and within an iframe, it is possible to run your code natively in a Joomla CMS article with Sourcerer with very few changes.   I will share a couple caveats I learned along the way. Step 1: Get your PHP code to run natively on your website in the CMS Before you can get your code to work on your CMS in an iframe, it needs to work as a standalone webpage. Here is a screenshot of my Flickr listing that filters by "smith" in the photo titles and descriptions. It's a basic fill-in-the-blank query form.  A string of text is typed into a text input form.  The submit button triggers a GET request to the same web page.  While building a page, a GET call is made to a Flickr API and a t