jump to navigation

TrafficCamNZ XML camera file import 26 January 2009

Posted by David Wilson in Uncategorized.
Tags: , , , , , ,


Version 1.1.1 of TrafficCamNZ has been submitted to the iTunes AppStore for approval. The new features in this release are:

  • Added more cameras to the default list mostly from the USA (I-25 & Colorado) 
  • Added ability to download default camera list from an XML file 
  • Added preferences screen to specify URL of where XML camera list file is. Default is http://dgwilson65.googlepages.com/TrafficCamNZCameras.xml 
  • Moved the info button (default camera merge) to the preferences screen 
  • Fixed a bug where editing camera details allowed you to add multiple cameras 
  • Added ability to duplicate a camera 
  • On Application start, the specified web address is checked for a new camera list, the user is notified and asked if the list should be merged with the existing camera list 
The key change here is that the camera list can be easily updated in bulk without having to submit a new release of the application via the iTunes AppStore.
You can now build your own list of camera for bulk import. All you need is a text editor, a list of cameras, and a web server (Mac users can use the Web server built into Mac OS X). Or you can mail me with camera lists and I can put them online by adding them to the master list for export.
So what does the XML file look like? Well you can download it from here and open it with a text editor. The file looks like this…
		<string>[USA] Garden of the Gods/Nevada</string>
		<string>[USA] Austin Bluffs/Union</string>
You update the file by removing or adding dictionary items to the Cameras array. You can see above where the key URL precedes the actual URL and after that its Description. Update / release these entries ensuring that the XML syntax is maintained (if you don’t it won’t load and you won’t get much help telling you what is wrong).
The key “Release” is used by the program to determine if there is a update available to load. Increment this number if you have a new version to load.
The key “UpdateXMLURL” is used by the program to determine if the XML loading URL should be updated. I put this in just in case I need to move web sites for the XML update. This means that I can make the change simply and silently. You can update this in your file too if you like. The change is displayed on the application preferences screen.
Once you have your updated file, place it on a web server that your iPhone can access. Update the preferences screen to point to the XML file and touch “Load/merge camera list from WWW”.


1. Chance - 14 February 2009

Worked for a while, but now when I start the app up, I get a blank, black screen for about 30 seconds, and then the app exits.

Also, it’d be nice if there was an option to replace (not merge) the camera list from a URL.

David Wilson - 15 February 2009

There is a new release of the application that was approved by Apple for sale on ~12 February 2009. It has some performance enhancements and new features.

1.1.2 Speed application start by threading the check for a new camera list
1.1.2 URLRequest altered to ignore local and remote caches
1.1.2 Camera updates now carry an informative description that is displayed on screen after the update
1.1.2 Cameras from USA I-30 and I-80 added
1.1.2 Cameras from the UK added. More than 100 London JamCams
1.1.2 Changed Camera list display to improve readability

If the App is crashing on launch (I don’t know what is going on, something may be corrupted in the camera list) then my recommendation is to delete the application from the phone, resync with your computer so that the App is re-installed and go from there.

Update: Chance has e-mailed me to say “OK, deleted the app off the phone and installed the update. All is well!”

David Wilson - 16 February 2009

Just to let you know…

I’ve submitted a new version of the application for approval by Apple today. All going well, the new version will be out on the 20th February.

That version will incorporate your suggested feature of being able to load an XML import file that will also remove the existing camera list prior to import.

The fix list is as follows:
* Added preferences option to Remove the Camera list and load an entire new list from an XML file. The help text has been updated, see tips, to explain some more detail of how this feature works
* Added some additional error checking on the main display to error if there are no Featured cameras, and also error if there are no cameras at all
* Fixed a startup bug where pressing the refresh button before the initial set of images finished displaying would cause more & duplicate images to be displayed
* Fixed a startup bug where if the import XML file was not available for some reason, the application would have crashed

Thank you.

2. Tom - 18 February 2009

How can I delete the camera list? I want to load only Denver Cameras… Deleting one at a time will take for ever?

Thank you

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: