Skip to the content.

ScaleSync Pro Connection Portal

Connect your USB scale data feed with your shipping software or website. This demo allows you to test your scale connection and view integration code samples.

Disconnected

Enter your scale's WebSocket URL below to connect

Connected to: Waiting for device...

Current Weight

0.0 lb

Recent Readings

Time Weight Unit

Integration Guide

Quick Setup

  1. Copy your WebSocket URL from the ScaleSync Pro Android app
  2. Connect to the WebSocket to receive real-time weight data
  3. Integrate the data into your shipping workflow

JavaScript Integration

Add this code to your web application to connect to your scale:

// Get scale URL (typically stored after initial QR code scan)
const scaleUrl = "wss://scale-api.rsrchgk.com/channel/your-channel-id/ws";

// Initialize WebSocket connection
const ws = new WebSocket(scaleUrl);

// Handle incoming weight data
ws.addEventListener('message', (event) => {
  const data = JSON.parse(event.data);
  
  if (data.weights) {
    // Access weight in various units
    const weightLbs = data.weights.lbs;
    const weightKg = data.weights.kg;
    const weightOz = data.weights.oz;
    
    // Update your UI with the weight
    document.getElementById('package-weight').textContent = 
      `${weightLbs.toFixed(2)} lb`;
  }
});

// Handle connection events
ws.addEventListener('open', () => {
  console.log('Connected to scale');
});

ws.addEventListener('close', () => {
  console.log('Disconnected from scale');
});

API Response Format

The WebSocket sends JSON data in this format:

{
  "weights": {
    "lbs": 0.33,
    "kg": 0.15,
    "oz": 5.28,
    "g": 149.69,
    "mg": 149685.41
  },
  "device": {
    "vendorId": 9332,
    "productId": 1360,
    "manufacturerName": "Stamps.com",
    "productName": "SDC-550 Digital Scale"
  },
  "report": {
    "status": "POSITIVE",
    "unit": "oz",
    "weight": 5.28
  }
}

HTML Example

Here’s a simple HTML component to display weight:

<div class="weight-display">
  <h3>Package Weight</h3>
  <div class="weight-value">
    <span id="package-weight">0.00</span> lb
  </div>
</div>

Best Practices

Need Help?

Contact our support team at scalesync-pro@rsrchgk.com for implementation assistance or to report issues.