Weight value as overlay

Aug 11, 2023
3
0
Sweden
Hello!
First post.
Im a complete noob and i want the value from a weight indicator to show as an overlay in Blue Iris.
I have searched the forums and tried JsonDataExtractor but i dont understand how to make this work.

“This page uses WebSockets. Weight value and status is polled from the indicator in JSON format each 14 second
This is done by opening a websocket to the root address (or ‘/ws’) and writing the command ‘J’ which will
reply with a JSON formatted string containing real time data and status for the indicator
The indicator will normally send any change in weight or status as it happens or an update every 12 second”

Any advice is welcome. Thank you.

Indicator IP is 192.168.1.27 but i cant seem to post its html content here.
 

Attachments

  • Skärmbild 2025-02-18 105636.png
    Skärmbild 2025-02-18 105636.png
    68.5 KB · Views: 0
  • Skärmbild 2025-02-21 113308.png
    Skärmbild 2025-02-21 113308.png
    185.7 KB · Views: 0
  • Skärmbild 2025-02-21 113702.png
    Skärmbild 2025-02-21 113702.png
    137 KB · Views: 0
What is the brand and model of weight indicator?

I installed and set up a half dozen PC's and printers for a guy that installed truck scales at coal and gravel yards to obtain and print gross, net and tare weight.
Although the weight indicators provided simple ASCII characters via RS-232 I figured their Ethernet counterparts at the time also provided a simple scheme, just did not use them, though.
 
What is the brand and model of weight indicator?

I installed and set up a half dozen PC's and printers for a guy that installed truck scales at coal and gravel yards to obtain and print gross, net and tare weight.
Although the weight indicators provided simple ASCII characters via RS-232 I figured their Ethernet counterparts at the time also provided a simple scheme, just did not use them, though.
Hello
The indicator is called Flintab 47-11.
Flintab is the company that provided the scale. There is no other name on it.
Flintab viktindikator 47-11 - Flintab
There are multiple protocolls to choose from in the settings of the indicator. I would love if it could be used together with the old Rice Lake slip printer i have since the former indicator.
 
Last edited:
Hello
The indicator is called Flintab 47-11.
Flintab is the company that provided the scale. There is no other name on it.
Flintab viktindikator 47-11 - Flintab
There are multiple protocolls to choose from in the settings of the indicator. I would love if it could be used together with the old Rice Lake slip printer i have since the former indicator.
Rice Lake is the co. that built the scales I help set up.
Unless the co. will provide you with more tech info on thta indicator it will be hard.

As far a Blue Iris is concerned, if you can write your data to a text (.txt) file, BI can display it as an overlay.
 
  • Like
Reactions: ScrappyJoel
I needed to pull some json data into my camera feeds a few years back. @bp2008 was kind enough to whip up a very easy to use app. Working great since set up.

See this thread:

 
Interesting project.

It sounds like the device only provides the weight data via a websocket. The JsonDataExtractor app does not support using a websocket to receive data. It requires the JSON payload to be delivered as the response to a simple HTTP request.

You would have to ask the company if the device has a URL that will deliver the JSON payload via plain HTTP without a websocket. If that does not exist already, it would be extremely easy for them to add in a firmware update (assuming the firmware can be updated by the user). If you can get that URL, you can put it into JsonDataExtractor and see the response and work out the correct syntax to pull out just the weight number.
 
  • Like
Reactions: ScrappyJoel
You probably already know this, but here is what copilot replied with



It sounds like you're looking for information on the Flintab Scale API. Flintab is known for providing industrial weighing solutions, and their API allows for integration with their scales for various applications. Here’s a brief overview to get you started:

Flintab Scale API Overview

1. Purpose:

The Flintab Scale API enables developers to interact programmatically with Flintab scales, allowing for automated data collection, monitoring, and control.

2. Key Features:

Weight Data Retrieval: Fetch real-time weight measurements from the scale.
Calibration: Perform calibration operations programmatically.
Status Monitoring: Check the operational status and health of the scale.
Configuration: Adjust scale settings and parameters.

3. Common Endpoints:

GET /weight: Retrieve the current weight measurement.
POST /calibrate: Initiate a calibration process.
GET /status: Get the current status of the scale.
PUT /settings: Update scale configuration settings.

4. Authentication:

Typically, the API requires an API key or token for authentication. Ensure you have the necessary credentials from Flintab.

5. Example Usage:

Code:
import requests

# Define the API endpoint and your API key
api_endpoint = "https://api.flintab.com/weight"
api_key = "your_api_key_here"

# Set up the headers with your API key
headers = {
"Authorization": f"Bearer {api_key}"
}

# Make a GET request to fetch the current weight
response = requests.get(api_endpoint, headers=headers)

if response.status_code == 200:
weight_data = response.json()
print(f"Current weight: {weight_data['weight']} kg")
else:
print(f"Failed to retrieve weight data: {response.status_code}")

6. Documentation:

For detailed information, refer to the official Flintab Scale API documentation provided by Flintab. This will include comprehensive details on all available endpoints, parameters, and examples.
If you need more specific information or have any particular questions about using the Flintab Scale API, feel free to ask!
 
Last edited: