Thursday, July 30, 2015

Upload log files to QRZ.com automatically using LogPusher

Introduction


Many radio amateurs upload their QSO logs to QRZ.com. Not all logging programs can interface with the QRZ API, and unless you are a subscriber, the API does not work. The log can be uploaded manually, but this is a tedious process.

Hence, inspired by the bash-script by WB4IT I have written a simple C# program (LogPusher) that takes care of the business. All there is to it, is to enter some settings in the dialog: Mainly your user name, password and log book id at  QRZ.com, and point to the choosen log file. As soon as the file changes, it will upload to QRZ.com automatically.

LogPusher


Enter the settings for your QRZ.com account


Make some contacts and wait for LogPusher to upload the new log tile

LogPusher works by first logging in to the front page of QRZ.com and by keeping the session cookie and after that it enters the logbook and uploads the file. It seems simple, but I had to monitor the messages going between Google Chrome and QRZ during manual uploading several times until I got it right. I used Fiddler for this, and it was excellent.

I had great help from this page on stackoverflow discussing how to upload HTTP form entries from C#.

How to get it?


LogPusher is available at Github: https://github.com/DIYcrap/LogPusher/. You may download the code (press download zip at Github) and compile it with Visual Studio 2015 (it is free) and modify it yourself, or you can just use the executable file directly.

Please let me know in the commentary field below if you like the project or if you encounter any issues or if you have any suggestions for improvements. Stay tuned for updates on this project.