{"id":4341,"date":"2025-10-20T21:09:08","date_gmt":"2025-10-20T20:09:08","guid":{"rendered":"https:\/\/m0aws.co.uk\/?p=4341"},"modified":"2025-10-20T21:09:08","modified_gmt":"2025-10-20T20:09:08","slug":"coding-a-new-version-of-adi2html-in-python3","status":"publish","type":"post","link":"https:\/\/m0aws.co.uk\/?p=4341","title":{"rendered":"Coding a new version of adi2html in Python3"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I&#8217;ve spent some considerable time of late coding a new version of <strong><em>adi2html<\/em><\/strong> that I use to convert my ADIF log files into online web pages for all my HAM Radio logs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The old version that I wrote quite some time ago was written using BASH shell which was quick and easy at the time but, as the logs grew in size it got slower and slower to process the ever increasing number of log entries.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now I&#8217;m retired I have the time to revisit these things and write better, more modern versions of my various programs that run silently in the background.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"1763\" src=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/M0AWS-Coding-New-adi2html.png\" alt=\"Writing the new version of adi2html in Python3\" class=\"wp-image-4343\" style=\"width:651px;height:auto\" srcset=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/M0AWS-Coding-New-adi2html.png 1012w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/M0AWS-Coding-New-adi2html-172x300.png 172w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/M0AWS-Coding-New-adi2html-768x1338.png 768w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/M0AWS-Coding-New-adi2html-882x1536.png 882w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Writing the new version of adi2html in Python3<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s taken a little over a week to put this code together, test and debug it, I don&#8217;t like to rush these things!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> I&#8217;ve finally put v1.2 into production today.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The 585 lines of code produce a very nice, modern looking web page and can be used to convert any ADIF file into HTML. The code is extremely quick, taking less than a second to process almost 2500 log entries, a huge improvement over the old version of adi2html.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1429\" height=\"1731\" src=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/New-Log-web-page.png\" alt=\"New look M0AWS Log web page\" class=\"wp-image-4345\" srcset=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/New-Log-web-page.png 1429w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/New-Log-web-page-248x300.png 248w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/New-Log-web-page-768x930.png 768w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2025\/10\/New-Log-web-page-1268x1536.png 1268w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">New look M0AWS Log web page<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">All of my logs are available here on my blog under the <strong><em>Logs<\/em><\/strong> menu above, feel free to have a look at them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I now need to rewrite the log search functionality so that it uses the same format of presentation for the results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More soon &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve spent some considerable time of late coding a new version of adi2html that I use to convert my ADIF log files into online web pages for all my HAM Radio logs. The old version that I wrote quite some time ago was written using BASH shell which was quick and easy at the time &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/m0aws.co.uk\/?p=4341\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Coding a new version of adi2html in Python3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[516,50,515,39,36,512,4,51,41,40,513,192,289,366,514,373,62],"tags":[],"class_list":["post-4341","post","type-post","status-publish","format-standard","hentry","category-adi","category-adi2html","category-adif","category-bash","category-code","category-coding","category-ham-radio","category-html","category-logging","category-logs","category-modern","category-python","category-python3","category-webadmin","category-webpage","category-webservices","category-website"],"_links":{"self":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4341"}],"version-history":[{"count":6,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4341\/revisions"}],"predecessor-version":[{"id":4349,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4341\/revisions\/4349"}],"wp:attachment":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}