Scale Product Editor

Edit PLU records directly and synchronize them through HWCommX Scale
Scale 192.168.0.150:4001 · Bridge API auto-detected
Use the IP address of the PC running HWCommX Scale—not the weighing-scale IP.
Same PC: http://127.0.0.1:8765/api/scale/products
Different PC: http://HWCOMMX-PC-IP:8765/api/scale/products (example: http://192.168.50.190:8765/api/scale/products)
Open Weight Test → System Ready
PLU NONameCodePriceModeShelflifeTareLabel NORemarkARemarkBAdvertisement1Advertisement2Advertisement3Shop NO

Integrate scale products

Use the browser client to download and upload PLU records through HWCommX Scale.

Choose where the webpage runs

Same PC

HWCommX and the browser run on one computer.

Keep LAN access off.

API: http://127.0.0.1:8765

Different PC on LAN

Enable LAN access in HWCommX and enter the HWCommX PC IP.

Example API: http://192.168.0.151:8765

Allow TCP port 8765 through the Private-network firewall.

Website on VPS

Host the page using HTTPS.

Set Allowed Origin to the website origin, such as https://scale.example.com.

Use 127.0.0.1 when the browser and HWCommX are on the same PC.

Important: Allowed Origin is the address that serves the webpage—not the Bridge API URL. Do not double-click the HTML file. If Chrome asks whether the website may find and connect to devices on your local network, choose Allow. Read Chrome’s Local Network Access guide.
  1. Run HWCommX Scale and confirm the Browser API is running.
  2. Place hwcommx-scale.js beside your webpage and include it once.
  3. Create HWCommXProductClient, then call download() or upload(products).
Complete integration code
Include in an existing page
<script src="hwcommx-scale.js"></script>
<script>
const products = new HWCommXProductClient({
  apiUrl: 'http://127.0.0.1:8765/api/scale/products',
  requestTimeoutMs: 30000
});

async function getProductsFromScale() {
  const rows = await products.download();
  // Display rows in your table.
  console.table(rows);
}

async function updateProductsToScale(rows) {
  const result = await products.upload(rows);
  console.log('Updated products:', result.updated);
}
</script>
Product row format
const row = {
  pluNo: 1,
  name: 'manzana',
  code: '0000222',
  price: 877,
  mode: 'weight',
  shelfLife: 30,
  tare: 0,
  labelNo: 0,
  remarkA: '',
  remarkB: '',
  advertisement1: 0,
  advertisement2: 0,
  advertisement3: 0,
  shopNo: 0
};
The webpage communicates with the HWCommX Scale local API. HWCommX Scale performs the raw Ethernet/TCP communication with the weighing scale.