Guide V1.0 Beta

Resources: Online Design Tool: https://www.bitdsk.org/u_ui_design

Download our designed UI https://www.bitdsk.org/ui-lab-for-u-series

First, you can refer to the image below to learn how to customize the UI.

Create a background image (bg.bin).

The background image must be a 320px * 240px BMP file.

You can generate the bg.bin file using the Online Design Tool at https://www.bitdsk.org/u_ui_design. Please ensure the format is correct.

Let’s get started with our JSON design.

Simple Design Overview:

We need a bg.bin file and a snippet of JSON code to modify the UI.

If you only want to change the background, you will need to generate and upload the bg.bin file, then enter the following in the UI JSON field:

{"screen_main": {"bg_img": "@bg_storage"}}

Once entered, simply save and restart.

Full Design Overview:

The entire UI is divided into four main interfaces: cont_main, cont_weather, cont_price, and cont_price2.

Each interface contains various elements, and you can customize their color, font, background, position, and more.

The table below lists all available elements:

panelidInfo
cont_mainlabel_text_online_timePlain text “online time”
cont_mainlabel_text_managePlain text “manage” for manage ip
cont_mainlabel_tempLabel, output temperature
cont_mainlabel_versionblank
cont_mainlabel_win_numLabel, output Winning blocks num
cont_mainimg_logoimg logo
cont_mainlabel_text_difficultyPlain text “difficulty”
cont_mainlabel_acc_rejLabel, output accept and reject num
cont_mainlabel_best_shareLabel, output best share
cont_mainlabel_online_timeLabel, output online time
cont_mainlabel_pool_urlLabel, output pool url
cont_mainlabel_manage_ipLabel, output manage_ip
cont_mainlabel_pool_difficultyLabel, output pool_difficulty
cont_mainlabel_text_best_sharePlain text “best share”
cont_mainlabel_main_hashrateLabel, output hashrate
cont_mainlabel_text_acc_rejPlain text “acc/rej”
cont_mainlabel_tipLabel, output prompt text, such as hash test, CD key status.
panelidinfo
cont_weatherline_0dua horizontal straight line
cont_weatherline_90duA vertical straight line
cont_weatherlabel_weather_iconImage showing the current weather
cont_weatherlabel_hashrate2Label, output hashrate
cont_weatherlabel_text_logo2text logo “bitdsk”
cont_weatherlabel_cityLabel, output city
cont_weatherlabel_ymdLabel, output date
cont_weatherlabel_text_hash2Plain text “HASH”
cont_weatherlabel_weekLabel, output week
cont_weatherlabel_text_temperaturePlain text “temperature”
cont_weatherlabel_temperatureLabel, output temperature
cont_weatherlabel_weather_strLabel, output weather text
cont_weatherlabel_time2Label, output time
panelidinfo
cont_pricelabel_text_binance3Plain text “Binance”
cont_pricelabel_price_topLabel, output price of top
cont_pricelabel_text_hash3Plain text “HASH”
cont_pricelabel_p6Label, output Price in the 6th range
cont_pricelabel_p5Label, output Price in the 5th range
cont_pricelabel_p4Label, output Price in the 4th range
cont_pricelabel_p3Label, output Price in the 3th range
cont_pricelabel_p2Label, output Price in the 2th range
cont_pricelabel_p1Label, output Price in the 1th range
cont_pricelabel_hash3Label, output hashrate
cont_pricechart_priceprice chart
cont_priceimg_logo3logo
cont_pricelabel_coine_name3Label, output coin name
panelidinfo
cont_price2label_text_binancepricePlain text “Binance Price”
cont_price2label_text_hash4Plain text “HASH”
cont_price2label_hash4Label, output hashrate
cont_price2label_price5Label, output the price of the 5th coin
cont_price2label_price4Label, output the price of the 4th coin
cont_price2label_price3Label, output the price of the 3th coin
cont_price2label_price2Label, output the price of the 2th coin
cont_price2label_price1Label, output the price of the 1th coin
cont_price2label_price5_nameLabel, output the name of the 5th coin
cont_price2label_price4_nameLabel, output the name of the 4th coin
cont_price2label_price3_nameLabel, output the name of the 3th coin
cont_price2label_price2_nameLabel, output the name of the 2th coin
cont_price2label_price1_nameLabel, output the name of the 1th coin
cont_price2label_text_logo4Plain text “Bitdsk”


Available fonts

dig10,dig11,dig14,dig15,dig16,dig20,dig40,dig65,dig80
sans8,sans9,sans10,sans12,sans14,sans16,sans20
disp12,disp16,disp18
lite15
serif11

Basic JSON format:

 {
   "screen_main": {
     "bg_img": "@bg_storage"
   },

   "label_pool_url": {
     "x": 97,
     "y": 219,
     "w": 117,
     "h": 19,
     "pad_top": 0, "pad_bottom": 0, "pad_left": 0, "pad_right": 0,
     "text": "pool.example.com",
     "font": "dig15",
     "color": "0xFFFFFF",
     "text_align": "right",
     "label": "scroll",
     "line_spacing": 0,
     "letter_spacing": 2,
     "bg_color": "0x002244",
     "bg_opacity": "60%",
     "hidden": false
   },

   "img_logo": {
     "x": 3,
     "y": 3,
     "w": 42,
     "h": 42,
     "rotation": 15,
     "hidden": false
   },

   "cont_main": {
     "add_label": [
       {
         "x": 12,
         "y": 8,
         "w": 120,
         "h": 20,
         "text": "textA",
         "font": "sans14",
         "color": "0xFFFFFF",
         "align": "left",
         "label": "clip",
         "line_spacing": 0,
         "letter_spacing": 1
       },
       {
         "x": 12,
         "y": 32,
         "w": 160,
         "h": 20,
         "text": "textB",
         "font": "sans12",
         "color": "0x00FF88",
         "align": "center"
       }
     ]
   }
 }
 

The following section, which is the beginning of the JSON, is used to trigger the use of the background image .bin file. If it is not included, the background image will not be loaded, and only the stylesheet will be applied.

   "screen_main": {
     "bg_img": "@bg_storage"
   },

Tip: We recommend compressing the UI JSON file when uploading it.

Leave a Reply

Your email address will not be published. Required fields are marked *