Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lora weight data not stored #199

Open
antooni007 opened this issue Jan 30, 2025 · 2 comments
Open

Lora weight data not stored #199

antooni007 opened this issue Jan 30, 2025 · 2 comments

Comments

@antooni007
Copy link

Hi,

I'm trying to log sensor data over TTN to the lora_sensors api endpoint. While trying out the test payloads that are stated in the ttn-payload-decoder.js file, I noticed that all sensors are correctly logged on the beep app, except for the weight. It does not seem to store the weight data anywhere.

E.g., payload

1B0C4B0C44640A01012D2D040107D6

Stores the correct battery voltage (3.14V) and hive temperature (20.06 C), but the weight data is just ignored. To my understanding, a weight of 77.101 kg should be read from this payload. (The data is sent to port 3)

Is this a known issue or am I overlooking something? Thanks in advance for your response.

Kind regards,

@ezja
Copy link
Contributor

ezja commented Feb 1, 2025

@antooni007 Are you posting your weight values in the w_v field? If so, these values will displayed only after they have been converted to weight_kg which is normally done by the following Sensor Definition:

Image

When using the BEEP Base hardware, the Bosche H40A load cell is calibrated with the BEEP Base App and this results in the "Offset" and "Multiplier" constants needed to calculate weight_kg values from the H40A's raw w_v values.

If you are using different scale hardware and you already know your calibrated weight values, simply post them to the weight_kg field, or create a new Sensor Definition on the app's Devices page that has input w_v and output weight_kg with offset = 0 and multiplier = 1.

@antooni007
Copy link
Author

Hi @ezja

I am indeed posting to the w_v field from my own scale hardware. But even when I create the sensor definition as you showed,
Image
I don't get any weight data from the payload I sent it:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants