/
Demo

Demo

These REST calls define separate demo modes for the cabinet. Note they do not work all in the same way. Some might have state, some don’t.

URL

http://<<ip address>>/rest/cabinet/demo/mode

Method

PUT

Description

Enables a stateful demo mode or runs a stateless demo.

off switches off all demo modes.

Request

{ "mode": "random-pick|barcode|off" }

Response

HTTP204 when successful

Subsequent GET calls to rest/cabinet will have the mode set in the demo field, for stateful demos, or off when no stateful mode is selected.

Stateless modes will result in the mode being set to off when requesting the cabinet information.

When the cabinet is already in a demo mode, it will be completely reset and the new mode will be started.

Possible Errors

HTTP400 when an invalid demo mode is selected. Demo mode will be off afterwards.

Demo descriptions

random-pick

Switches on 3-6 random lights, with a number randomized between 1 and 5. This demo is disabled by switching all lights off, or by pushing all lights.

This demo mode is stateless.

barcode

Enables the barcode scanning demos. See below for behavior when a barcode is sent.

The demo mode is stateful.

URL

http://<<ip address>>/rest/cabinet/demo/barcode/«barcode»

Method

POST

Description

Triggers the processing of barcode «barcode» when in demo mode barcode.

Ignored otherwise.

Request

None

Response

HTTP204 when successful

Possible Errors

None

Extra Information

The following barcodes will have effect:

  • Ending with a 1: The pick demo will be triggered:

    • A random light will light up, with a random number.

    • When the light is clicked, the next will light up.

    • This will repeat three times.

  • Ending with a 2: The consolidate demo will be triggered:

    • Green light goes on, place tote there, push button

    • Scan another tote, second green light goes on, place and push

    • Scan third tote, third green light, place and push

    • The three locations will light up blue on both sides.

  • Ending with a 3: The sort demo will be triggered:

    • Three lights will light red with random number, place articles from tote there and push button.

    • Scan another tote, different lights go on with number, place articles and push

    • Scan third tote, lights glow red with number, place articles and push

    • All locations used will glow blue on the backside

When a ‘new’ code is sent, any previous state will be reset.

Related content