Support and Documentation

Testing Scales API

If you would like to test the Scales API but don't have a set of scales then you can generate simulated scale data as follows:

1
Start generating some scale data
curl -X PUT -u yourapikeyhere: https://api.printnode.com/scale

This command makes the server simulate a single measurement from a scale connected to computer 0 with device name PrintNode Test Scale and device number 0. Like a real measurement, it will be available in the API for 45 seconds and it will be published to subscribed websockets.

2
Read the scale data

You can access the scale data through the API.

Here is an example of an API call:

curl -u yourapikeyhere: https://api.printnode.com/scales

For more examples on how to use our HTTP API to access the scale readouts, go to our API reference.