# Sample automatic uploader  (Python script base sample UI)

### uploader\_ui.py

#### Attributes:

* Logs all the processes to a log file in the script directory.
* Provides the realtime log (when the script is ran) also through a web-server <http://i&#x70;_&#x61;ddr:3060>.\_ The port is editable from `globalvars.py` (`frontail_init_port`)
* One have the choice to upload either a test firmware or the production firmware.
* The test firmware produces reports that will be logged in a log file in realtime about the HW states and also printed in physical through a receipt printer after each upload. (For easy HW fixing later)
* The realtime HW tests results are also viewable in the console UI as well as on the web view.&#x20;
* Hot swap status of log-server, debug serial ports, upload ports. (for preventing crashes when unavailable or other errors )
* Corner case adjustments for dependency management of the main script (for preventing crashes and other errors).
* abaility to pull the latest firmware set     &#x20;
* Semi-cross-platform (macOS and Debian Linux -> designed for raspbian OS while developed and tested in macOS)

![](https://1066543514-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWo0O3YNI1XV9DRwwL-887967055%2Fuploads%2Fy73laCkoAn1G2tRMzeBg%2Fuploader_first_glance.gif?alt=media\&token=c95646db-eca3-4ee5-b727-7f9e56cd842b)
