{"id":192,"date":"2022-10-24T08:29:13","date_gmt":"2022-10-24T08:29:13","guid":{"rendered":"https:\/\/lesfarrell.com\/?page_id=192"},"modified":"2022-10-26T15:55:02","modified_gmt":"2022-10-26T15:55:02","slug":"python-applications","status":"publish","type":"page","link":"https:\/\/lesfarrell.com\/?page_id=192","title":{"rendered":"Python Applications"},"content":{"rendered":"\n<p>As well as various bits of Python to automate in house tasks I&#8217;ve written a small number of larger applications.<\/p>\n\n\n\n<p><strong>Tug Height<\/strong><\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-left\">Tug Height is a small program currently used aboard tugs with hydraulic wheel houses. Which allow the boats operators to see over obstacles, for example when pushing barges.<\/p>\n\n\n\n<p class=\"has-text-align-left\">Because of the risk of collision with things like bridges etc it&#8217;s important for the vessel to know its air draught.  To calculate this the vessels are fitted with a sonar distance sensor which calculates the wheel house height above the deck. I wrote a Python application which interfaces with this sensor and using some additional user supplied details calculated the vessels current air draught.    <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column has-nv-text-dark-bg-background-color has-background is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"535\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/tug-height-3-1024x535.png\" alt=\"\" class=\"wp-image-193\" srcset=\"https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/tug-height-3-1024x535.png 1024w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/tug-height-3-300x157.png 300w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/tug-height-3-768x401.png 768w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/tug-height-3.png 1157w\" \/><figcaption>Applications main screen.<\/figcaption><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-nv-text-dark-bg-background-color has-background\"><strong><b><a href=\"https:\/\/lesfarrell.com\/?page_id=157\" title=\"Thames AIS\">Thames AIS<\/a><\/b> &#8211; Passenger Counting System<\/strong><\/p>\n\n\n\n<p class=\"has-nv-text-dark-bg-background-color has-background\">As well as writing the software used on the larger vessels allowing vessels to track each other. I wrote a small application for the smaller Rigid Inflatable Boats on the Thames which allows the Skipper to enter the number of passengers on board using a small keypad and display. These figures are then sent to the vessels transponder and transmitted using VHF radio. This allows the Port Authority to know both the vessels position and number of passengers on board at all times. <\/p>\n\n\n\n<div class=\"wp-block-columns has-nv-light-bg-background-color has-background is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-nv-light-bg-background-color has-background is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG20220126112204-1024x768.jpg\" alt=\"\" class=\"wp-image-212\" srcset=\"https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG20220126112204-1024x768.jpg 1024w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG20220126112204-300x225.jpg 300w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG20220126112204-768x576.jpg 768w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG20220126112204-1536x1152.jpg 1536w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG20220126112204-2048x1536.jpg 2048w\" \/><figcaption>Application being tested on a Raspberry Pi.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column has-nv-light-bg-background-color has-background is-layout-flow wp-block-column-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG_20200116_104511474-1024x768.jpg\" alt=\"\" class=\"wp-image-208\" srcset=\"https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG_20200116_104511474-1024x768.jpg 1024w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG_20200116_104511474-300x225.jpg 300w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG_20200116_104511474-768x576.jpg 768w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG_20200116_104511474-1536x1152.jpg 1536w, https:\/\/lesfarrell.com\/wp-content\/uploads\/2022\/10\/IMG_20200116_104511474-2048x1536.jpg 2048w\" \/><figcaption>Keypad and display fitted to a RIB console.<\/figcaption><\/figure>\n<\/div>\n\n\n<p><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>As well as various bits of Python to automate in house tasks I&#8217;ve written a small number of larger applications. Tug Height Tug Height is a small program currently used aboard tugs with hydraulic wheel houses. Which allow the boats operators to see over obstacles, for example when pushing barges. Because of the risk of&hellip;&nbsp;<a href=\"https:\/\/lesfarrell.com\/?page_id=192\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python Applications<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"class_list":["post-192","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lesfarrell.com\/index.php?rest_route=\/wp\/v2\/pages\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesfarrell.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lesfarrell.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lesfarrell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesfarrell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192"}],"version-history":[{"count":8,"href":"https:\/\/lesfarrell.com\/index.php?rest_route=\/wp\/v2\/pages\/192\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/lesfarrell.com\/index.php?rest_route=\/wp\/v2\/pages\/192\/revisions\/242"}],"wp:attachment":[{"href":"https:\/\/lesfarrell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}